/* Library Data Entry Practice Web Application - Modern Design System */

:root {
    --brand-primary: #2563eb;
    --brand-secondary: #4f46e5;
    --brand-accent: #0284c7;
    --brand-dark: #0f172a;
    --bg-light: #f8fafc;
    --card-border: #e2e8f0;
}

body {
    background-color: var(--bg-light);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Navbar styling */
.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

/* Gen Z & Professional Login Page Design System */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-bg-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 85% 80%, rgba(129, 140, 248, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
}

.relative-z {
    position: relative;
    z-index: 10;
}

.login-card-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card-glass {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(255, 255, 255, 0.9);
    padding: 2.75rem 2.25rem 2.25rem 2.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card-glass:hover {
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
}

.login-logo-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 1.25rem;
    background-color: #ffffff;
    padding: 0.6rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(226, 232, 240, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-logo-img:hover {
    transform: scale(1.06);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.2);
}

.login-logo-badge {
    width: 64px;
    height: 64px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.gradient-title {
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.subtext-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
}

.input-modern-group {
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-modern-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-modern-group .input-group-text {
    background-color: #f8fafc;
    border: none;
    color: #64748b;
    padding-left: 1rem;
    padding-right: 0.75rem;
}

.input-modern-group .form-control {
    border: none;
    padding: 0.75rem 1rem 0.75rem 0.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: none !important;
}

.input-modern-group .btn-toggle-eye {
    border: none;
    background-color: #f8fafc;
    color: #64748b;
    padding-left: 0.75rem;
    padding-right: 1rem;
    transition: color 0.2s ease;
}

.input-modern-group .btn-toggle-eye:hover {
    color: #2563eb;
    background-color: #f1f5f9;
}

.btn-glow {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    padding: 0.85rem;
    border-radius: 0.85rem;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 15;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.5);
    color: #ffffff;
}

.btn-glow:active {
    transform: translateY(0);
}

/* Form Section Cards */
.form-section-card {
    border: 1px solid var(--card-border);
    border-radius: 0.85rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-section-header {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--card-border);
    padding: 0.85rem 1.25rem;
    border-top-left-radius: 0.85rem;
    border-top-right-radius: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.required-asterisk {
    color: #ef4444;
    font-weight: bold;
    margin-left: 2px;
}

/* Dashboard Summary Cards */
.stat-card {
    border-radius: 0.85rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Tables */
.table-responsive {
    border-radius: 0.5rem;
}

.table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.725rem;
    letter-spacing: 0.05em;
    background-color: #f8fafc;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.table td {
    vertical-align: middle;
}

/* Badges */
.badge-role-admin {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-role-user {
    background-color: #e0e7ff;
    color: #3730a3;
}

.badge-status-active {
    background-color: #dcfce7;
    color: #166534;
}

.badge-status-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Accession Warning Alert Box */
#accession-warning-box {
    display: none;
    border-left: 4px solid #f59e0b;
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #94a3b8;
}
