/* Orivoxkart Earn & Learn Platform - Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.auth-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Stat Cards */
.stat-card {
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.stat-content p {
    margin: 0;
    opacity: 0.9;
}

/* Cards */
.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: var(--light-color);
}

/* Activity List */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

.activity-content {
    flex-grow: 1;
}

/* Task Cards */
.task-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.task-card:hover {
    transform: translateY(-5px);
}

.task-thumbnail {
    height: 180px;
    background-color: #000;
    position: relative;
}

.task-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-play-btn:hover {
    background-color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Quiz Styles */
.quiz-option {
    padding: 15px 20px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background-color: var(--light-color);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
}

.quiz-option.correct {
    border-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.1);
}

.quiz-option.incorrect {
    border-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
}

/* Progress Bar */
.progress {
    height: 10px;
    border-radius: 5px;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

/* Forms */
.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Badges */
.badge {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .auth-card {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .card {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .card-header {
    background-color: #2d2d2d;
    border-bottom-color: #444;
}

body.dark-mode .navbar {
    background-color: #0d1117;
}

body.dark-mode .table {
    color: #e0e0e0;
}

body.dark-mode .table thead {
    background-color: #333;
}

body.dark-mode .form-control {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .form-control:focus {
    background-color: #333;
    border-color: var(--primary-color);
    color: #e0e0e0;
}

body.dark-mode .activity-item {
    border-bottom-color: #444;
}

body.dark-mode .activity-icon {
    background-color: #333;
}

body.dark-mode .stat-card {
    color: white;
}

body.dark-mode footer {
    background-color: #0d1117;
}

body.dark-mode .modal-content {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .modal-header {
    border-bottom-color: #444;
}

body.dark-mode .modal-footer {
    border-top-color: #444;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .auth-card {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    .card {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    .card-header {
        background-color: #2d2d2d;
        border-bottom-color: #444;
    }
    
    .table {
        color: #e0e0e0;
    }
    
    .table thead {
        background-color: #333;
    }
    
    .form-control {
        background-color: #333;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .form-control:focus {
        background-color: #333;
        border-color: var(--primary-color);
        color: #e0e0e0;
    }
    
    .activity-item {
        border-bottom-color: #444;
    }
    
    .activity-icon {
        background-color: #333;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        padding: 20px;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .auth-card {
        padding: 20px;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
