/* Pawsome Learning Academy - Modern UI with HopeUI Integration */

:root {
    /* Updated Color Palette with New Orange & Blue */
    --primary-color: #ff914d;  /* New Orange */
    --primary-dark: #E67E22;
    --secondary-color: #0cc0df;  /* New Blue */
    --secondary-dark: #0aa0c0;
    --accent-color: #ff914d;  /* Bright orange */
    --accent-dark: #E67E22;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --dark-color: #2C3E50;  /* Dark brown/slate */
    --dark-alt: #34495E;
    --light-color: #F8F9FA;
    --light-alt: #ECF0F1;
    --text-color: #2C3E50;
    --text-light: #7F8C8D;
    --border-radius: 24px;
    --border-radius-sm: 16px;
    --border-radius-lg: 32px;
    --box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    --box-shadow-hover: 0 20px 60px rgba(0,0,0,0.10);
    --gradient-primary: linear-gradient(135deg, #ff914d 0%, #ff7a33 50%, #ff914d 100%);
    --gradient-secondary: linear-gradient(135deg, #0cc0df 0%, #0aa0c0 100%);
    --gradient-hero: linear-gradient(135deg, #ff914d 0%, #E67E22 50%, #ff7a33 100%);
    --gradient-sunset: linear-gradient(135deg, #ff914d 0%, #ff7a33 100%);
    --gradient-ocean: linear-gradient(135deg, #0cc0df 0%, #5dd9f0 100%);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 145, 77, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(12, 192, 223, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #F8F9FA 0%, #ECF0F1 100%);
    min-height: 100vh;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Hope UI Integration */
.hope-ui-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

/* Removed hover effect for home page */

.hope-ui-button {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.hope-ui-button.primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.hope-ui-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Wider container for header when user is logged in */
.header .container {
    max-width: 95vw;
}

/* Enhanced Header with Hope UI */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(230, 126, 34, 0.1);
    transition: all 0.3s var(--transition-smooth);
}

.header.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s var(--transition-smooth);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(230, 126, 34, 0.3));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    transition: width 0.3s var(--transition-smooth);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
    transition: all 0.3s var(--transition-smooth);
}

.menu-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Enhanced Buttons with Glassmorphism */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
    letter-spacing: 0.4px;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(230, 126, 34, 0.4);
    letter-spacing: 0.6px;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 8px 20px rgba(12, 192, 223, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(12, 192, 223, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #229954);
    color: white;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(39, 174, 96, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #F5A623);
    color: white;
    box-shadow: 0 8px 20px rgba(247, 183, 49, 0.3);
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(247, 183, 49, 0.4);
}

/* Compact button styles for admin actions */
.btn-compact {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: auto;
}

/* Enhanced Hero Section with Modern Gradients */
.hero {
    background: 
        linear-gradient(135deg, rgba(230, 126, 34, 0.92), rgba(211, 84, 0, 0.92) 50%, rgba(243, 156, 18, 0.92)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') center/cover;
    color: white;
    text-align: center;
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><text y="15" font-size="15" opacity="0.15">🐾🦴🐾🦴🐾🦴🐾🦴🐾🦴</text></svg>');
    pointer-events: none;
}

.hero h1 {
    font-size: 4.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.25);
    position: relative;
    z-index: 2;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    font-weight: 400;
    line-height: 1.8;
}

/* Enhanced Cards with Glassmorphism */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition-smooth);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card:hover::before {
    /* Removed hover effect */
}

/* Dashboard-style hover animation for cards - removed for video cards */
.card:hover {
    /* Hover animation removed */
}

/* Enhanced Modern HopeUI Components */
.hope-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.hope-card--elevated {
    box-shadow: 0 12px 50px rgba(0,0,0,0.08);
}

/* Dashboard-style hover animations for home page cards */
.hope-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Prevent footer from having hover effects */
.footer.hope-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Footer links - removed all animation effects */
.footer .hope-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    transition: none;
}

.hope-stack {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hope-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.hope-text {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    margin: 0;
}

.hope-text-center {
    text-align: center;
}

/* Modern Badge System */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--transition-smooth);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge::before {
    content: '●';
    font-size: 0.6rem;
}

.badge-primary {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.15), rgba(243, 156, 18, 0.1));
    color: var(--primary-color);
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.badge-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(34, 153, 84, 0.1));
    color: var(--success-color);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(247, 183, 49, 0.15), rgba(245, 166, 35, 0.1));
    color: var(--warning-color);
    border: 1px solid rgba(247, 183, 49, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(192, 57, 43, 0.1));
    color: var(--danger-color);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-secondary {
    background: linear-gradient(135deg, rgba(12, 192, 223, 0.15), rgba(10, 160, 192, 0.1));
    color: var(--secondary-color);
    border: 1px solid rgba(12, 192, 223, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, rgba(12, 192, 223, 0.15), rgba(10, 160, 192, 0.1));
    color: var(--secondary-color);
    border: 1px solid rgba(12, 192, 223, 0.3);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.course-card {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: var(--border-radius);
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Removed course card image hover effect */

.course-content {
    padding: 1.5rem;
}

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

.course-title {
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.difficulty-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.difficulty-beginner {
    background: linear-gradient(135deg, rgba(12, 192, 223, 0.9), rgba(10, 160, 192, 0.8));
    color: white;
    border: 1px solid rgba(12, 192, 223, 0.3);
}

.difficulty-intermediate {
    background: linear-gradient(135deg, rgba(255, 145, 77, 0.9), rgba(230, 126, 34, 0.8));
    color: white;
    border: 1px solid rgba(255, 145, 77, 0.3);
}

.difficulty-advanced {
    background: linear-gradient(135deg, rgba(255, 145, 77, 0.9), rgba(255, 122, 51, 0.8));
    color: white;
    border: 1px solid rgba(255, 145, 77, 0.3);
}

/* Image Enhancement */
.feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    filter: brightness(1.1) saturate(1.1);
    transition: all 0.3s ease;
}

/* Removed feature image hover effect */

/* Enhanced Feature Section */
.features-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    margin: 4rem 0;
    box-shadow: var(--box-shadow);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* Removed feature card hover and transition effects */

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

/* Enhanced Forms with Modern Design */
.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.form-control {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid rgba(230, 126, 34, 0.15);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s var(--transition-smooth);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: relative;
    letter-spacing: 0.2px;
}

.form-control:hover {
    border-color: rgba(230, 126, 34, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    background: white;
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* Modern Select Styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2352B5D4' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 14px;
    padding-right: 3rem;
    cursor: pointer;
}

select.form-control:hover {
    border-color: var(--secondary-color);
}

/* Modern Textarea Styling */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Input Icons */
.form-group.has-icon {
    position: relative;
}

.form-group.has-icon .form-control {
    padding-left: 3rem;
}

.form-group.has-icon::before {
    content: attr(data-icon);
    position: absolute;
    left: 1.25rem;
    top: calc(50% + 0.75rem);
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--secondary-color);
}

/* Modern Checkbox and Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(230, 126, 34, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    appearance: none;
    background: white;
    position: relative;
}

.form-check input[type="radio"] {
    border-radius: 50%;
}

.form-check input[type="checkbox"]:checked,
.form-check input[type="radio"]:checked {
    background: var(--gradient-secondary);
    border-color: var(--secondary-color);
}

.form-check input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.form-check input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.form-check label {
    cursor: pointer;
    user-select: none;
}

/* Modern File Input */
input[type="file"].form-control {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
}

input[type="file"].form-control::file-selector-button {
    padding: 0.5rem 1.25rem;
    margin-right: 1rem;
    border: none;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s var(--transition-smooth);
}

input[type="file"].form-control::file-selector-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 181, 212, 0.3);
}

/* Enhanced Alerts with Modern Design */
.alert {
    padding: 1.25rem 1.75rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.alert-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(34, 153, 84, 0.1));
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-error,
.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.1));
    color: var(--danger-color);
    border-left-color: var(--danger-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(12, 192, 223, 0.15), rgba(10, 160, 192, 0.1));
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(247, 183, 49, 0.15), rgba(245, 166, 35, 0.1));
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

