/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Aurora Palette */
    --bg-body: #0f172a;
    /* Slate 900 base */

    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    /* Slate 200 */
    --text-muted: #cbd5e1;
    /* Slate 300 */
    /* Slate 400 */

    /* Modern Accents */
    --accent-primary: #8b5cf6;
    /* Violet 500 */
    --accent-secondary: #06b6d4;
    /* Cyan 500 */
    --accent-tertiary: #ec4899;
    /* Pink 500 */

    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

html,
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;

    /* CSS Grid Layout for Sticky Footer */
    display: grid;
    grid-template-rows: auto 1fr auto;
}

/* Animated Aurora Background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.3), transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.3), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.3), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.3), transparent 50%);
    background-size: 200% 200%;
    animation: aurora-flow 15s ease infinite;
    filter: blur(40px);
}

@keyframes aurora-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    font-weight: 400;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--accent-secondary);
}

/* Override Bootstrap Utilities for Dark Theme */
.text-body {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Layout & Container */
.container {
    max-width: 1200px;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    background: var(--glass-bg-hover);
}

/* Glass Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

.card-body {
    padding: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-outline-primary:hover {
    background: var(--glass-bg-hover);
    border-color: white;
    color: white;
}

/* Forms */
.form-control,
.form-select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    color: white;
    padding: 1rem;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
    color: white;
}

option {
    color: #000;
    background-color: #fff;
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Filter Pills */
.filter-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    white-space: nowrap;
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.filter-pill:hover,
.filter-pill.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }
}

.hug-btn.active i {
    color: #ef4444;
    /* Red 500 */
    animation: heartbeat 0.8s ease-in-out;
}

/* =========================================
   ADMIN PANEL THEME ("Shadow Glass")
   ========================================= */

/* Darker Glass Container for Admin Cards */
.bg-glass-dark {
    background: rgba(15, 23, 42, 0.75);
    /* Dark Slate opacity 0.75 */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    /* Deep shadow */
    border-radius: 1.25rem;
}

/* Sidebar Styling */
.sidebar-glass {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    /* Nearly Opaque for readability */
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 1.5rem;
    z-index: 1040;
    /* Above navbar */
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), transparent);
    border-left: 3px solid var(--accent-primary);
}

.sidebar-link i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.sidebar-link:hover i,
.sidebar-link.active i {
    opacity: 1;
    color: var(--accent-secondary);
}

/* Admin Main Content Area */
.admin-main-content {
    margin-left: 280px;
    padding: 2rem 3rem;
    min-height: 100vh;
}

/* High Contrast Data Tables Table */
.table-dark-glass {
    --bs-table-bg: rgba(0, 0, 0, 0.3);
    /* Darker background for readability */
    --bs-table-color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.1);
    width: 100%;
}

.table-dark-glass thead th {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #f8fafc;
    /* Bright Slate 50 */
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 1rem 1.5rem;
}

.table-dark-glass tbody td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.table-dark-glass tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.08);
    /* Stronger hover */
    color: white;
}

/* Admin Badges */
.badge-admin {
    font-weight: 600;
    padding: 0.5em 0.8em;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Custom Switch Toggle for Settings */
.form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}