/* 
   Bookmaze Global Design System - Premium Light Theme
*/

:root {
    /* Colors */
    --primary-color: #4f46e5;       /* Indigo-600 */
    --primary-hover: #4338ca;       /* Indigo-700 */
    --primary-light: #e0e7ff;       /* Indigo-100 */
    --accent-color: #10b981;        /* Emerald-500 */
    --accent-hover: #059669;        /* Emerald-600 */
    --accent-light: #d1fae5;        /* Emerald-100 */
    --bg-color: #f8fafc;            /* Slate-50 */
    --surface-color: #ffffff;       /* White */
    --text-main: #0f172a;           /* Slate-900 */
    --text-muted: #475569;          /* Slate-600 */
    --text-light: #94a3b8;          /* Slate-400 */
    --border-color: #e2e8f0;        /* Slate-200 */
    --border-focus: #a5b4fc;        /* Indigo-300 */
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets and styling */
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.025em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

/* Navbar Modernization */
.navbar-custom {
    background-color: #e2e8f0 !important; /* Slate-200 to stand out from Slate-50 body */
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-custom .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--text-main) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-custom .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link:focus {
    color: var(--text-main) !important;
}

.navbar-custom .dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    animation: slideDown 200ms ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-custom .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.navbar-custom .dropdown-item:hover {
    color: var(--primary-color);
    background-color: var(--bg-color);
}

/* Global Buttons Override */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    color: var(--text-muted);
    border-color: var(--border-color);
    background-color: var(--surface-color);
}

.btn-outline-secondary:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
    background-color: var(--bg-color);
}

/* Crispy Forms & Inputs Modernization */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
    outline: none;
}

.form-label, label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.invalid-feedback {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Beautiful custom boxes and cards */
.custom-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.custom-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Login/Registration layout container */
.form-login {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    margin: 3rem auto;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-login h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-login .mb-3 {
    margin-bottom: 1.25rem !important;
}

.form-login .buttonHolder {
    margin-top: 1.5rem;
    text-align: center;
}

.form-login .btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

/* Account Info & Alert boxes */
.alert {
    border-radius: var(--radius-md);
    border: none;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-info {
    background-color: #e0f2fe;
    color: #075985;
}