.alert-primary {
    background: linear-gradient(135deg, rgba(255, 145, 77, 0.15), rgba(230, 126, 34, 0.1));
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.alert-secondary {
    background: linear-gradient(135deg, rgba(12, 192, 223, 0.15), rgba(10, 160, 192, 0.1));
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1400px) and (min-width: 1025px) {
    /* Fix menu overflow on 1366px width displays (common laptop resolution)
       Reduces spacing in navbar, nav-links, and user-menu to prevent horizontal overflow */
    .navbar {
        gap: 0.75rem;
    }
    
    .nav-links {
        gap: 1rem;
        margin: 0 0.25rem;
    }
    
    .user-menu {
        gap: 0.4rem;
    }
    
    .user-menu .btn {
        min-width: 110px;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    
    .user-menu .btn-outline,
    .user-menu .btn-primary {
        min-width: 110px;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    
    .user-welcome {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0;
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.15rem;
        padding: 0 1rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hope-stack {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hope-button--size-lg {
        width: 100%;
        padding: 1rem;
    }
    
    .navbar {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
        box-shadow: var(--box-shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        width: 100%;
    }
    
    .user-menu .btn {
        width: 100%;
        justify-content: center;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    /* Fix 2-column grids on mobile - make them single column */
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Improve logo sizing on mobile */
    .logo-img {
        height: 40px;
        max-width: 200px;
    }
    
    /* Ensure header doesn't cause overflow */
    .header .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Enhanced table wrapper for better mobile scrolling */
    .table-responsive {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }
    
    /* Ensure tables maintain proper structure within responsive wrapper */
    .table-responsive table {
        width: 100%;
        display: table;
    }
    
    /* Add scroll hint shadow for tables - hidden on mobile */
    .table-responsive::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
        pointer-events: none;
        opacity: 0; /* Hidden on mobile */
    }
    
    /* Hide scroll hint when at the end */
    .table-responsive.scrolled-end::after {
        opacity: 0;
    }
    
    /* Stack form rows on mobile */
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Admin dashboard mobile improvements */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tab-navigation {
        gap: 0.25rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .tab-navigation a {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Make course action buttons wrap properly on mobile */
    td .btn-outline,
    td .btn-compact {
        display: block;
        width: 100%;
        margin: 0.25rem 0;
    }
    
    /* Mobile Modal Improvements - Make modals full screen */
    .modal-overlay {
        justify-content: center;
        padding: 0;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
        animation: slideInUp 0.3s ease-out;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
        line-height: 1.3;
        padding-right: 0.5rem;
    }
    
    .modal-content > form {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
    
    .modal-body {
        padding: 1.5rem;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 2px solid rgba(0, 0, 0, 0.1);
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hope-title {
        font-size: 1.8rem !important;
    }
    
    .hope-card {
        margin: 0 0.5rem;
    }
    
    .hope-card__body {
        padding: 1.25rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo::before {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Admin dashboard mobile improvements for small screens */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .tab-navigation a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80% {
        transform: translateY(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateY(-10px);
    }
}

/* Print Styles */
@media print {
    .header, .footer, .hope-button {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
    
    .hope-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Stats Cards with Images */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.75rem;
    background: white;
    color: white;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s var(--transition-smooth);
    border: none;
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #0cc0df 0%, #0aa0c0 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #ff914d 0%, #E67E22 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 70px;
    height: 70px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="60" x="50" text-anchor="middle" font-size="50" opacity="0.4">📊</text></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
}

.stat-card:nth-child(1)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="60" x="50" text-anchor="middle" font-size="50" opacity="0.5">🎓</text></svg>');
}

.stat-card:nth-child(2)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="60" x="50" text-anchor="middle" font-size="50" opacity="0.5">✅</text></svg>');
}

.stat-card:nth-child(3)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="60" x="50" text-anchor="middle" font-size="50" opacity="0.5">⏱️</text></svg>');
}

.stat-card:nth-child(4)::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="60" x="50" text-anchor="middle" font-size="50" opacity="0.5">📚</text></svg>');
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.stat-number {
    font-size: 3.25rem;
    font-weight: 800;
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 1;
}

.stat-card:nth-child(1) .stat-number {
    color: white;
}

.stat-card:nth-child(2) .stat-number {
    color: white;
}

.stat-card:nth-child(3) .stat-number {
    color: white;
}

.stat-card:nth-child(4) .stat-number {
    color: white;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-alt) 100%);
    color: white;
    text-align: center;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.5);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(82, 181, 212, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Footer links - all animations removed */
.footer .hope-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    transition: none;
}

.footer .hope-button {
    transition: none;
}

/* Loading and Animations */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Hope UI Component Overrides */
.hope-stack {
    gap: 1rem;
}

.hope-badge {
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hope-modal {
    border-radius: var(--border-radius);
}

.hope-toast {
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* User Menu Styling */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.user-welcome {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
}

.user-welcome:hover {
    color: var(--primary-color);
    background: rgba(230, 126, 34, 0.1);
    transform: translateY(-2px);
}

.user-menu form {
    margin: 0;
}

/* Make subscription and logout buttons same size when logged in */
.user-menu .btn {
    min-width: 150px;
    padding: 0.875rem 1.75rem;
    height: 48px; /* Fixed height for consistency */
    box-sizing: border-box;
}

/* Make login and signup buttons same size when logged out */
.user-menu .btn-outline,
.user-menu .btn-primary {
    min-width: 150px;
    padding: 0.875rem 1.75rem;
    height: 48px; /* Fixed height for consistency */
    box-sizing: border-box;
}

/* Mobile user menu - hidden on desktop */
.mobile-user-menu {
    display: none;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    /* Show mobile user menu items inside the nav links */
    .mobile-user-menu {
        display: block;
    }
    
    /* Hide desktop user menu on mobile */
    .user-menu {
        display: none;
    }
}

/* Support Grid Layout */
.support-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Lesson Navigation - Stack vertically on mobile */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .lesson-navigation {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .lesson-navigation > div {
        flex: 1 1 auto !important;
        width: 100%;
        justify-content: center !important;
    }
    
    .lesson-nav-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Dashboard and Admin Enhancements */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Course Progress Bar */
.progress-bar {
    background: rgba(82, 181, 212, 0.1);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar-fill {
    background: var(--gradient-secondary);
    height: 100%;
    transition: width 0.6s var(--transition-smooth);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(82, 181, 212, 0.3);
}

/* Course Meta Styling */
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: var(--border-radius-sm);
}

.course-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.course-duration {
    background: rgba(82, 181, 212, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Feature Cards Enhancement */
.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.1));
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Modern Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0 1.5rem 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar while maintaining scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.tab-navigation::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab-navigation a {
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    white-space: nowrap;
    background: transparent;
    color: var(--text-color);
}

.tab-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s var(--transition-smooth);
}

.tab-navigation a:hover {
    background: linear-gradient(135deg, rgba(82, 181, 212, 0.05), rgba(230, 126, 34, 0.03));
    color: var(--primary-color);
}

.tab-navigation a.active,
.tab-navigation a.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.25);
}

.tab-navigation a.active::after,
.tab-navigation a.btn-primary::after {
    transform: scaleX(1);
}

.tab-navigation a:hover::after {
    transform: scaleX(1);
}

/* Modern Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.4s var(--transition-bounce);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(82, 181, 212, 0.05), rgba(230, 126, 34, 0.03));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    color: var(--dark-color);
    font-weight: 700;
}

.modal-close {
    border: none;
    background: rgba(0, 0, 0, 0.05);
    font-size: 1.75rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-smooth);
    color: var(--text-color);
}

.modal-close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.modal-body {
    padding: 2rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Selection Styling */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Flexbox utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Text utilities */
.text-muted { color: #666; }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.font-weight-500 { font-weight: 500; }
.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }

/* Display utilities */
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }
.w-100 { width: 100%; }

/* Border radius utilities */
.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: 16px; }

/* Modern Table Styling */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

thead {
    background: linear-gradient(135deg, rgba(82, 181, 212, 0.1), rgba(52, 152, 219, 0.05));
    border-bottom: 2px solid rgba(82, 181, 212, 0.2);
}

thead th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s var(--transition-smooth);
}

tbody tr:hover {
    background: linear-gradient(135deg, rgba(82, 181, 212, 0.03), rgba(230, 126, 34, 0.02));
    transform: translateX(4px);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 1.25rem 1.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

tbody td strong {
    color: var(--dark-color);
    font-weight: 600;
}

tbody td small {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ============================================
   Modern UI Enhancements
   ============================================ */

/* Smooth Page Transitions */
main {
    animation: pageEnter 0.4s ease-out;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Card Hover Effects */
.card {
    position: relative;
    overflow: hidden;
}

/* Removed card hover animation */
/* Removed card hover animation */

/* Pulse Animation for Important Elements */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(230, 126, 34, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Gradient Text Effect */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Glass Morphism Utility Classes */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Improved Focus States for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-control:focus,
.btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(230, 126, 34, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loading Effect */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Tooltip Enhancements */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--dark-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Progress Bar with Animation */
.progress-bar {
    height: 8px;
    background: var(--light-alt);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Badge Enhancements */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-success {
    background: linear-gradient(135deg, var(--success-color), #04C98A);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning-color), #F5A623);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, var(--danger-color), #E84545);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, var(--secondary-color), #44A08D);
    color: white;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 8px 30px rgba(230, 126, 34, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s var(--transition-smooth);
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 40px rgba(230, 126, 34, 0.5);
}

/* Notification Dot */
.notification-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: var(--danger-color);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Improved Table Hover */
tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.05), rgba(82, 181, 212, 0.05));
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Card Stack Effect */
.card-stack {
    position: relative;
}

.card-stack::before,
.card-stack::after {
    content: '';
    position: absolute;
    width: 95%;
    height: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: -1;
}

.card-stack::before {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.card-stack::after {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .fab {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    [data-tooltip]::after {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .fab {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   MODERN AUTHENTICATION PAGES STYLES
   ======================================== */

/* Auth Page Wrapper with Gradient Background */
.auth-page-wrapper {
    background: linear-gradient(135deg, #ff914d 0%, #E67E22 50%, #ff7a33 100%);
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    position: relative;
}

.auth-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(230, 126, 34, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(82, 181, 212, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Modern Auth Card */
.modern-auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 2.5rem;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Header with Icon */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Modern Input Fields */
.modern-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
    transform: translateY(-2px);
}

.modern-input::placeholder {
    color: #adb5bd;
}

/* Modern Button with Hover Effect */
.modern-btn {
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modern-btn:hover::before {
    width: 300px;
    height: 300px;
}

.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4) !important;
}

.modern-btn:active {
    transform: translateY(-1px);
}

/* Modern Info Card */
.modern-info-card {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: backwards;
}

/* Enhanced Form Labels */
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Group Spacing */
.form-group {
    margin-bottom: 1.5rem;
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
    .modern-auth-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .auth-icon {
        font-size: 3rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   ERROR PAGES STYLES
   ======================================== */

/* Error Page Wrapper */
.error-page-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    position: relative;
}

.error-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(230, 126, 34, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(82, 181, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Error Card */
.error-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 3rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

/* Error Icon with Bounce Animation */
.error-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Error Code Styling */
.error-code {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* Responsive Error Pages */
@media (max-width: 768px) {
    .error-card {
        padding: 2rem 1.5rem;
    }
    
    .error-icon {
        font-size: 4rem;
    }
    
    .error-code {
        font-size: 3rem;
    }
    
    .error-card h2 {
        font-size: 1.75rem !important;
    }
}

/* ========================================
   SUBSCRIPTION PAGE STYLES
   ======================================== */

/* Subscription Page Wrapper */
.subscription-page-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    position: relative;
}

.subscription-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(230, 126, 34, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(82, 181, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.subscription-header {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   END MODERN AUTHENTICATION STYLES
   ======================================== */
}
/* ========================================
   AJAX MESSAGE ANIMATIONS
   ======================================== */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}
/* ========================================
   END AJAX MESSAGE ANIMATIONS
   ======================================== */

/* ========================================
   ARTICLE BLOCK STYLES
   ======================================== */
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-family: 'Poppins', sans-serif;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin: 1.5rem 0;
}

.article-content strong {
    font-weight: 600;
    color: var(--dark-color);
}

.article-content em {
    font-style: italic;
}

/* ========================================
   GALLERY BLOCK STYLES
   ======================================== */
.gallery-grid {
    display: grid;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
    
    .article-content {
        padding: 2rem 1.5rem !important;
    }
}
