/* Main CSS for Course Selling Website - App-like Design */

/* Custom styles for mobile-friendly, app-like design */
body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App bar styles */
.app-bar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.app-bar .navbar {
    padding: 0 16px;
}

.app-bar .navbar-brand {
    font-weight: 700;
    color: #1a73e8 !important;
    padding: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.app-bar .navbar-brand img {
    height: 32px;
    margin-right: 10px;
}

/* Bottom navigation for mobile - enhanced ClassPlus style */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #757575;
    font-size: 0.75rem;
    padding: 6px 0;
    min-width: 60px;
    transition: all 0.2s ease;
}

.bottom-nav a.active, .bottom-nav a:hover {
    color: #1a73e8;
    transform: translateY(-3px);
}

.bottom-nav i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

/* Add padding to container to prevent content from being hidden behind fixed bottom nav */
@media (max-width: 767px) {
    .container {
        padding-bottom: 80px;
        padding-top: 16px;
    }
    
    .app-bar {
        padding: 16px;
    }
}

/* Card styles - enhanced app-like design */
.app-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    border: 1px solid rgba(0,0,0,0.03);
}

.app-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.app-card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    font-size: 1.2rem;
    color: #202124;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-card-body {
    padding: 20px;
}

/* Course card - enhanced app design */
.course-card {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    border: 1px solid rgba(0,0,0,0.03);
}

.course-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.course-thumbnail {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.course-content {
    padding: 20px;
}

.course-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #202124;
    line-height: 1.4;
}

.course-description {
    color: #5f6368;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.course-category {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-price {
    font-weight: 800;
    color: #1a73e8;
    font-size: 1.3rem;
}

.btn-app {
    background: linear-gradient(135deg, #1a73e8, #0d62c9);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    display: block;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.3);
    letter-spacing: 0.5px;
}

.btn-app:hover {
    background: linear-gradient(135deg, #0d62c9, #0a52a8);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 115, 232, 0.4);
}

.btn-app:active {
    transform: translateY(0);
}

.btn-app-outline {
    background: transparent;
    color: #1a73e8;
    border: 2px solid #1a73e8;
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    display: block;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.btn-app-outline:hover {
    background: #e8f0fe;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Banner slider - enhanced app style */
.banner-slider {
    margin-bottom: 25px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 200px;
}

.banner-slider img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.carousel-indicators {
    bottom: 15px;
}

.carousel-indicators button {
    background-color: rgba(255,255,255,0.6);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    margin: 0 4px;
}

.carousel-indicators .active {
    background-color: #fff;
    width: 10px;
    height: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 10px;
    width: 2.5rem;
    height: 2.5rem;
}

/* Category section - enhanced app design */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.category-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    padding: 25px 16px;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    color: #202124;
    border: 1px solid rgba(0,0,0,0.03);
}

.category-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Adding colorful backgrounds for categories */
.category-card:nth-child(6n+1) {
    background: linear-gradient(135deg, #FF9A9E 0%, #FAD0C4 100%);
    color: white;
}

.category-card:nth-child(6n+2) {
    background: linear-gradient(135deg, #A1C4FD 0%, #C2E9FB 100%);
    color: white;
}

.category-card:nth-child(6n+3) {
    background: linear-gradient(135deg, #FFECD2 0%, #FCB69F 100%);
    color: white;
}

.category-card:nth-child(6n+4) {
    background: linear-gradient(135deg, #84FAB0 0%, #8FD3F4 100%);
    color: white;
}

.category-card:nth-child(6n+5) {
    background: linear-gradient(135deg, #D4FC79 0%, #96E6A1 100%);
    color: white;
}

.category-card:nth-child(6n+6) {
    background: linear-gradient(135deg, #A6C0FE 0%, #F68084 100%);
    color: white;
}

.category-icon {
    font-size: 2.5rem;
    color: #1a73e8;
    margin-bottom: 15px;
}

.category-name {
    font-weight: 700;
    color: #202124;
    margin-bottom: 6px;
    font-size: 1rem;
}

.category-desc {
    font-size: 0.8rem;
    color: #5f6368;
}

/* Adjust text colors for colorful backgrounds */
.category-card:nth-child(6n+1) .category-name,
.category-card:nth-child(6n+1) .category-desc {
    color: white;
}

.category-card:nth-child(6n+2) .category-name,
.category-card:nth-child(6n+2) .category-desc {
    color: white;
}

.category-card:nth-child(6n+3) .category-name,
.category-card:nth-child(6n+3) .category-desc {
    color: white;
}

.category-card:nth-child(6n+4) .category-name,
.category-card:nth-child(6n+4) .category-desc {
    color: white;
}

.category-card:nth-child(6n+5) .category-name,
.category-card:nth-child(6n+5) .category-desc {
    color: white;
}

.category-card:nth-child(6n+6) .category-name,
.category-card:nth-child(6n+6) .category-desc {
    color: white;
}

/* Hero section - enhanced app style */
.hero-section {
    background: linear-gradient(135deg, #1a73e8, #0d62c9);
    color: white;
    padding: 40px 20px;
    margin-bottom: 25px;
    border-radius: 0 0 20px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.hero-section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Form styles - enhanced app design */
.app-form {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.03);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #202124;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
    background-color: #fafafa;
}

.form-control:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.2);
    background-color: #ffffff;
}

/* Profile section */
.profile-header {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.03);
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1a73e8;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #1a73e8;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, #1a73e8, #0d62c9);
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #202124;
}

.profile-email {
    color: #5f6368;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Content tabs */
.content-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-item {
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #5f6368;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s;
}

.tab-item.active {
    color: #1a73e8;
    border-bottom: 3px solid #1a73e8;
}

/* PDF viewer */
.pdf-viewer {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Video player */
.video-player {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #1a73e8;
    text-decoration: none;
}

/* Alert messages */
.alert {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.alert-success {
    background: #e6f4ea;
    color: #0d62c9;
    border: 1px solid #aecfce;
}

.alert-danger {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #f5c0c0;
}

/* Footer */
.footer {
    background-color: #fff;
    color: #5f6368;
    padding: 25px;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 25px;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* Welcome message */
.welcome-message {
    background: linear-gradient(135deg, #1a73e8, #0d62c9);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.welcome-message h3 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.welcome-message p {
    opacity: 0.9;
    margin-bottom: 0;
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.section-header h5 {
    font-weight: 700;
    margin-bottom: 0;
    color: #202124;
    font-size: 1.2rem;
}

.section-header a {
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-section {
        padding: 60px 40px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .app-bar .navbar-brand {
        font-size: 1.6rem;
    }
    
    .banner-slider {
        height: 250px;
    }
    
    .banner-slider img {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
    
    .course-content {
        padding: 16px;
    }
    
    .app-card-body {
        padding: 16px;
    }
    
    .hero-section {
        border-radius: 0 0 20px 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .app-form {
        padding: 20px;
    }
    
    .profile-header {
        padding: 25px 15px;
    }
}