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

:root {
    --bg-dark: #05050A;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary: #7B2CBF;
    --primary-glow: rgba(123, 44, 191, 0.5);
    --accent: #00F5D4;
    --text-main: #FFFFFF;
    --text-muted: #E0E0E0;
    --glass-border: rgba(255, 255, 255, 0.08);
}

.text-accent {
    color: var(--accent) !important;
}

.text-mine {
    color: var(--primary) !important;
}

.bg-mine {
    background-color: var(--primary) !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Glow */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    animation: floatGlow 15s infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.15) 0%, transparent 60%);
    filter: blur(120px);
    z-index: -1;
    animation: floatGlowDelayed 20s infinite alternate;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, 40px);
    }
}

@keyframes floatGlowDelayed {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-30px, -20px);
    }
}

/* Navbar */
.navbar {
    background: rgba(5, 5, 10, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    color: var(--accent);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn-premium {
    background: var(--primary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--primary-glow);
}

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

.btn-outline-glow {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
    color: white;
}

/* Glass Cards */
.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(123, 44, 191, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* How It Works */
.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -2rem;
    left: 1rem;
    z-index: -1;
}

.step-card {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 5, 10, 0.5);
    margin-top: 100px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .btn-outline-glow {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Form Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: 10px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    color: var(--text-main);
}

.form-control::placeholder {
    color: var(--text-muted);
}

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

.form-text {
    color: #6c757d;
    font-size: 0.8rem;
}

.auth-illustration {
    opacity: 0.9;
    border: 1px solid var(--glass-border);
    transition: transform 0.5s ease;
}

.auth-illustration:hover {
    transform: scale(1.02);
}


.auth-image-container {
    padding: 2rem;
}

/* Dashboard & Profile Styles */
.profile-hero {
    height: 300px;
    background: linear-gradient(to right, var(--bg-dark), rgba(123, 44, 191, 0.2)), url('images/auth_illustration.png');
    /* Use existing illustration as banner for now */
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.profile-avatar-container {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-glow);
    object-fit: cover;
    background: var(--bg-dark);
}

.message-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.message-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.message-card.unread::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.message-timestamp {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    display: block;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);



    /* Admin Dashboard Styles */
    :root {
        --sidebar-width: 250px;
        --admin-bg-sidebar: rgba(0, 0, 0, 0.4);
        --admin-card-bg: rgba(255, 255, 255, 0.05);
    }

    .admin-body {
        overflow-x: hidden;
    }

    #wrapper {
        overflow-x: hidden;
        background-image:
            radial-gradient(circle at 20% 30%, rgba(123, 44, 191, 0.15) 0%, transparent 40%),
            radial-gradient(circle at 80% 60%, rgba(0, 245, 212, 0.1) 0%, transparent 40%);
    }

    .admin-sidebar {
        min-height: 100vh;
        margin-left: 0;
        transition: margin 0.25s ease-out;
        background-color: rgba(0, 0, 0, 0.8);
        border-right: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
        width: 250px;
        position: fixed;
        z-index: 1000;
        top: 0;
        bottom: 0;
        left: 0;
    }

    #page-content-wrapper {
        width: 100%;
        margin-left: 250px;
        transition: margin 0.25s ease-out;
    }

    /* Mobile: Sidebar Hidden by Default */
    @media (max-width: 768px) {
        .admin-sidebar {
            margin-left: -250px;
        }

        #page-content-wrapper {
            margin-left: 0;
        }

        /* Mobile: Sidebar Shown when Toggled */
        #wrapper.toggled .admin-sidebar {
            margin-left: 0;
        }
    }

    /* Desktop: Sidebar Hidden when Toggled */
    @media (min-width: 769px) {
        #wrapper.toggled .admin-sidebar {
            margin-left: -250px;
        }

        #wrapper.toggled #page-content-wrapper {
            margin-left: 0;
        }
    }

    .admin-sidebar .sidebar-heading {
        padding: 1.5rem;
        font-size: 1.5rem;
        color: var(--primary);
        letter-spacing: 1px;
    }

    .admin-sidebar .list-group-item {
        border: none;
        padding: 15px 25px;
        color: rgba(255, 255, 255, 0.7);
        transition: all 0.3s ease;
    }

    .admin-sidebar .list-group-item:hover,
    .admin-sidebar .list-group-item.active {
        background-color: rgba(0, 245, 212, 0.1) !important;
        color: var(--accent);
        padding-left: 30px;
    }

    .admin-header {
        background: linear-gradient(90deg, rgba(123, 44, 191, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
        border-bottom: 1px solid var(--glass-border);
    }

    .cursor-pointer {
        cursor: pointer;
    }

    .admin-card {
        background: var(--admin-card-bg);
        border-radius: 15px;
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(5px);
        transition: transform 0.3s ease;
    }

    .admin-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
    }

    .admin-table-container {
        background: var(--admin-card-bg);
        border-radius: 15px;
        border: 1px solid var(--glass-border);
    }

    .table-dark {
        --bs-table-bg: transparent;
        --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
    }

    .table-dark th {
        color: var(--text-muted);
        font-weight: 400;
        border-bottom-color: var(--glass-border);
    }

    .table-dark td {
        color: var(--text-main);
        border-bottom-color: var(--glass-border);
        vertical-align: middle;
    }
}

/* Message Page Redesign */
.message-list-container {
    height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

@media (max-width: 991px) {
    .message-list-container {
        height: auto;
        max-height: 50vh;
        min-height: 150px;
    }
}

.message-list-container::-webkit-scrollbar {
    width: 5px;
}

.message-list-container::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.message-list-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.message-list-item.active {
    background: rgba(123, 44, 191, 0.2);
    border-color: var(--primary);
}

.capture-card {
    background: linear-gradient(135deg, #05050A 0%, #1a1a2e 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.message-content-large {
    font-size: 1.5rem;
    line-height: 1.6;
}


/* stats page for the user  styling*/
.stats-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
    text-align: center;
}

.stats-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.stats-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-block;
}

.stats-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-label {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}