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

:root {
    /* Premium Color Palette */
    --color-primary: #10b981; /* Vibrant Emerald */
    --color-primary-glow: rgba(16, 185, 129, 0.4);
    --color-secondary: #0f172a; /* Deep Slate */
    --color-accent: #f59e0b; /* Warm Amber */
    
    /* Backgrounds */
    --bg-base: #020617;
    --bg-surface: rgba(15, 23, 42, 0.6);
    --bg-surface-hover: rgba(30, 41, 59, 0.8);
    
    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-inverse: #020617;

    /* Glassmorphism */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(16px);
    
    /* Animation */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Dynamic Ambient Background */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 20s infinite alternate ease-in-out;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, rgba(2,6,23,0) 70%);
    top: -200px;
    left: -200px;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, rgba(2,6,23,0) 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Glass Container */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Branding */
.brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), #059669);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px var(--color-primary-glow);
    color: white;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
    outline: none;
}

.form-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-input:focus + .form-icon {
    color: var(--color-primary);
}

.form-icon {
    position: absolute;
    left: 0.875rem;
    top: 2rem; /* Adjusted based on label height */
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    pointer-events: none;
}

/* Button */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary), #059669);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--color-primary-glow);
}

.btn-primary:hover::before {
    left: 100%;
    transition: 0.7s;
}

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

/* Micro Interactions */
.meta-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.meta-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

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

/* Alert Box */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    display: none;
}

.alert.show {
    opacity: 1;
    transform: translateY(0);
    display: flex;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Loader */
.loader {
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    border-top: 2px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
}

.btn-primary.loading .loader {
    display: block;
}

.btn-primary.loading span {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ------------------------------------- */
/* Dashboard Specific Styles             */
/* ------------------------------------- */

body.dashboard-body {
    display: block;
    padding: 0;
    overflow: hidden;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 1.5rem;
    height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Sidebars */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.left-sidebar.glass-panel {
    padding: 2rem 1.5rem;
    animation: slideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateX(-40px);
    display: flex;
    flex-direction: column;
}

.right-sidebar {
    animation: slideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateX(40px);
    opacity: 0;
}

@keyframes slideRight {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeft {
    to { opacity: 1; transform: translateX(0); }
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    margin-bottom: 2rem;
}

.sidebar-brand h2 {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.brand-icon.small-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0;
}

/* Profile Card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.avatar.small {
    width: 36px;
    height: 36px;
    font-size: 18px;
}

.profile-info h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.profile-info p {
    font-size: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.nav-item.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--color-primary);
}

/* Daily Bread */
.daily-bread {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(0,0,0,0.2));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.daily-bread h4 {
    color: var(--color-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.daily-bread p {
    font-size: 0.85rem;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.daily-bread small {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Buttons */
.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-small {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-small:hover {
    background: var(--color-primary);
    color: white;
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1.5rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(-20px);
    opacity: 0;
}

@keyframes slideDown {
    to { opacity: 1; transform: translateY(0); }
}

.search-bar {
    display: flex;
    align-items: center;
    position: relative;
    width: 60%;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
}

.search-input {
    padding-left: 2.5rem;
    border-radius: 20px;
    background: rgba(0,0,0,0.3);
}

.icon-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-primary);
}

/* Scrollable Feed */
.scrollable-feed {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Custom Scrollbar */
.scrollable-feed::-webkit-scrollbar {
    width: 6px;
}
.scrollable-feed::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
.scrollable-feed::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.scrollable-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Hero Banner */
.hero-banner {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(0,0,0,0.4));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 80%;
}

/* Feed Cards */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1rem;
    flex-shrink: 0;
}

.feed-card {
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.4);
    flex-shrink: 0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header h4 {
    font-size: 0.95rem;
}

.card-header small {
    color: var(--text-secondary);
}

.card-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

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

/* Widgets */
.widget {
    padding: 1.5rem;
    border-radius: 20px;
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.widget-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.widget-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.widget-info {
    flex-grow: 1;
}

.widget-info h5 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.widget-info small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Responsive tweaks */
@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 240px 1fr;
    }
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .left-sidebar {
        display: none;
    }
}

