/* Global Utilities */
.container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    /* Light border */
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--secondary-accent);
    /* Navy Button */
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

.input {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: var(--light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--secondary-accent);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Glass Effect - Adjusted for Light */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Dashboard Layout */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--dark-bg);
    /* This variable is now the Light BG */
}

.topbar {
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 40;
}

.page-content {
    padding: 2rem;
}

/* Sidebar Components */
.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary-accent);
    margin-left: 0.75rem;
}

.nav-menu {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background: #f1f5f9;
    color: var(--secondary-accent);
}

.nav-item.active {
    background: #eff6ff;
    color: #0f172a;
    border-left: 3px solid var(--secondary-accent);
}

.nav-item i {
    font-size: 1.25rem;
}

/* Grid System for Dashboard */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
    color: var(--light);
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--light);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-in {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-out {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}