/* CSS Variables */
:root {
  --primary: #32cd32;
  --primary-light: #65e365;
  --primary-dark: #28a428;
  --secondary: #af005d;
  --secondary-light: #e6399c;
  --secondary-dark: #8a004a;
  --accent: #c42e00;
  --accent-light: #ff6b35;
  --accent-dark: #9d2400;
  --light-bg: #f8f9fa;
  --dark-bg: #121212;
  --light-text: #212529;
  --dark-text: #e0e0e0;
  --gradient: linear-gradient(135deg, #32cd32, #af005d);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  --nav-gradient: linear-gradient(90deg, #4b134f, #c42e00);
  --card-bg: #ffffff;
  --text-primary: #2b2d42;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --border-color: #e9ecef;
  --border-hover: #ced4da;
  
  /* Status colors */
  --success: #28a745;
  --success-light: rgba(40, 167, 69, 0.1);
  --danger: #dc3545;
  --danger-light: rgba(220, 53, 69, 0.1);
  --warning: #ffc107;
  --warning-light: rgba(255, 193, 7, 0.1);
  --info: #17a2b8;
  --info-light: rgba(23, 162, 184, 0.1);
  
  /* Border radius variables */
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Shadow variables */
  --shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Transition */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Login Page Styles */
.login-body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(50, 205, 50, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(175, 0, 93, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    z-index: 2;
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.logo i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-badge {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(50, 205, 50, 0.3);
}

.welcome-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.welcome-section h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* Improved Form Styles */
.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    z-index: 2;
    font-size: 1.1rem;
    transition: var(--transition);
}

/* Modern Input Design */
.input-group input,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 400;
    box-shadow: var(--shadow-inner);
}

.input-group input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(50, 205, 50, 0.15);
    transform: translateY(-1px);
}

.input-group input:focus + i {
    color: var(--primary);
}

.input-group input::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary);
    background: rgba(50, 205, 50, 0.1);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.checkbox-container:hover {
    color: var(--text-primary);
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    margin-right: 0.75rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary-light);
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
}

.forgot-password:hover::after {
    width: 100%;
}

