/**
 * Zenith UI Extension for Bootstrap 5
 * Extends standard Bootstrap components with Zenith's unique brand "spin".
 */

:root {
    /* Brand Zenith Colors */
    --zenith-primary: #4158D0;
    --zenith-secondary: #C850C0;
    --zenith-accent: #FFCC70;
    --zenith-gradient: linear-gradient(135deg, var(--zenith-primary) 0%, var(--zenith-secondary) 100%);
    --zenith-shadow: 0 10px 30px rgba(65, 88, 208, 0.1);
    --zenith-border-radius: 0.75rem;
}

/* --- Buttons --- */
.btn.zenith-btn {
    background: var(--zenith-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(65, 88, 208, 0.3);
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn.zenith-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(65, 88, 208, 0.4);
    color: white;
}

.btn.zenith-btn:active {
    transform: translateY(0);
}

.btn.zenith-btn-outline {
    background: white;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--zenith-gradient);
    background-origin: border-box;
    background-clip: content-box, border-box;
    color: var(--zenith-primary);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn.zenith-btn-outline:hover {
    background: var(--zenith-gradient);
    color: white;
    border-color: transparent;
}

/* --- Cards --- */
.card.zenith-card {
    border: none;
    border-radius: var(--zenith-border-radius);
    box-shadow: var(--zenith-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.zenith-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(65, 88, 208, 0.15);
}

.card.zenith-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem;
    font-weight: 700;
}

/* --- Glassmorphism --- */
.zenith-glass {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* --- Badges --- */
.badge.zenith-badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    border-radius: 2rem;
    background: rgba(65, 88, 208, 0.1);
    color: var(--zenith-primary);
    border: 1px solid rgba(65, 88, 208, 0.2);
}

/* --- Alerts --- */
.alert.zenith-alert {
    border: none;
    border-left: 4px solid var(--zenith-primary);
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 0.5rem;
}

/* --- Utilities --- */
.zenith-text-gradient {
    background: var(--zenith-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.zenith-bg-gradient {
    background: var(--zenith-gradient) !important;
    color: white !important;
}

.zenith-top-line {
    border-top: 4px solid var(--zenith-primary);
}

/* --- Layout Hooks --- */
.zenith-login-body {
    background: var(--zenith-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zenith-sidebar-active {
    background: rgba(65, 88, 208, 0.08) !important;
    color: var(--zenith-primary) !important;
    border-left: 3px solid var(--zenith-primary) !important;
    font-weight: 600;
}

/* --- Input Enhancements --- */
.form-control.zenith-input:focus, 
.form-select.zenith-input:focus {
    border-color: var(--zenith-primary);
    box-shadow: 0 0 0 0.25rem rgba(65, 88, 208, 0.15);
}
