/* =============================================
   Task Earning Platform - Main Stylesheet
   Modern Gradient Design with Glassmorphism
============================================= */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #7c3aed;
    --accent: #10b981;
    --accent-light: #34d399;
    --dark: #1e1b4b;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --shadow: 0 10px 40px rgba(79, 70, 229, 0.15);
    --shadow-lg: 0 25px 50px rgba(79, 70, 229, 0.25);
    --radius: 20px;
    --radius-sm: 12px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-nav {
    background: rgba(79, 70, 229, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

/* Navigation */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-light) !important;
}

/* Main Content */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero-section {
    background: var(--gradient);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(-15deg);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
}

.hero-mockup {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-primary-custom {
    background: white;
    color: var(--primary);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--light);
    color: var(--primary-dark);
}

.btn-secondary-custom {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 13px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-gradient {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: white;
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
}

/* Cards */
.card-custom {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
}

/* Step Cards */
.step-card {
    text-align: center;
    padding: 40px 30px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

/* Feature Cards */
.feature-card {
    padding: 30px;
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
}

/* Section Styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}

.section-padding {
    padding: 80px 0;
}

/* Activation Section */
.activation-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: white;
}

.activation-section h2,
.activation-section h3,
.activation-section p {
    color: #ffffff !important;
}

.activation-section .text-muted,
.activation-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

.payment-method-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-method-card:hover {
    background: #f1f5f9;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.payment-method-card.selected {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.payment-method-card.selected .fw-bold {
    color: var(--primary) !important;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    background: var(--gradient);
    height: 100vh;
    padding: 30px 20px;
    position: fixed;
    width: 260px;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-brand {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 15px;
    margin-bottom: 30px;
    display: block;
    text-decoration: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sidebar-menu a i {
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Dashboard Top Header Bar - Minimal Design */
.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 12px 20px;
    margin: -30px -30px 30px -30px;
    border-bottom: 1px solid #e9ecef;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-menu-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topbar-menu-btn i {
    font-size: 1.5rem;
    color: #495057;
}

.topbar-menu-btn:hover {
    background: #e9ecef;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.topbar-icon-btn i {
    font-size: 1.25rem;
    color: #495057;
}

.topbar-icon-btn:hover {
    background: #e9ecef;
}

.topbar-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-avatar-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.notification-dropdown {
    width: 360px;
    padding: 0;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
}

.notification-dropdown .dropdown-header {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: rgba(79, 70, 229, 0.03);
    border-left: 3px solid var(--primary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
    color: var(--dark);
}

.notification-text {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.dropdown-footer {
    padding: 12px 20px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.dropdown-footer a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* User Avatar */
.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.user-info {
    margin-left: 12px;
    text-align: left;
}

.user-name {
    display: block;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    line-height: 1.2;
}

.user-status {
    display: block;
    font-size: 0.75rem;
}

.user-status.active {
    color: var(--accent);
}

.user-status.inactive {
    color: #f59e0b;
}

.profile-dropdown {
    width: 280px;
    padding: 0;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
}

.profile-dropdown .dropdown-header {
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.profile-dropdown .dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.profile-dropdown .dropdown-item:hover {
    background: rgba(79, 70, 229, 0.05);
}

.profile-dropdown .dropdown-item i {
    color: var(--gray);
}

/* Dashboard Content */
.dashboard-content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
    background: #f1f5f9;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Task Cards */
.task-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.task-type-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.task-type-badge.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.task-type-badge.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.task-type-badge.app {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.task-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* Admin Filter Tabs */
.nav-pills .nav-link {
    color: #1e1b4b;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.nav-pills .nav-link.active {
    background: var(--primary);
    color: white;
}

/* Tables */
.table-custom {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: var(--gradient);
    color: white;
}

.table-custom th {
    padding: 15px 20px;
    font-weight: 600;
    border: none;
}

.table-custom td {
    padding: 15px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Language Selection */
.language-option label {
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0 !important;
}

.language-option label:hover {
    border-color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.05);
}

.language-option input:checked + label {
    border-color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.1) !important;
}

.language-flag {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
}

.status-badge.approved {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Forms */
.form-control-custom {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-label-custom {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    padding: 40px 20px;
}

.auth-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

/* Footer */
.footer-section {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-section h5,
.footer-section h6 {
    color: #ffffff !important;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-light);
}

/* Alerts */
.alert {
    border-radius: var(--radius-sm);
    border: none;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Responsive */
@media (max-width: 991px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
    }

    .dashboard-content {
        margin-left: 0;
    }

    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-mockup {
        margin-top: 40px;
    }

    .stat-card {
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient);
}

/* Text on gradient backgrounds - ensure visibility */
.bg-gradient h1,
.bg-gradient h2,
.bg-gradient h3,
.bg-gradient h4,
.bg-gradient h5,
.bg-gradient h6 {
    color: #ffffff !important;
}

.bg-gradient p,
.bg-gradient li,
.bg-gradient span:not(.badge) {
    color: rgba(255, 255, 255, 0.95) !important;
}

.bg-gradient .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.rounded-custom {
    border-radius: var(--radius);
}
