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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

/* Mobile-first improvements */
input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
    accent-color: #dc3545;
}

button {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* Navigation */
.navbar {
    background-color: #dc3545;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-star {
    width: 40px;
    height: 40px;
    background-color: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    flex-shrink: 0;
}

.logo-text-full {
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle:hover {
    opacity: 0.8;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 8rem 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

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

.btn-primary:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: white;
    color: #dc3545;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 2rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.btn-submit:disabled:hover {
    background-color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Registration Section */
.registration-section {
    padding: 3rem 20px;
    background-color: white;
}

.registration-section h2,
.find-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #dc3545;
    text-align: center;
}

/* Forms */
.registration-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

fieldset {
    border: none;
    padding: 1.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

fieldset:last-of-type {
    border-bottom: none;
}

legend {
    font-size: 1.2rem;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

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

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 16px;
    }

    .form-group label {
        margin-bottom: 0.7rem;
    }
}

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

.checkbox input {
    width: auto;
    margin: 0;
}

.checkbox label {
    margin: 0;
    font-weight: normal;
}

/* Find Section */
.find-section {
    padding: 3rem 20px;
    background-color: #f8f9fa;
}

.search-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-filters {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.filter-group button {
    align-self: flex-end;
    margin-top: auto;
}

@media (max-width: 768px) {
    .filter-group button {
        align-self: stretch;
    }
}

/* Donor Results */
.donor-results {
    display: grid;
    gap: 1rem;
}

.donor-card {
    background-color: #f8f9fa;
    border-left: 4px solid #dc3545;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.donor-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.donor-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.donor-field {
    display: flex;
    flex-direction: column;
}

.donor-label {
    font-weight: 600;
    color: #dc3545;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.donor-value {
    color: #333;
    margin-top: 0.25rem;
}

.no-results {
    text-align: center;
    color: #666;
    padding: 2rem;
}

/* About Section */
.about-section {
    padding: 3rem 20px;
    background-color: white;
}

.about-section h1 {
    color: #dc3545;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-card {
    background-color: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-card h2 {
    color: #dc3545;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.about-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.vision-list,
.goals-list,
.eligibility-list,
.benefits-list {
    list-style: none;
    padding-left: 0;
}

.vision-list li,
.goals-list li,
.eligibility-list li,
.benefits-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: #555;
}

.vision-list li::before,
.benefits-list li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-size: 1.2rem;
}

.goals-list li::before,
.eligibility-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.why-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #dc3545;
    transition: transform 0.3s;
}

.why-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.why-item h3 {
    color: #dc3545;
    margin-bottom: 0.8rem;
}

.why-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.eligibility-section {
    margin-top: 1.5rem;
}

.eligibility-section h3 {
    color: #dc3545;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.eligibility-section h3:first-of-type {
    margin-top: 0;
}

.about-cta {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

.about-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.about-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background-color: white;
    color: #dc3545;
    display: inline-block;
}

.btn-large:hover {
    background-color: #f0f0f0;
}

/* Why Donate Section */
.why-donate-section {
    padding: 4rem 20px;
    background-color: #f8f9fa;
}

.why-donate-section h2 {
    color: #dc3545;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.2);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: #dc3545;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Blood Groups Section */
.blood-groups-section {
    padding: 4rem 20px;
    background-color: white;
}

.blood-groups-section h2 {
    color: #dc3545;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.blood-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.blood-type-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-top: 3px solid #dc3545;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.blood-type-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.blood-type-letter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.blood-type-desc {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blood-type-info {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 20px;
    background-color: #f8f9fa;
}

.how-it-works-section h2 {
    color: #dc3545;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.step-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 4rem 20px;
    background-color: white;
    text-align: center;
}

.cta-section h2 {
    color: #dc3545;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Responsive - Tablet (768px and below) */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero {
        padding: 3rem 20px;
        min-height: 60vh;
    }

    .registration-form {
        padding: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        min-height: 45px;
        touch-action: manipulation;
    }

    .btn-submit {
        min-height: 50px;
        font-size: 1rem;
    }

    fieldset {
        padding: 1rem 0;
    }

    legend {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .filter-group button {
        align-self: stretch;
    }
}

/* Responsive - Mobile (480px and below) */
@media (max-width: 480px) {
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .nav-container {
        padding: 0.5rem 15px;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        gap: 0.25rem;
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 0.9rem;
        gap: 0;
    }

    .logo-star {
        width: 25px;
        height: 25px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #c82333;
        padding: 1rem;
        gap: 0.5rem;
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0.75rem 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1rem;
    }

    .menu-toggle {
        display: block;
        padding: 0.5rem;
        margin-left: auto;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .hero {
        padding: 2rem 12px;
        min-height: 45vh;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a,
    .hero-buttons .btn {
        width: 100%;
        min-height: 50px;
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }

    /* Forms */
    .registration-section {
        padding: 1.5rem 12px;
    }

    .registration-form {
        padding: 1rem 0;
        background: none;
        border: none;
        box-shadow: none;
    }

    .container {
        padding: 0 12px;
        max-width: 100%;
    }

    .btn {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        min-height: 48px;
        width: auto;
        border: none;
    }

    .btn-submit {
        min-height: 50px;
        width: 100%;
        font-size: 1rem;
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1.3rem;
    }

    .form-group label {
        margin-bottom: 0.6rem;
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 16px !important;
        border: 1px solid #ddd;
        border-radius: 4px;
        -webkit-appearance: none;
        appearance: none;
        background-color: white;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #dc3545;
        box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
    }

    fieldset {
        padding: 1.2rem 0;
        border: none;
        margin: 0;
    }

    legend {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        padding: 0;
    }

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

    .checkbox {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .checkbox input {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

    .checkbox label {
        margin-left: 0.8rem;
        cursor: pointer;
        font-size: 0.95rem;
    }

    /* Admin Panel */
    .table-container {
        padding: 1rem;
    }

    .donors-table {
        font-size: 0.85rem;
    }

    .donors-table th,
    .donors-table td {
        padding: 0.5rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.3rem;
    }

    .action-buttons button {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
        min-height: 36px;
        width: 100%;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Forms mobile optimization */
    .registration-section h2,
    .find-section h2,
    .admin-section h1 {
        font-size: 1.5rem;
    }

    /* Admin section */
    .admin-section {
        padding: 1.5rem 15px;
    }

    .logout-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    /* About page mobile */
    .about-section {
        padding: 1.5rem 15px;
    }

    .about-section h1 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .about-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .about-card h2 {
        font-size: 1.4rem;
    }

    .about-card h3 {
        font-size: 1.1rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-cta {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }

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

    .vision-list li,
    .goals-list li,
    .eligibility-list li,
    .benefits-list li {
        padding: 0.6rem 0;
        padding-left: 1.8rem;
        font-size: 0.95rem;
    }

    /* Home page sections mobile */
    .why-donate-section,
    .blood-groups-section,
    .how-it-works-section,
    .cta-section {
        padding: 2rem 12px;
    }

    .why-donate-section h2,
    .blood-groups-section h2,
    .how-it-works-section h2,
    .cta-section h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .benefits-grid,
    .blood-groups-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .benefit-card {
        padding: 1.3rem;
        border-radius: 6px;
    }

    .benefit-card h3 {
        font-size: 1.1rem;
    }

    .benefit-card p {
        font-size: 0.9rem;
    }

    .benefit-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .blood-type-card {
        padding: 1rem;
        border-radius: 6px;
    }

    .blood-type-letter {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }

    .blood-type-desc {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .blood-type-info {
        font-size: 0.75rem;
    }

    .step-card {
        padding: 1.3rem;
    }

    .step-card h3 {
        font-size: 1.1rem;
    }

    .step-card p {
        font-size: 0.9rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .cta-section {
        padding: 2rem 12px;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn-large {
        padding: 1rem;
        font-size: 1rem;
        width: 100%;
        min-height: 50px;
    }
}

/* Success Message */
.success-message {
    background-color: #d4edda;
    border: 3px solid #28a745;
    color: #155724;
    padding: 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
}

.error-message {
    background-color: #f8d7da;
    border: 3px solid #dc3545;
    color: #721c24;
    padding: 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.2);
}

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

/* Donor card grid for results */
.donor-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

/* Admin Panel */
.admin-section {
    padding: 2rem 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

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

.admin-section h1 {
    color: #dc3545;
    margin-bottom: 2rem;
    text-align: center;
}

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

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 4px solid #dc3545;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
}

/* Admin Filters */
.admin-filters {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-filters h2 {
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 1rem;
    align-items: flex-end;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Table Container */
.table-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-container h2 {
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.donors-table {
    width: 100%;
    border-collapse: collapse;
}

.donors-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dc3545;
}

.donors-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #dc3545;
}

.donors-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.donors-table tbody tr {
    transition: background-color 0.3s;
}

.donors-table tbody tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons button {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-view {
    background-color: #007bff;
    color: white;
}

.btn-view:hover {
    background-color: #0056b3;
}

.btn-delete {
    background-color: #6c757d;
    color: white;
}

.btn-delete:hover {
    background-color: #545b62;
}

.btn-toggle {
    background-color: #28a745;
    color: white;
}

.btn-toggle:hover {
    background-color: #218838;
}

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

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

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #dc3545;
}

.modal-content h2 {
    color: #dc3545;
    margin-bottom: 1rem;
    margin-top: 0;
}

.donor-details {
    display: grid;
    gap: 1rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #dc3545;
}

.detail-value {
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Logout Button */
.logout-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    z-index: 999;
}

.logout-btn:hover {
    background-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .logout-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 0.9rem;
        gap: 0.3rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-star {
        width: 30px;
        height: 30px;
    }

    .logo-text-full {
        font-size: 0.9rem;
    }
}

/* Login Logo */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.login-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0;
    font-size: 1.8rem;
    font-weight: 900;
    color: #dc3545;
    letter-spacing: 2px;
}

.login-logo-star {
    width: 100px;
    height: 100px;
    background-color: #dc3545;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
