/* ASEL Akademi - Professional & Clean Design */

:root {
    /* Primary Colors - Based on Brand */
    --primary-red: #cb0001;
    --dark-red: #a00001;
    --light-red: #e61517;
    --primary-orange: #f4a460;
    --dark-orange: #e07930;
    --light-orange: #ffb876;
    
    /* Neutral Colors */
    --primary-black: #1f1f1f;
    --secondary-black: #2d2d2d;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar - Clean & Professional */
.navbar {
    background: white !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-base);
}

.navbar-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gray-900) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-fast);
}

.navbar-brand img {
    height: 45px;
    transition: var(--transition-fast);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    color: var(--gray-700) !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-fast);
    border-radius: 6px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-orange) !important;
    background: var(--gray-100);
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.navbar-nav .nav-link.active {
    color: var(--primary-orange) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-toggler {
    border: 1px solid var(--gray-300);
    padding: 0.375rem 0.625rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(244, 164, 96, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Slider */
.carousel {
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(33, 37, 41, 0.8);
    border-radius: 50%;
    padding: 10px;
}

.carousel-indicators {
    margin-bottom: 1.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-400);
    border: none;
    opacity: 0.5;
    transition: var(--transition-fast);
    margin: 0 6px;
}

.carousel-indicators .active {
    background-color: var(--primary-red);
    opacity: 1;
    transform: scale(1.2);
}

/* Hero Section - Professional & Clean */
.hero-section {
    background: linear-gradient(135deg, rgba(74, 157, 156, 0.05) 0%, rgba(244, 164, 96, 0.05) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1.5rem;
        min-height: 400px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Cards - Clean & Professional */
.card {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-base);
    background: white;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition-base);
    background: var(--gray-100);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    line-height: 1.4;
}

.card-text {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.badge-success {
    background-color: #10b981;
    color: white;
}

.badge-primary {
    background-color: var(--primary-red);
    color: white;
}

.badge-info {
    background-color: var(--primary-teal);
    color: white;
}

/* Buttons - Professional */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn i {
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background-color: var(--gray-700);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid var(--gray-400);
    color: var(--gray-700);
    background: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-500);
}

.btn-light {
    background-color: white;
    color: var(--gray-900);
    border: 1px solid var(--gray-300);
}

.btn-light:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Forms - Professional */
.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    transition: var(--transition-fast);
    background: white;
    font-size: 0.9375rem;
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(203, 0, 1, 0.1);
    background: white;
    outline: none;
}

.form-control:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
}

.form-label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: block;
}

.form-label i {
    color: var(--primary-red);
    margin-right: 0.375rem;
    font-size: 0.875rem;
}

.form-check-input {
    border-radius: 4px;
    border: 2px solid var(--gray-300);
}

.form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(203, 0, 1, 0.15);
    border-color: var(--primary-red);
}

.form-check-label {
    color: var(--gray-700);
    font-size: 0.9375rem;
}

/* Footer - Clean & Professional */
footer {
    margin-top: auto;
    background-color: var(--gray-900);
    border-top: 1px solid var(--gray-800);
}

footer h5 {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

footer p {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.6;
}

footer a {
    text-decoration: none;
    color: var(--gray-400);
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

footer a:hover {
    color: var(--primary-red);
}

footer .list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .list-unstyled li {
    margin-bottom: 0.625rem;
}

footer hr {
    border-color: var(--gray-800);
    margin: 1.5rem 0;
    opacity: 1;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-800);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
}

/* Dashboard */
.dashboard-card {
    border-left: 4px solid var(--primary-color);
}

.dashboard-card.success {
    border-left-color: var(--success-color);
}

.dashboard-card.warning {
    border-left-color: var(--warning-color);
}

.dashboard-card.danger {
    border-left-color: var(--danger-color);
}

/* Video Player */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--gray-200);
}

.progress-bar {
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.progress-bar.bg-success {
    background-color: #10b981;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Exam */
.question-card {
    border-left: 4px solid var(--info-color);
}

.option-label {
    cursor: pointer;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.option-label:hover {
    background-color: #e9ecef;
}

.option-label.selected {
    background-color: var(--primary-color);
    color: white;
}

/* Certificate */
.certificate {
    border: 5px solid #d4af37;
    padding: 2rem;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 150px;
    }
}

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

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}
