/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #121824;
    --panel-bg: rgba(20, 28, 45, 0.6);
    --panel-border: rgba(255, 255, 255, 0.08);
    
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-text-dark: #1f2937;
    
    /* Accents */
    --color-primary: #6366f1;       /* Indigo */
    --color-primary-hover: #4f46e5;
    --color-secondary: #06b6d4;     /* Cyan */
    --color-success: #10b981;       /* Emerald */
    --color-success-hover: #059669;
    --color-danger: #ef4444;        /* Rose */
    --color-danger-hover: #dc2626;
    --color-warning: #f59e0b;       /* Amber */
    
    /* Glows */
    --glow-primary: 0 0 15px rgba(99, 102, 241, 0.25);
    --glow-secondary: 0 0 15px rgba(6, 182, 212, 0.25);
    --glow-success: 0 0 15px rgba(16, 185, 129, 0.25);
    --glow-danger: 0 0 15px rgba(239, 68, 68, 0.25);

    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-left: 0.5rem;
}

.brand-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.4));
}

.brand-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(100deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.menu-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: var(--transition-smooth);
}

.menu-item:hover {
    color: var(--color-text-main);
    background-color: rgba(255, 255, 255, 0.03);
}

.menu-item.active {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: var(--glow-primary);
}

.menu-item.active i {
    color: var(--color-secondary);
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.6));
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.sidebar-footer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    flex-grow: 1;
    padding: 2.5rem 3rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: var(--transition-smooth);
}

/* Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 1.5rem;
}

.header-title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-title p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-md);
    font-family: monospace;
    font-size: 1rem;
    color: var(--color-secondary);
}

/* ==========================================================================
   GLASS PANELS & CARDS
   ========================================================================== */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Card Accent Types */
.stat-card.blue::before { background-color: var(--color-secondary); }
.stat-card.blue:hover { border-color: rgba(6, 182, 212, 0.3); box-shadow: var(--glow-secondary); }
.stat-card.blue .stat-icon { background: rgba(6, 182, 212, 0.1); color: var(--color-secondary); }

.stat-card.green::before { background-color: var(--color-success); }
.stat-card.green:hover { border-color: rgba(16, 185, 129, 0.3); box-shadow: var(--glow-success); }
.stat-card.green .stat-icon { background: rgba(16, 185, 129, 0.1); color: var(--color-success); }

.stat-card.purple::before { background-color: var(--color-primary); }
.stat-card.purple:hover { border-color: rgba(99, 102, 241, 0.3); box-shadow: var(--glow-primary); }
.stat-card.purple .stat-icon { background: rgba(99, 102, 241, 0.1); color: var(--color-primary); }

.stat-card.red::before { background-color: var(--color-danger); }
.stat-card.red:hover { border-color: rgba(239, 68, 68, 0.3); box-shadow: var(--glow-danger); }
.stat-card.red .stat-icon { background: rgba(239, 68, 68, 0.1); color: var(--color-danger); }

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

/* Dashboard Details Layout */
.dashboard-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.details-card {
    padding: 1.75rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h2 i {
    color: var(--color-secondary);
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.recent-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.15);
    transform: translateX(4px);
}

.recent-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recent-meta {
    display: flex;
    flex-direction: column;
}

.recent-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.recent-sub {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.recent-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: #ffffff;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #4f46e5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), #4338ca);
    box-shadow: var(--glow-primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--color-success), #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--color-success-hover), #047857);
    box-shadow: var(--glow-success);
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-danger), #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--color-danger-hover), #b91c1c);
    box-shadow: var(--glow-danger);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.table-container {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.01);
}

.data-table tbody tr {
    transition: var(--transition-smooth);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-available {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-success);
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-borrowed {
    background: rgba(99, 102, 241, 0.12);
    color: var(--color-primary);
    border-color: rgba(99, 102, 241, 0.2);
}

.badge-overdue {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-danger);
    border-color: rgba(239, 68, 68, 0.2);
    animation: pulse 2s infinite;
}

.badge-normal {
    background: rgba(6, 182, 212, 0.12);
    color: var(--color-secondary);
    border-color: rgba(6, 182, 212, 0.2);
}

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

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 450px;
}

.search-box i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius-md);
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary);
}

.form-container-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.form-card {
    padding: 2rem;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.form-header p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.library-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.required {
    color: var(--color-danger);
}

input[type="text"],
input[type="date"],
select {
    width: 100%;
    padding: 0.8rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius-md);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--glow-primary);
}

input[readonly] {
    background: rgba(255, 255, 255, 0.01);
    color: var(--color-text-muted);
    cursor: not-allowed;
}

select option {
    background: var(--bg-secondary);
    color: #ffffff;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.input-with-icon input {
    padding-left: 2.8rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
}

/* Info Card Policies */
.info-card {
    padding: 2rem;
}

.policy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.policy-list li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.policy-list li i {
    font-size: 1.4rem;
    margin-top: 0.2rem;
}

.policy-list strong {
    font-size: 0.95rem;
    color: #ffffff;
    display: block;
    margin-bottom: 0.2rem;
}

.policy-list p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.color-blue { color: var(--color-secondary); }
.color-green { color: var(--color-success); }
.color-red { color: var(--color-danger); }

/* ==========================================================================
   TAB CONTROLLER
   ========================================================================== */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

/* ==========================================================================
   MODAL WINDOWS
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 2.25rem;
    position: relative;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal-btn:hover {
    color: #ffffff;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
}

.error-msg {
    color: var(--color-danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* ==========================================================================
   TOAST / NOTIFICATIONS
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1100;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
}

.toast-content {
    background: rgba(18, 24, 38, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), var(--glow-primary);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
}

.toast.success .toast-content {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), var(--glow-success);
}
.toast.success .toast-icon { color: var(--color-success); }

.toast.error .toast-content {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), var(--glow-danger);
}
.toast.error .toast-icon { color: var(--color-danger); }

.toast.info .toast-content {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), var(--glow-secondary);
}
.toast.info .toast-icon { color: var(--color-secondary); }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 2rem 0.5rem;
    }
    
    .sidebar-brand .brand-text,
    .sidebar-menu span,
    .sidebar-footer p {
        display: none;
    }
    
    .sidebar-brand {
        justify-content: center;
        padding-left: 0;
    }
    
    .menu-item {
        justify-content: center;
        padding: 1rem;
    }
    
    .main-content {
        margin-left: 80px;
        padding: 2rem;
    }
    
    .form-container-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--panel-border);
    }
    
    .sidebar-brand {
        margin-bottom: 0;
    }
    
    .sidebar-menu {
        flex-direction: row;
        gap: 0.25rem;
    }
    
    .menu-item {
        padding: 0.6rem 0.8rem;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .current-time {
        width: 100%;
        justify-content: center;
    }
    
    .actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ADMIN STATUS & LABELS
   ========================================================================== */
.admin-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.4rem 0.6rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6b7280; /* Gray for regular guest */
    display: inline-block;
    transition: var(--transition-smooth);
}

.status-indicator.active {
    background-color: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
}

/* Prevent Chrome Autofill from turning text black on dark background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 30px #1a233a inset !important;
    box-shadow: 0 0 0 30px #1a233a inset !important;
}

