/* 
* Panadite Academy Main Stylesheet
* Colors:
* - Primary: #276BE4 (Blue)
* - Secondary: #FFA915 (Orange)
* - Light: #FFFFFF (White)
* - Gray: #f8f9fa
* - Dark: #343a40
*/

/* General Styles */
body {
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #343a40;
    background-color: #f8f9fa;
}

a {
    color: #276BE4;
    text-decoration: none;
}

a:hover {
    color: #1c54b8;
    text-decoration: underline;
}

.text-primary {
    color: #276BE4 !important;
}

.text-secondary {
    color: #FFA915 !important;
}

.bg-primary {
    background-color: #276BE4 !important;
}

.bg-secondary {
    background-color: #FFA915 !important;
}

.btn-primary {
    background-color: #276BE4;
    border-color: #276BE4;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1c54b8;
    border-color: #1c54b8;
}

.btn-secondary {
    background-color: #FFA915;
    border-color: #FFA915;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #e09000;
    border-color: #e09000;
}

.btn-outline-primary {
    color: #276BE4;
    border-color: #276BE4;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #276BE4;
    border-color: #276BE4;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.075);
    background-color: #fff;
}

.navbar-brand img {
    height: 40px;
}

.navbar .nav-link {
    font-weight: 500;
    color: #343a40;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: #276BE4;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #276BE4 0%, #1c54b8 100%);
    color: white;
    margin-bottom: 50px;
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p.lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Cards */
.card {
    border: none;
    transition: all 0.3s;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card .card-title {
    font-weight: 600;
}

.card .card-footer {
    background-color: #fff;
    border-top: 1px solid #f8f9fa;
}

.card .price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: #276BE4;
}

/* Video card */
.video-card {
    position: relative;
}

.video-card .locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.video-card .locked-overlay i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 50px 0 20px;
}

footer .footer-title {
    font-weight: 700;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer .copyright {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Dashboard */
.sidebar {
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    z-index: 100;
}

.sidebar .nav-link {
    color: #343a40;
    padding: 0.75rem 1.25rem;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
}

.sidebar .nav-link.active {
    color: #276BE4;
    background-color: #f0f4ff;
    border-left-color: #276BE4;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Dashboard Content */
.dashboard-content {
    padding: 30px;
}

.dashboard-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.dashboard-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Profile styles */
.profile-header {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-stats .stat-item {
    text-align: center;
    padding: 15px;
}

.profile-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #276BE4;
}

.profile-stats .stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Course and Video styles */
.course-detail-banner {
    background-size: cover;
    background-position: center;
    height: 300px;
    position: relative;
}

.course-detail-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.course-detail-banner-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 50px 0;
}

.course-detail-sidebar {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.course-progress-bar {
    height: 10px;
    margin: 15px 0;
}

/* Video player */
.video-player-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 30px;
}

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

/* Payment form */
.payment-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.payment-option {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #276BE4;
}

.payment-option.active {
    border-color: #276BE4;
    background-color: rgba(39, 107, 228, 0.05);
}

/* Forum styles */
.forum-post {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.forum-user {
    display: flex;
    align-items: center;
}

.forum-user-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Calendar */
.calendar-event {
    border-left: 3px solid #276BE4;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        min-height: auto;
    }
    
    .profile-header {
        text-align: center;
    }
    
    .profile-image {
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Utility classes */
.badge-price {
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 20px;
}

.rating {
    color: #FFA915;
}

.course-category-badge {
    background-color: rgba(255, 169, 21, 0.2);
    color: #FFA915;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: inline-block;
}

.btn-floating {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.25rem;
    position: fixed;
    bottom: 30px;
    right: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}
