/* Custom styles for ZKTec Attendance System */

.card-statistics {
    border: none;
    box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.03);
}

.card-statistics .card-body {
    padding: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 1.5rem;
}

.stat-icon.bg-primary {
    background-color: rgba(85, 110, 230, 0.1);
    color: #556ee6;
}

.stat-icon.bg-success {
    background-color: rgba(10, 207, 151, 0.1);
    color: #0acf97;
}

.stat-icon.bg-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stat-icon.bg-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.device-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.device-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.device-status .status-dot.online {
    background-color: #0acf97;
}

.device-status .status-dot.offline {
    background-color: #f06548;
}

.device-status .status-dot.checking {
    background-color: #ffc107;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.badge-checkin {
    background-color: rgba(10, 207, 151, 0.1);
    color: #0acf97;
    padding: 0.35em 0.65em;
}

.badge-checkout {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    padding: 0.35em 0.65em;
}

.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-sm img {
    max-height: 32px;
}

.logo-lg img,
.logo-xl img {
    max-height: 40px;
}

@media (max-width: 768px) {
    .logo-lg img,
    .logo-xl img {
        max-height: 35px;
    }
    
    .logo-sm img {
        max-height: 28px;
    }
}

/* Icon Font Fixes - RemixIcon */
[class*=" ri-"],
[class^="ri-"] {
    font-family: 'remixicon' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    vertical-align: middle;
}

/* Ensure RemixIcon icons display properly */
i[class*="ri-"],
i[class^="ri-"] {
    display: inline-block;
    font-style: normal;
    font-weight: normal;
}

/* Tabler Icons support */
[class*=" ti-"],
[class^="ti-"] {
    font-family: 'tabler-icons' !important;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    vertical-align: middle;
}

/* Font loading fallback */
@font-face {
    font-family: 'remixicon';
    src: url('../fonts/remixicon44dd.woff2') format('woff2'),
         url('../fonts/remixicon44dd.woff') format('woff'),
         url('../fonts/remixicon44dd.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'tabler-icons';
    src: url('../fonts/tabler-icons3026.woff2') format('woff2'),
         url('../fonts/tabler-iconsd41d.woff') format('woff'),
         url('../fonts/tabler-icons3026.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* General font fixes */
body {
    font-family: "Outfit", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix for icon alignment */
.btn i,
.card-title i,
.nav-link i {
    vertical-align: middle;
    line-height: 1;
}

/* Simple Alert Div System */
.alert-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.alert-notification {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease-out;
    position: relative;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-notification.success {
    background-color: #d1e7dd;
    border-left: 4px solid #0acf97;
    color: #0f5132;
}

.alert-notification.error {
    background-color: #f8d7da;
    border-left: 4px solid #f06548;
    color: #842029;
}

.alert-notification.warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-notification.info {
    background-color: #cff4fc;
    border-left: 4px solid #0dcaf0;
    color: #055160;
}

.alert-notification .alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-notification .alert-content {
    flex: 1;
}

.alert-notification .alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.alert-notification .alert-message {
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-line;
}

.alert-notification .alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    margin-top: -0.25rem;
}

.alert-notification .alert-close:hover {
    opacity: 1;
}

/* Confirm Dialog */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.confirm-dialog-content {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirm-dialog-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.confirm-dialog-message {
    margin-bottom: 1.25rem;
    color: #6c757d;
    line-height: 1.5;
}

.confirm-dialog-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}


