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

:root {
    --bg-dark: #090d16;
    --bg-card: rgba(18, 24, 41, 0.6);
    --bg-card-hover: rgba(26, 34, 57, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(156, 158, 255, 0.25);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --color-accent: #6264a7;
    --color-accent-glow: rgba(98, 100, 167, 0.4);
    --color-accent-light: #9c9eff;
    --color-success: #10b981;
    --color-success-glow: rgba(16, 185, 129, 0.25);
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-error-glow: rgba(239, 68, 68, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

table, .table, .table > :not(caption) > * > * {
    background-color: transparent !important;
    color: var(--text-primary) !important;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(98, 100, 167, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(156, 158, 255, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Glass Container General */
.glass-container {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-container:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    outline: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 14px 0 var(--color-accent-glow);
}
.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--color-accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: var(--color-success);
    color: #fff;
    box-shadow: 0 4px 14px 0 var(--color-success-glow);
}
.btn-success:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--color-error);
    color: #fff;
    box-shadow: 0 4px 14px 0 var(--color-error-glow);
}
.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Discord Buttons */
.btn-discord {
    background-color: #5865F2;
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(88, 101, 242, 0.35);
}
.btn-discord:hover {
    background-color: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(88, 101, 242, 0.45);
}

/* Badge/Tags */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--color-warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-approved { background: rgba(16, 185, 129, 0.15); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-rejected { background: rgba(239, 68, 68, 0.15); color: var(--color-error); border: 1px solid rgba(239, 68, 68, 0.3); }

/* Landing Page CSS */
.landing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.landing-card {
    max-width: 650px;
    width: 100%;
    padding: 50px 40px;
    text-align: center;
}

.logo-container img {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--color-accent));
}

.landing-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 30%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 35px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
    text-align: left;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 15px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 12px;
}

.benefit-item i {
    color: var(--color-accent-light);
    font-size: 1.25rem;
    margin-top: 2px;
}

.benefit-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Multi-step / Application form */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-accent-light);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px 0 var(--color-accent-glow);
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 40px;
    padding-left: 10px;
}

.sidebar-logo img {
    width: 32px;
    height: 32px;
}

.user-profile-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    object-fit: cover;
}

.user-meta h5 {
    font-size: 0.95rem;
    font-weight: 600;
}

.user-meta p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    background: rgba(98, 100, 167, 0.15);
    color: #fff;
    padding-left: 20px;
}

.nav-link.active {
    border-left: 3px solid var(--color-accent-light);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

/* Main Dashboard Area */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px;
    min-height: 100vh;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.content-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.content-title p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h3 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(98, 100, 167, 0.1);
    color: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Panel Design */
.panel {
    padding: 30px;
    margin-bottom: 35px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-glass);
}

.panel-title {
    font-size: 1.15rem;
    font-weight: 700;
}

/* Tables & Lists */
.custom-table-wrapper {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    padding: 15px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
    letter-spacing: 0.05em;
}

.custom-table td {
    padding: 18px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Staff details in table */
.staff-meta-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.staff-meta-cell img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
}

/* Notifications List */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-item {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.notif-item.unread {
    background: rgba(98, 100, 167, 0.05);
    border-color: rgba(98, 100, 167, 0.2);
}

.notif-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.03);
}

.notif-content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.notif-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Task Cards Grid */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.task-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.task-reward {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-success);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.task-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.task-footer {
    border-top: 1px solid var(--border-glass);
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Submission Card */
.submission-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 15px;
}

.sub-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sub-proof {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 15px;
    white-space: pre-wrap;
    border: 1px solid rgba(255,255,255,0.03);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    padding: 35px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-modal {
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
}

.close-modal:hover {
    color: #fff;
}

/* Responsive sidebar */
@media (max-width: 992px) {
    .sidebar {
        width: 80px;
        padding: 20px 10px;
    }
    .sidebar-logo span, .user-profile-widget .user-meta, .nav-link span, .sidebar-footer button span {
        display: none;
    }
    .user-profile-widget {
        justify-content: center;
        padding: 8px;
    }
    .nav-link {
        justify-content: center;
    }
    .main-content {
        margin-left: 80px;
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .main-content {
        padding: 15px;
    }
}

/* Tab Panes toggling */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* CRM Sub Tab Panes toggling */
.crm-sub-pane {
    display: none;
}
.crm-sub-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

