@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

/* Wobble animation (disable icon) */
@keyframes wobble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
    100% { transform: rotate(0deg); }
}

/* Global styles */
* {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    font-size: 18px;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

/* Sticky page top */
#certForm {
    position: sticky;
    top: 0;
    width: 100%;
    height: 80px;
    padding: 15px;
    background: #fefefe;
    z-index: 99;
}

/* Page display */
.form-group {
    display: flex;
    align-items: center;
}

/* Modal borders */
.modal-content {
    border-radius: 30px;
}

/* Dropdowns */
.dropdown-toggle {
    white-space: nowrap; 
}
.dropdown-menu {
    border: 2px solid #000000aa;
    border-radius: 20px;
    min-width: 150px;
    max-width: 450px;
    cursor: pointer;
    z-index: 999;
}
.dropdown-menu-left {
    border-top-left-radius: 5px;
}
.dropdown-menu-right {
    border-top-right-radius: 5px;
}
.dropdown-item {
    width: fit-content;
    max-width: 450px;
    margin: 0 5px;
    border-radius: 10px;
}
.dropdown-item.active {
    background: #6198f6;
    color: #fff;
}
.dropdown-item:active {
    background: #eee;
    color: inherit;
}

/* Checkboxes */
.cert-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    vertical-align: middle;
    margin-bottom: 2px;
    cursor: pointer;
    outline: none;
    appearance: none;
    transition: 0.3s;
}
.cert-checkbox[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
    border: 2px solid #343a40;
    border-radius: 4px;
}
.cert-checkbox:not(:disabled) {
    appearance: none;
    border: 2px solid #343a40;
    border-radius: 4px;
}
.cert-checkbox:not(:disabled):checked {
    background-color: #343a40;
    border: 2px solid #343a40;
}

/* Icons */
.icon {
    width: 1em;
    height: 1em;
    margin-top: -0.15em;
    pointer-events: none;
    transition: 0.5s ease;
}
.arrow {
    display: none;
}

/* Buttons */
.button-container .btn-status {
    min-width: 120px;
}
.button-container .action-buttons {
    display: flex;
    justify-content: space-between;
    margin: 0 10px;
    max-width: 100px;
}
.button-container .action-buttons img {
    width: 20px;
}
.btn {
    opacity: 0.9;
    font-weight: 500;
    transition: 0.2s;
}
.btn:active:not(.btn-status) {
    scale: 0.9;
}
.btn-ssm {
    font-size: 16px;
    padding: 2px;
}
.btn-primary {
    border: 1px solid #5264ff !important;
    background: #5264ff !important;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus:hover {
    border: 1px solid #4755da !important;
    background: #4755da !important;
}
.btn-expiration {
    color: #fff;
    border: 1px solid #5c9b49;
    background: #5c9b49;
}
.btn-expiration:hover {
    color: #fff !important;
    border: 1px solid #4e853d !important;
    background: #4e853d !important;
}
.btn-action {
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    transition: 0.3s
}
.btn-action:hover {
    background: #dbe4ec;
    padding: 0 15px;
}
.btn-action:hover .rotate-icon {
    rotate: 360deg;
}
.btn-action:hover .cross-icon {
    rotate: 180deg;
}
.btn-action:hover .wobble-icon {
    animation: wobble 0.5s ease-in-out forwards;
}

/* Tooltips */
.tooltip-container {
    position: relative;
    display: inline-block;
}
.tooltip-inner {
    background: #111;
    padding: 10px 15px;
    max-width: 500px;
    border-radius: 10px;
}

/* Table */
table {
    text-align: center;
}
.table td {
    vertical-align: middle;
    padding: 2px 5px;
}

thead {
    position: sticky;
    top: 80px;
    background: #fefefe;
    text-align: center;
    z-index: 1;
}
thead::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: #fefefe;
    box-shadow: 0 6px 6px #0000001a;
    z-index: -1;
}

tr:hover td {
    background: #f5f8ffe4;
    transition: 0.2s;
    cursor: pointer;
}

th, td {
    position: relative;
    overflow: hidden;
    text-align: left;
    text-wrap: nowrap;
    padding-right: 30px;
}

th.resizable {
    resize: horizontal;
    overflow: auto;
}
th.resizable:hover {
    background: #fafafa;
    border-radius: 10px;
}
th.resizable:active {
    opacity: 0.5;
}
th.resizable:hover .arrow {
    opacity: 0.8;
}
th.resizable .icon.arrow {
    position: absolute;
    top: 12.5px;
    right: 12.5px;
}

/* Highlight search */
td.highlight {
    color: #e94848;
}

/* Scrollbar */
::-webkit-scrollbar {
    display: none;
}