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

:root {
    --primary-color: #FF2D8D;
    --primary-hover: #8B5CF6;
    --secondary-color: #8B5CF6;
    --background-color: #07070A;
    --card-bg: #18181b;
    --text-color: #F8F7FC;
    --text-muted: #a1a1aa;
    --border-color: #8B5CF6;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 16px;
    --shadow: 0 10px 15px -3px rgba(255, 45, 141, 0.1), 0 4px 6px -2px rgba(255, 45, 141, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    background-image: linear-gradient(to bottom right, #07070A, #07070A);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--background-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Header & Nav */
header {
    background-color: rgba(7, 7, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for mobile menu */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s linear;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-weight: 500;
}

nav ul li a:hover, nav ul li a.active {
    color: #fff;
    background-color: rgba(255, 45, 141, 0.2);
    box-shadow: 0 0 10px rgba(255, 45, 141, 0.3);
}

nav ul li a strong {
    color: var(--primary-color);
    font-size: 1.1em;
}

/* Typography */
h1, h2, h3 {
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 45, 141, 0.3);
    margin-top: 0;
    font-weight: 700;
}

h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 1.8rem; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
h3 { font-size: 1.25rem; margin-bottom: 15px; }

p { color: var(--text-muted); }

a { color: var(--primary-color); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--secondary-color); text-shadow: 0 0 8px rgba(139, 92, 246, 0.5); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF2D8D, #8B5CF6);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 45, 141, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #8B5CF6, #FF2D8D);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

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

/* Cards */
.card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 45, 141, 0.15);
}

/* Inputs */
input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--secondary-color);
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 45, 141, 0.2);
    background-color: var(--background-color);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

th {
    background-color: rgba(255,255,255,0.05);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background-color: rgba(255,255,255,0.02); }

/* Status Badges */
[class^="status-"] {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}
.status-pending { background-color: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.status-approved { background-color: rgba(16, 185, 129, 0.2); color: #34d399; }
.status-rejected { background-color: rgba(239, 68, 68, 0.2); color: #f87171; }

/* Chat Styles - Elegant Dark */
.chat-container {
    display: flex;
    height: 80vh;
    background-color: var(--background-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.chat-sidebar {
    width: 30%;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-sidebar-header {
    padding: 15px;
    background-color: var(--background-color);
    color: white;
    font-weight: 600;
}

.user-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-list-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.user-list-item:hover, .user-list-item.active {
    background-color: rgba(255, 45, 141, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.user-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 10px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 15px;
        gap: 15px;
        background: var(--card-bg);
    }
    
    nav ul.active {
        display: flex;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    nav ul li a {
        padding: 10px;
        font-size: 1.1rem;
        display: block;
    }
    
    .chat-container {
        flex-direction: column;
        height: 85vh;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 30%; /* Show list at top */
        min-height: 150px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .chat-main {
        width: 100%;
        height: 70%;
    }
    
    .profile-header {
        height: 150px !important;
        margin-bottom: 60px !important;
    }
    
    .profile-info h1 {
        font-size: 1.5rem;
    }
    
    .stats-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stat-item {
        flex: 1 1 40%;
    }
    
    .feed {
        grid-template-columns: 1fr !important;
    }
    
    .card {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    /* Make chat input better on mobile */
    .chat-input-area {
        padding: 10px;
    }
    
    .chat-input-area input {
        padding: 8px;
    }
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000; /* Deep black for chat */
}

.chat-header {
    padding: 15px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    color: white;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 65%;
    position: relative;
    word-wrap: break-word;
    font-size: 0.95rem;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

.message.sent {
    background-color: var(--primary-color);
    color: #e9edef;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.message.received {
    background-color: var(--card-bg);
    color: #e9edef;
    align-self: flex-start;
    border-top-left-radius: 0;
    border: none;
}

.message small {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.chat-input-area {
    padding: 10px 15px;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    margin: 0;
    background-color: var(--background-color);
    border: none;
    padding: 12px;
    border-radius: 8px;
    color: white;
}

.chat-input-area .btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.chat-input-area .btn-icon:hover {
    color: var(--primary-color);
}

/* Feed */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.post-content {
    border-radius: var(--radius);
    overflow: hidden;
    background: black;
    margin-bottom: 15px;
}

/* Authentication Pages */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.auth-card h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    border: none;
    background: linear-gradient(to right, white, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hidden { display: none !important; }
/* Profile Styles */
.profile-header {
    position: relative;
    margin-bottom: 60px;
}

.banner-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
}

.profile-avatar-container {
    position: absolute;
    bottom: -50px;
    left: 40px;
    border: 4px solid var(--card-bg);
    border-radius: 50%;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--card-bg);
}

.profile-info {
    margin-top: 10px;
    margin-left: 20px;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.profile-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.profile-bio {
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 20px;
}

.stats-bar {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.stat-item strong {
    display: block;
    font-size: 1.2rem;
    color: white;
}

.stat-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Edit Profile Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}
