/* Import Google Fonts and Material Icons */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Outlined');

/* Import Tailwind CSS via CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f9fa;
}

/* Material Icons Base Styles */
.material-icons,
.material-icons-outlined {
    font-size: 24px;
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }
.material-icons.md-72 { font-size: 72px; }

/* Icon Colors */
.material-icons.text-primary { color: #2563eb; }
.material-icons.text-success { color: #10b981; }
.material-icons.text-warning { color: #f59e0b; }
.material-icons.text-danger { color: #ef4444; }
.material-icons.text-info { color: #3b82f6; }

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Mobile padding to account for fixed navbar */
@media (max-width: 768px) {
    /* Remove padding from body as it causes issues */
    body {
        padding-top: 0 !important;
    }
    
    /* Add padding to all main content areas */
    .main-content,
    .course-detail-content,
    .checkout-content,
    .dashboard-content,
    .login-container,
    .legal-content,
    .help-content,
    .admin-content,
    .instructor-content,
    .docs-content,
    .embed-container {
        padding-top: 80px !important; /* Extra padding for safety */
    }
    
    /* Special handling for login page */
    #login-page {
        padding-top: 0;
    }
    
    #login-page .login-container {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 0;
    }
    
    /* Hero sections that go full width */
    .hero {
        margin-top: 0;
        padding-top: calc(3rem + 80px);
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1rem; margin-bottom: 0.5rem; }

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.link {
    color: #2563eb;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox input {
    margin-right: 0.5rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    color: #1a1a1a;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.divider {
    text-align: center;
    color: #9ca3af;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
    z-index: 0;
}

.divider::after {
    content: attr(data-text);
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    background-color: #f9fafb;
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.signup-link {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Navigation Bar */
.navbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-small {
    font-weight: 600;
    font-size: 1.125rem;
}

.nav-link {
    color: #6b7280;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #1a1a1a;
    text-decoration: none;
}

.nav-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background 0.2s;
    position: relative;
}

.user-menu:hover {
    background: #f9fafb;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6366f1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 500;
    color: #374151;
}

.dropdown-arrow {
    font-size: 0.625rem;
    color: #6b7280;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: #f9fafb;
    text-decoration: none;
}

.user-dropdown hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Search Header */
.search-header {
    margin-bottom: 2rem;
}

.location-search {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.location-icon {
    font-size: 1.25rem;
}

.location-input {
    flex: 1;
    border: none;
    font-size: 1rem;
    font-weight: 500;
}

.location-filter {
    color: #6b7280;
}

.change-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 500;
    cursor: pointer;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    height: fit-content;
}

.filters-sidebar h3 {
    margin-bottom: 1.5rem;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h4 {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.checkbox-filter {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-filter input {
    margin-right: 0.5rem;
}

.distance-slider {
    width: 100%;
    margin: 1rem 0;
}

.distance-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    width: 80px;
}

.reset-filters {
    width: 100%;
}

/* Calendar View */
.calendar-view {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: #6b7280;
    padding: 0.5rem 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: #f3f4f6;
}

.calendar-day.other-month {
    color: #d1d5db;
}

.calendar-day.has-courses {
    font-weight: 600;
}

.calendar-day.selected {
    background: #2563eb;
    color: white;
}

.course-indicator {
    position: absolute;
    bottom: 4px;
    font-size: 0.5rem;
    color: #2563eb;
}

.calendar-day.selected .course-indicator {
    color: white;
}

/* Courses List */
.courses-list h3 {
    margin-bottom: 1.5rem;
}

.course-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    margin-bottom: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.course-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.course-image {
    width: 200px;
    height: 120px;
    position: relative;
    overflow: hidden;
    background: #f0f4f8;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.course-badge.premium {
    background: #f59e0b;
}

.course-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.course-info h4 {
    margin-bottom: 0.5rem;
}

.course-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.course-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.course-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.rating {
    color: #374151;
}

.seats {
    color: #dc2626;
    font-weight: 500;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Course Detail Page */
.course-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #6b7280;
}

.course-hero {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
}

.hero-left h1 {
    margin-top: 0.5rem;
}

.hero-description {
    color: #6b7280;
    margin: 1rem 0;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.enrollment-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
}

.price-tag {
    display: flex;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.currency {
    font-size: 1.5rem;
    color: #6b7280;
}

.amount {
    font-size: 3rem;
    font-weight: 600;
}

.course-schedule,
.course-location {
    margin-bottom: 1.5rem;
}

.course-schedule h3,
.course-location h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.course-schedule p,
.course-location p {
    color: #6b7280;
    font-size: 0.875rem;
}

.seats-remaining {
    margin-bottom: 1.5rem;
}

.seats-bar {
    background: #e5e7eb;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.seats-filled {
    background: #f59e0b;
    height: 100%;
    transition: width 0.3s;
}

.seats-remaining p {
    font-size: 0.875rem;
    color: #dc2626;
    font-weight: 500;
}

/* Course Details Tabs */
.course-details-section {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
}

.details-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.tab {
    background: none;
    border: none;
    padding: 1rem 0;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab:hover {
    color: #374151;
}

.tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.learning-objectives {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.objective {
    display: flex;
    gap: 1rem;
}

.check {
    color: #10b981;
    font-weight: 600;
}

.requirements-list {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.requirements-list li {
    position: relative;
    margin-bottom: 0.5rem;
}

.requirements-list li::before {
    content: '•';
    position: absolute;
    left: -1.5rem;
    color: #6b7280;
}

.included-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.included-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.included-item .icon {
    font-size: 1.5rem;
}

.instructor-profile {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.instructor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #6366f1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.instructor-info h3 {
    margin-bottom: 0.25rem;
}

.instructor-info p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.instructor-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

/* Checkout Page */
.checkout-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.step {
    color: #6b7280;
}

.step.active {
    color: #2563eb;
    font-weight: 500;
}

.step-separator {
    color: #d1d5db;
}

.secure-badge {
    color: #10b981;
    font-weight: 500;
    font-size: 0.875rem;
}

.checkout-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
}

.checkout-main h1 {
    margin-bottom: 2rem;
}

.checkout-section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.checkout-section h2 {
    margin-bottom: 1.5rem;
}

.section-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

.payment-option.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.payment-option input {
    margin-right: 1rem;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.option-icon {
    font-size: 1.25rem;
}

.checkbox-large {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-large input {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

/* Checkout Sidebar */
.checkout-sidebar {
    height: fit-content;
}

.order-summary {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.order-summary h2 {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.item-image img {
    width: 80px;
    height: 80px;
    border-radius: 0.375rem;
}

.item-details h3 {
    margin-bottom: 0.5rem;
}

.item-details p {
    font-size: 0.875rem;
    color: #6b7280;
}

.summary-pricing {
    margin-bottom: 1.5rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.price-line.total {
    font-size: 1.125rem;
    font-weight: 600;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.promo-code {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.promo-code input {
    flex: 1;
}

.security-badges {
    text-align: center;
    margin-top: 1rem;
}

.security-badges p {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.help-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.help-section h3 {
    margin-bottom: 1rem;
}

.help-section p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Dashboard */
.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header p {
    color: #6b7280;
}

.dashboard-grid {
    display: grid;
    gap: 2rem;
}

.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.dashboard-section h2 {
    margin-bottom: 1.5rem;
}

.upcoming-class-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    padding: 1.5rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 0.5rem;
}

.class-date {
    text-align: center;
}

.date-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.date-day {
    font-size: 2rem;
    font-weight: 600;
    color: #2563eb;
}

.class-info h3 {
    margin-bottom: 0.5rem;
}

.class-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.class-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.class-checklist h4 {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checklist-item input {
    margin-right: 0.5rem;
}

.checklist-item input:checked + span {
    text-decoration: line-through;
    color: #9ca3af;
}

.certification-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.certification-card.active {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.certification-card.expiring {
    background: #fef3c7;
    border-color: #fde68a;
}

.cert-icon {
    font-size: 2rem;
}

.cert-info h3 {
    margin-bottom: 0.25rem;
}

.cert-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.125rem;
}

.cert-number {
    font-family: monospace;
}

.cert-expiry.warning {
    color: #dc2626;
    font-weight: 500;
}

.cert-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: #2563eb;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.recent-courses h3 {
    margin-bottom: 1rem;
}

.course-history-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.history-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.history-course {
    font-weight: 500;
}

.history-status {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.history-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-icon {
    font-size: 1.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 0.5rem;
    max-width: 500px;
    text-align: center;
}

.confirmation-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.confirmation-details {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.375rem;
    text-align: left;
    margin-bottom: 2rem;
}

.confirmation-details p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Responsive Design */
/* Tablet - iPad, etc. */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .included-items {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-left {
        gap: 1rem;
    }
    
    .nav-link {
        display: none;
    }
    
    .course-card {
        flex-direction: column;
    }
    
    .course-image {
        width: 100%;
        height: 200px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .upcoming-class-card {
        grid-template-columns: 1fr;
    }
    
    .certification-card {
        grid-template-columns: 1fr;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .details-tabs {
        overflow-x: auto;
        gap: 1rem;
    }
    
    .checkout-steps {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 2rem;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    /* Typography handled in responsive typography section above */
    
    /* Additional navbar fixes for small screens */
    .nav-container {
        padding: 0.5rem;
    }
    
    .nav-left .logo {
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        padding: 0.25rem;
    }
    
    .mobile-menu-toggle .material-icons {
        font-size: 20px;
    }
    
    .notification-badge {
        font-size: 0.625rem;
        padding: 0.1rem 0.3rem;
        top: -4px;
        right: -4px;
    }
    
    .price {
        font-size: 1.25rem;
    }
    
    .amount {
        font-size: 2rem;
    }
}

/* Enhanced Mobile-First Responsive Design */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 1000;
    }
    
    /* Body padding handled in main mobile section above */
    
    .nav-container {
        flex-wrap: nowrap;
        padding: 0.75rem 1rem;
        min-height: 64px;
        height: auto;
    }
    
    .nav-left {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 0; /* Allow shrinking */
    }
    
    .nav-left .logo {
        font-size: 1.125rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-right {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e5e7eb;
        display: none;
        z-index: 999;
    }
    
    .nav-right.mobile-active {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem;
        text-align: left;
        border-radius: 0.375rem;
    }
    
    .nav-link:hover {
        background: #f3f4f6;
    }
    
    .user-menu {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid #e5e7eb;
        padding-top: 1rem;
        margin-top: 0.5rem;
    }
}

/* Responsive Tables */
@media (max-width: 768px) {
    .roster-table,
    .billing-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .roster-table thead,
    .billing-table thead {
        display: none;
    }
    
    .roster-table tr,
    .billing-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        padding: 1rem;
    }
    
    .roster-table td,
    .billing-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
    }
    
    .roster-table td:before,
    .billing-table td:before {
        content: attr(data-label);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: #6b7280;
    }
}

/* Responsive Cards and Grids */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .course-card {
        padding: 1rem;
    }
    
    .course-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .course-meta span {
        font-size: 0.875rem;
    }
    
    .cert-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .cert-actions .btn {
        width: 100%;
    }
}

/* Responsive Forms */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .payment-options {
        flex-direction: column;
    }
    
    .payment-option {
        width: 100%;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Responsive Modals and Overlays */
@media (max-width: 768px) {
    .confirmation-modal .modal-content {
        width: 90%;
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .page {
        padding: 0;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    /* Base font size reduction */
    body {
        font-size: 14px; /* Down from 16px */
    }
    
    /* Heading sizes */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }
    
    /* Navigation and menu items */
    .nav-link {
        font-size: 0.875rem;
    }
    
    .logo {
        font-size: 1.125rem !important;
    }
    
    .user-menu span {
        font-size: 0.875rem;
    }
    
    /* Button text */
    .btn {
        font-size: 0.875rem;
    }
    
    /* Form elements */
    label {
        font-size: 0.875rem;
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Specific sections */
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.875rem;
    }
    
    .dashboard-header {
        padding: 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.25rem;
    }
    
    .dashboard-header p {
        font-size: 0.875rem;
    }
    
    /* Course cards and content */
    .course-title {
        font-size: 1rem;
    }
    
    .course-meta {
        font-size: 0.75rem;
    }
    
    .price {
        font-size: 1.125rem;
    }
    
    /* General text */
    p, li, td {
        font-size: 0.875rem;
    }
    
    /* Small text */
    .text-sm, small {
        font-size: 0.75rem;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    /* Further reduction */
    body {
        font-size: 13px;
    }
    
    /* Headings */
    h1 { font-size: 1.25rem; }
    h2 { font-size: 1.125rem; }
    h3 { font-size: 1rem; }
    h4 { font-size: 0.875rem; }
    
    /* Navigation */
    .nav-link {
        font-size: 0.8125rem;
    }
    
    .logo {
        font-size: 1rem !important;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }
    
    /* Hero section */
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.8125rem;
    }
    
    /* General content */
    p, li, td {
        font-size: 0.8125rem;
    }
    
    /* Prevent text wrapping in nav */
    .nav-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Responsive Sidebar Layouts */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
    }
    
    .admin-sidebar.mobile-active {
        display: block;
    }
    
    .instructor-layout {
        grid-template-columns: 1fr;
    }
    
    .instructor-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        background: white;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
    }
    
    .instructor-nav.mobile-active {
        display: block;
    }
}

/* Responsive Images */
@media (max-width: 768px) {
    .course-image {
        height: 150px;
    }
    
    .instructor-avatar {
        width: 60px;
        height: 60px;
    }
    
    .cert-icon {
        font-size: 2rem;
    }
}

/* Responsive Spacing */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .dashboard-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .checkout-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 2rem 1rem;
    }
}

/* Touch-friendly Buttons */
@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* Apple's touch target recommendation */
        font-size: 1rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .action-btn {
        min-height: 60px;
    }
}

/* Hide desktop-only elements on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .checkout-steps {
        display: none;
    }
    
    .calendar-widget {
        overflow-x: auto;
    }
}

/* Show mobile-only elements */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center;
    }
    
    .stack-mobile {
        flex-direction: column;
    }
    
    .hide-mobile {
        display: none;
    }
    
    .full-width-mobile {
        width: 100%;
    }
}