:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --success: #4cc9f0;
    --danger: #e63946;
    --warning: #f4a261;
    --light: #f8f9fa;
    --dark: #212529;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
}

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

header {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: var(--primary);
    margin: 0;
    font-size: 2em;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

nav a:hover {
    color: var(--primary);
    background: var(--light);
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.form-section {
    padding: 40px;
}

.form-toggle {
    display: flex;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.toggle-btn {
    flex: 1;
    padding: 18px;
    text-align: center;
    background: #e9ecef;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
    padding: 15px 25px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.hidden {
    display: none;
}

.match-results {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border: 2px solid #e9ecef;
}

.tutor-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left: 6px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.tutor-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4em;
    border-bottom: 2px solid var(--light);
    padding-bottom: 10px;
}

.tutor-card p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.policy-content {
    padding: 40px;
}

.policy-content h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 2em;
}

.policy-content h3 {
    color: var(--secondary);
    margin: 25px 0 15px 0;
    font-size: 1.4em;
}

.policy-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.1em;
}

.policy-content a {
    color: var(--primary);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 20px;
    z-index: 1000;
    display: none;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Success and error states */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.success-message h3 {
    margin-bottom: 10px;
    color: #155724;
    font-size: 1.5em;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
    text-align: center;
}

.error-message h3 {
    margin-bottom: 10px;
    color: #721c24;
    font-size: 1.5em;
}

/* Message styles */
.message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.warning-message {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Form enhancements */
small {
    color: #6c757d;
    font-size: 0.875em;
    margin-top: 5px;
    display: block;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Dashboard specific styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1em;
}

.tutor-info, .student-info {
    margin: 40px 0;
}

.tutor-info h3, .student-info h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.6em;
    border-bottom: 2px solid var(--light);
    padding-bottom: 10px;
}

.sessions-section {
    margin: 40px 0;
}

.sessions-section h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.6em;
    border-bottom: 2px solid var(--light);
    padding-bottom: 10px;
}

.find-tutors-section {
    text-align: center;
    margin: 40px 0;
}

.find-tutors-section .btn-primary {
    width: auto;
    padding: 15px 40px;
    font-size: 1.1em;
}

.status-scheduled {
    color: var(--primary);
    font-weight: bold;
    background: rgba(67, 97, 238, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.status-completed {
    color: var(--success);
    font-weight: bold;
    background: rgba(76, 201, 240, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.status-cancelled {
    color: var(--danger);
    font-weight: bold;
    background: rgba(230, 57, 70, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* Login form styles */
.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form p {
    text-align: center;
    margin-top: 20px;
    color: var(--dark);
}

.login-form a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-form a:hover {
    text-decoration: underline;
}

/* Dashboard content styles */
#dashboardContent h2 {
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

#loadingMessage {
    text-align: center;
    padding: 60px 20px;
}

#loadingMessage h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

/* Session cards in dashboard */
.tutor-card.scheduled {
    border-left-color: var(--primary);
}

.tutor-card.completed {
    border-left-color: var(--success);
}

.tutor-card.cancelled {
    border-left-color: var(--danger);
}

/* User menu styles */
#userMenu {
    display: flex;
    gap: 15px;
    align-items: center;
}

#userMenu a {
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#userMenu a:hover {
    background: var(--light);
    color: var(--primary);
}

/* Registration form links */
.registration-form p {
    text-align: center;
    margin-top: 20px;
    color: var(--dark);
}

.registration-form a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.registration-form a:hover {
    text-decoration: underline;
}

/* Home page specific styles */
.home-welcome {
    text-align: center;
    margin-bottom: 40px;
}

.home-welcome h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 2.2em;
}

.home-welcome p {
    color: var(--dark);
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature highlights */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.feature-card p {
    color: var(--dark);
    line-height: 1.6;
}

/* How it works section */
.how-it-works {
    margin: 50px 0;
    text-align: center;
}

.how-it-works h2 {
    color: var(--secondary);
    margin-bottom: 40px;
    font-size: 2em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.step {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.step h3 {
    color: var(--secondary);
    margin: 20px 0 15px 0;
    font-size: 1.3em;
}

.step p {
    color: var(--dark);
    line-height: 1.6;
}

/* Test accounts info box */
.test-accounts-info {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.test-accounts-info h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.test-accounts-info h4::before {
    content: "💡";
    font-size: 1.3em;
}

.test-accounts-info p {
    margin: 8px 0;
    font-size: 0.95em;
    color: var(--dark);
}

.test-accounts-info strong {
    color: var(--secondary);
}

/* Debug info styles */
.debug-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #856404;
}

.debug-info pre {
    margin: 10px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form validation styles */
input:invalid {
    border-color: var(--danger);
}

input:valid {
    border-color: var(--success);
}

.validation-message {
    color: var(--danger);
    font-size: 0.875em;
    margin-top: 5px;
    display: none;
}

input:invalid + .validation-message {
    display: block;
}

/* Tutor visibility toggle */
.visibility-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Enhanced tutor cards with profile images */
.tutor-card-enhanced {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 6px solid var(--primary);
}

.tutor-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.tutor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    flex-shrink: 0;
}

.default-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    border: 3px solid var(--primary);
    flex-shrink: 0;
}

.tutor-info-enhanced {
    flex: 1;
}

.tutor-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.tutor-name {
    color: var(--primary);
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
}

.tutor-rate {
    color: var(--success);
    font-size: 1.3em;
    font-weight: bold;
    white-space: nowrap;
}

.tutor-subjects {
    margin-bottom: 10px;
}

.subject-tag {
    display: inline-block;
    background: #e0e7ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 500;
}

.tutor-bio {
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 15px;
}

.tutor-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #6c757d;
}

.tutor-badges {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.badge-verified {
    background: #d1fae5;
    color: #065f46;
}

.badge-dbs {
    background: #dbeafe;
    color: #1e40af;
}

/* Session requests styling */
.session-requests-container {
    margin: 30px 0;
}

.session-request-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 6px solid var(--warning);
    transition: all 0.3s ease;
}

.session-request-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.session-request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.session-student-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.student-avatar-default {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border: 2px solid var(--primary);
}

.session-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.session-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.6em;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    nav a {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .form-toggle {
        flex-direction: column;
    }
    
    .tutor-card {
        padding: 20px;
    }
    
    .tutor-card-enhanced {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .tutor-avatar, .default-avatar {
        align-self: center;
    }
    
    .tutor-header {
        justify-content: center;
        text-align: center;
    }
    
    .tutor-meta {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step {
        padding: 25px 20px;
    }
    
    .test-accounts-info {
        padding: 15px;
    }
    
    .test-accounts-info h4 {
        font-size: 1.1em;
    }
    
    .session-request-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .session-student-info {
        flex-direction: column;
        text-align: center;
    }
    
    .session-details {
        grid-template-columns: 1fr;
    }
    
    .session-actions {
        justify-content: center;
    }
    
    .session-actions .btn-primary,
    .session-actions .btn-secondary {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.4em;
    }
    
    nav a {
        padding: 5px 10px;
        font-size: 0.85em;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .home-welcome h2 {
        font-size: 1.8em;
    }
    
    .home-welcome p {
        font-size: 1.1em;
    }
    
    .policy-content {
        padding: 20px;
    }
    
    .policy-content h2 {
        font-size: 1.6em;
    }
    
    .policy-content h3 {
        font-size: 1.2em;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .tutor-avatar, .default-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.2em;
    }
    
    .tutor-name {
        font-size: 1.2em;
    }
    
    .tutor-rate {
        font-size: 1.1em;
    }
}

/* Animation for loading states */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Print styles */
@media print {
    .cookie-banner,
    .btn-primary,
    .btn-secondary,
    nav,
    .test-accounts-info {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .container {
        padding: 0 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000ff;
        --secondary: #000080;
        --light: #ffffff;
        --dark: #000000;
    }
    
    .card {
        border: 2px solid var(--dark);
    }
    
    .btn-primary {
        background: var(--dark);
        color: var(--light);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .tutor-card:hover,
    .stat-card:hover,
    .feature-card:hover {
        transform: none;
    }
    
    .loading-spinner {
        animation: none;
        border: 3px solid #f3f3f3;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #2d3748;
        --dark: #f7fafc;
    }
    
    body {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
    
    .card {
        background: #4a5568;
        color: var(--dark);
    }
    
    .tutor-card {
        background: #718096;
    }
    
    .stat-card {
        background: #718096;
    }
    
    input, select, textarea {
        background: #4a5568;
        color: var(--dark);
        border-color: #718096;
    }
    
    input::placeholder {
        color: #a0aec0;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-none { display: none; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}
