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

:root {
    --bg-primary: #f4f4f9;
    --bg-secondary: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --accent-primary: #3498db;
    --accent-secondary: #2980b9;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --border: #e0e0e0;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --header-bg: linear-gradient(135deg, #2c3e50, #3498db);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-primary: #3498db;
    --accent-secondary: #2980b9;
    --card-bg: #333333;
    --shadow: 0 10px 30px rgba(0,0,0,0.3);
    --border: #404040;
    --header-bg: linear-gradient(135deg, #1a1a1a, #2c3e50);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* Splash Screen */
.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.splash-content {
    text-align: center;
    animation: zoomIn 1s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.splash-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.splash-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.repeat-text {
    display: block;
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 10px;
    color: #ffd700;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.dot {
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.dot:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { 
        transform: scale(0.3);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.theme-switch {
    background: var(--card-bg);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: transform 0.3s;
}

.theme-switch:hover {
    transform: scale(1.1);
}

.theme-switch .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-switch .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-switch .fa-sun {
    display: block;
    color: #ffd700;
}

/* Header */
.header {
    background: var(--header-bg);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

.header-logo {
    width: 60px;
    height: auto;
    border-radius: 50%;
    border: 2px solid white;
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

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

.dashboard-content {
    flex: 1;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Guide Cards */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.guide-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid var(--border);
}

.guide-card:hover {
    transform: translateY(-10px);
}

.guide-card i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.guide-card h3 {
    color: var(--accent-secondary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.guide-card p {
    color: var(--text-secondary);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.info-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.info-card i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.course-tag {
    background: var(--accent-primary);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.course-tag:hover {
    transform: scale(1.05);
    background: var(--accent-secondary);
}

/* Continue Button */
.continue-container {
    text-align: center;
    margin: 50px 0;
}

.continue-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.continue-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
    padding: 18px 60px;
}

.continue-btn i {
    margin-left: 10px;
    transition: transform 0.3s;
}

.continue-btn:hover i {
    transform: translateX(10px);
}

/* Search Section */
.search-section {
    flex: 1;
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

.search-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group label i {
    color: var(--accent-primary);
    margin-right: 10px;
}

.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: var(--accent-secondary);
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    flex: 1;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

.results-container {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-primary);
    animation: slideIn 0.5s ease;
    border: 1px solid var(--border);
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.result-date {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.result-session {
    background: var(--accent-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.result-details {
    display: grid;
    gap: 15px;
}

.result-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.result-detail i {
    color: var(--accent-primary);
    width: 25px;
    font-size: 1.1rem;
}

.disclaimer-card {
    background: linear-gradient(135deg, var(--warning), #e67e22);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.disclaimer-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.disclaimer-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.disclaimer-card p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.new-search-btn, .back-dashboard-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-search-btn {
    background: var(--accent-primary);
    color: white;
}

.back-dashboard-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.new-search-btn:hover, .back-dashboard-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    text-align: center;
    padding: 30px;
    margin-top: auto;
    border-top: 2px solid var(--border);
}

.footer p {
    color: var(--text-secondary);
    margin: 5px 0;
    font-size: 0.95rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.2rem;
    }
    
    .splash-title {
        font-size: 1.8rem;
    }
    
    .repeat-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .guide-card {
        padding: 20px;
    }
    
    .search-container {
        padding: 25px;
    }
    
    .result-header {
        flex-direction: column;
        gap: 10px;
        align-items: start;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .new-search-btn, .back-dashboard-btn {
        width: 100%;
        justify-content: center;
    }
    
    .disclaimer-card {
        padding: 25px;
    }
    
    .disclaimer-card h3 {
        font-size: 1.4rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}
