:root {
    --primary-color: #28a745;
    --secondary-color: #6c757d;
    --light-gray: #f8f9fa;
    --border-radius: 10px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --container-padding: 1rem;
    --heading-scale: 1;
}

/* Mobile-first responsive typography */
@media (max-width: 768px) {
    :root {
        --heading-scale: 0.85;
        --container-padding: 0.75rem;
    }
}

/* Typography scaling */
h1.display-4 {
    font-size: calc(2.5rem * var(--heading-scale));
}

h2.display-5 {
    font-size: calc(2rem * var(--heading-scale));
}

/* Global styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--light-gray);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.4em;
}

/* Cards and Sections */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card i {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333;
}

/* Forms and Inputs */
.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    outline: none;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Admin Login Page */
.admin-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
}

.admin-info {
    background: linear-gradient(135deg, var(--primary-color), #218838);
    color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
}

/* Registration Form */
.registration-steps {
    counter-reset: step;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-item::before {
    counter-increment: step;
    content: counter(step);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    color: var(--secondary-color);
}

.step-item.active::before {
    background: var(--primary-color);
    color: white;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: var(--container-padding);
    }

    /* Card adjustments */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    /* Form improvements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-group .btn {
        width: auto;
        margin-bottom: 0;
    }

    /* Table responsiveness */
    .table-responsive {
        margin: 0 -15px;
        padding: 0 15px;
        overflow-x: auto;
    }

    /* Navigation adjustments */
    .navbar {
        padding: 0.5rem var(--container-padding);
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    /* Feature cards */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-card i {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: calc(var(--container-padding) * 1.5);
    }

    .feature-card {
        padding: 2rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }

    .btn:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    .container {
        width: 100%;
        padding: 0;
        margin: 0;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}