@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #7C3AED;
    --primary-light: #8B5CF6;
    --primary-hover: #6D28D9;
    --secondary: #A78BFA;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-solid: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --bg-app: #F8FAFC;
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    --shadow-lg: 0 25px 50px -12px rgba(124, 58, 237, 0.15);
}

body {
    background: var(--bg-app);
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    margin: 0;
}

/* Glassmorphism Helper */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.4);
}

/* Basic Layout Grid */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Desktop Sidebar Defaults */
.sidebar {
    width: 280px;
    background: var(--surface-solid);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
    z-index: 10;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-navbar {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    scroll-behavior: smooth;
    background: var(--bg-app);
}

/* Pills and Links */
.nav-pills .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 14px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-pills .nav-link:hover {
    background: #F1F5F9;
    color: var(--primary);
}

.nav-pills .nav-link.active {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* Cards Premium - Inspired by EnglishBay references */
.card-premium {
    background: var(--surface-solid);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-highlight {
    border-top: 5px solid var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
    z-index: 5;
}
.card-highlight:hover { transform: scale(1.03); }

/* Icons in Cards */
.card-icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.icon-purple { background: rgba(124, 58, 237, 0.1); color: var(--primary); }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.icon-blue { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }

/* Buttons Premium */
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 12px 26px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    color: white;
}

.btn-light-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-light-danger:hover {
    background: #EF4444;
    color: white;
}

/* Status Badges */
.badge-custom {
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Text Morph Anims */
.morph-box {
    position: relative;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.morph-text {
    position: absolute;
    top: 50%; left: 0;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--primary), #D946EF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}
.morph-text.active {
    opacity: 1;
}

.animated-blob {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(217, 70, 239, 0.3));
    filter: blur(15px);
    border-radius: 50%;
    animation: blobBounce 5s infinite alternate ease-in-out;
    z-index: 0;
}

@keyframes blobBounce {
    0% { transform: translate(-30px, -10px) scale(0.8); }
    100% { transform: translate(30px, 10px) scale(1.3); }
}

/* Authentication Visuals */
.auth-bg {
    background: var(--bg-app);
    background-image: radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.15) 0px, transparent 50%),
                      radial-gradient(at 100% 100%, rgba(217, 70, 239, 0.1) 0px, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1), inset 0 2px 2px rgba(255,255,255,0.7);
    width: 100%;
    max-width: 440px;
}

/* Fix Forms Overrides */
.form-control {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.8);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-control:focus {
    background: #FFFFFF;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    outline: none;
}
.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Responsiveness tweaks */
@media (max-width: 991px) {
    .sidebar { display: none; }
    .main-content { padding: 20px; }
}