/* Buttons */
.login-btn {
    width: 100%;
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(50, 205, 50, 0.3);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-spinner {
    display: flex;
    align-items: center;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid transparent;
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.error-message {
    background: var(--danger-light);
    border: 2px solid var(--danger);
    color: var(--danger);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.error-message i {
    font-size: 1.1rem;
}

.security-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.security-note i {
    color: var(--success);
    font-size: 1.1rem;
}

/* Background Shapes */
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Admin Dashboard Styles */
.admin-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.85rem;
    opacity: 0.9;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.admin-main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.admin-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.admin-header p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.stat-card:nth-child(2)::before {
    background: var(--secondary);
}

.stat-card:nth-child(3)::before {
    background: var(--accent);
}

.stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: var(--border-hover);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    line-height: 1;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Course Form Styles */
.course-form-container {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.course-form-container:hover {
    box-shadow: var(--hover-shadow);
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section h3 i {
    color: var(--primary);
    font-size: 1.3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Improved Form Elements */
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 400;
    box-shadow: var(--shadow-inner);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(50, 205, 50, 0.15);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 16px 12px;
    padding-right: 3rem;
}

/* Tags Input */
.tags-input {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    min-height: 120px;
    transition: var(--transition);
    background: var(--card-bg);
}

.tags-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(50, 205, 50, 0.15);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tag {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 8px rgba(50, 205, 50, 0.2);
    transition: var(--transition);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(50, 205, 50, 0.3);
}

.tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tags-input input {
    border: none;
    outline: none;
    width: 100%;
    padding: 0.75rem 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.tags-input input::placeholder {
    color: var(--text-muted);
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.submit-btn {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(50, 205, 50, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(50, 205, 50, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secondary Buttons */
.preview-btn, .reset-btn {
    padding: 1.25rem 2rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.preview-btn {
    color: var(--secondary);
    border-color: var(--secondary-light);
}

.preview-btn:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(175, 0, 93, 0.2);
}

.reset-btn {
    color: var(--accent);
    border-color: var(--accent-light);
}

.reset-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(196, 46, 0, 0.2);
}

/* Access Details */
.access-details {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.05), rgba(175, 0, 93, 0.05));
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.access-details:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.access-info h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.access-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.access-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.access-info li:hover {
    background: white;
    transform: translateX(5px);
}

.access-info li i {
    color: var(--primary);
    font-size: 1rem;
}

/* Premium and Premium+ specific styling */
.premium-access {
    border-left-color: var(--secondary);
}

.premium-access h4,
.premium-access li i {
    color: var(--secondary);
}

.premium-plus-access {
    border-left-color: var(--accent);
}

.premium-plus-access h4,
.premium-plus-access li i {
    color: var(--accent);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

/* Course List Container */
.course-list-container {
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: 1.4rem;
    margin: 0;
}

.toggle-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    background: var(--primary-dark);
    transform: rotate(180deg);
}

.course-list {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--border-color);
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Success Message */
.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid var(--success);
    color: var(--success);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 2rem;
    display: none;
    animation: slideIn 0.3s ease;
}

.success-message.show {
    display: block;
}

.success-message i {
    font-size: 1.3rem;
    margin-right: 0.75rem;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-main {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .login-card {
        padding: 2rem;
    }
    
    .admin-navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-user {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .admin-header h1 {
        font-size: 2.2rem;
    }
    
    .admin-header p {
        font-size: 1.1rem;
    }
    
    .course-form-container {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .submit-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .preview-btn, .reset-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    
    .access-info ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }
    
    .welcome-section h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .admin-header h1 {
        font-size: 1.8rem;
    }
    
    .form-section {
        padding: 1.5rem 1rem;
    }
    
    .course-list {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.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; }

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Print Styles */
@media print {
    .login-background,
    .bg-shape,
    .logout-btn,
    .preview-btn,
    .reset-btn,
    .toggle-btn {
        display: none !important;
    }
    
    .login-card,
    .course-form-container,
    .stat-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
/* Add this to the END of your styles.css file */

/* FIX FOR LOGIN PAGE - MAKE INPUTS CLICKABLE */
.login-body {
    position: relative;
    overflow: hidden;
}

.login-container {
    position: relative;
    z-index: 100;
}

.login-card {
    position: relative;
    z-index: 200;
    background: var(--card-bg);
}

.login-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important; /* This prevents clicks on background shapes */
}

.login-background .bg-shape {
    pointer-events: none !important; /* Ensure shapes don't block clicks */
}

/* Ensure form elements are clickable */
.login-form {
    position: relative;
    z-index: 300;
}

.form-group {
    position: relative;
    z-index: 300;
}

.input-group {
    position: relative;
    z-index: 300;
}

.input-group input {
    position: relative;
    z-index: 300;
    background: var(--card-bg) !important;
    pointer-events: auto !important;
}

.password-toggle {
    position: relative;
    z-index: 400;
    pointer-events: auto !important;
}

/* Override any conflicting styles */
.login-form .form-group .input-group input {
    pointer-events: auto !important;
    -webkit-user-select: auto !important;
    user-select: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force input styles to be visible */
#email, #password {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important; /* Minimum touch target size */
    padding: 10px 15px 10px 40px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background: white !important;
    color: #333 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    cursor: text !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Focus state */
#email:focus, #password:focus {
    border-color: #32cd32 !important;
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.2) !important;
    outline: none !important;
}

/* Make sure icons are visible */
.input-group i {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
    color: #666 !important;
    pointer-events: none !important;
}

/* Fix password toggle button */
#passwordToggle {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
    background: none !important;
    border: none !important;
    color: #666 !important;
    cursor: pointer !important;
    padding: 8px !important;
    font-size: 16px !important;
    pointer-events: auto !important;
    display: block !important;
    visibility: visible !important;
}

/* Fix labels */
.login-form .form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Ensure form is clickable */
.login-form {
    pointer-events: auto !important;
}