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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #000;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFD700;
    text-decoration: none;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #FFD700;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Desktop hamburger menu */
.desktop-hamburger {
    display: flex;
}

.mobile-hamburger {
    display: none;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.desktop-menu {
    position: absolute;
    top: 100%;
    right: 2rem;
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.desktop-menu.active {
    display: flex;
}

.desktop-menu a {
    margin: 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.desktop-menu a:last-child {
    border-bottom: none;
}

.mobile-menu {
    display: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    flex: 1;
    width: 100%;
}

.welcome-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    background-color: #FFD700;
    border-radius: 8px;
}

.shop-list {
    margin-bottom: 2rem;
}

.shop-card {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #FFD700;
}

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

.shop-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
}

.shop-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.shop-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.volunteer-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.volunteer-list-header {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.volunteer-item {
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.volunteer-info {
    flex: 1;
}

.volunteer-name {
    font-weight: 600;
    color: #000;
}

.volunteer-details {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.edit-link {
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.edit-link:hover {
    color: #2196F3;
    text-decoration: underline;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.badge-volunteer {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge-coordinator {
    background-color: #fff3e0;
    color: #f57c00;
}

.badge-board {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.badge-personal {
    background-color: #e8f5e9;
    color: #388e3c;
}

.btn-signout {
    background-color: #666;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-signout:hover {
    background-color: #444;
}

.btn-secondary {
    background-color: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #555;
}

.btn-delete {
    background-color: #dc3545;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

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

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

.autocomplete-container {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #FFD700;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.autocomplete-item:hover {
    background-color: #fff9e6;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.helper-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.register-link {
    color: #2196F3;
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover {
    text-decoration: underline;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #000;
    text-align: center;
}

.welcome-section p {
    font-size: 1.2rem;
    color: #333;
}

.form-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid #f0f0f0;
}

.form-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #000;
    border-bottom: 3px solid #FFD700;
    padding-bottom: 0.5rem;
}

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

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

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="password"],
select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
}

select {
    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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}

input:focus {
    outline: none;
    border-color: #FFD700;
}

select:focus {
    outline: none;
    border-color: #FFD700;
}

.btn {
    background-color: #FFD700;
    color: #000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    text-align: center;
}

.error-message {
    background-color: #f44336;
    color: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: auto;
}

footer p {
    color: #ccc;
}

.required {
    color: #f44336;
}

/* Table Styling */
.table-header-row {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.table-header-cell {
    padding: 0.6rem;
    text-align: left;
    font-weight: 600;
}

.table-row {
    border-bottom: 1px solid #e5e5e5;
}

.table-cell {
    padding: 0.6rem;
}

.table-cell-nowrap {
    padding: 0.6rem;
    white-space: nowrap;
}

.table-cell-muted {
    padding: 0.6rem;
    color: #666;
}

.table-cell-right {
    padding: 0.6rem;
    text-align: right;
}

/* Filter UI Components */
.filters-container {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.filters-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.active-filters-banner {
    background: #fff3cd;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid #ffc107;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.active-filters-text {
    font-size: 0.9rem;
    color: #856404;
}

.active-filters-clear-link {
    color: #856404;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.active-filters-clear-link:hover {
    text-decoration: underline;
}

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

/* Flex Layout Utilities */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

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

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Info Cards */
.info-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.info-card-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

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

.info-card-orange {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-left: 4px solid #ff9800;
}

.info-card-blue {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-left: 4px solid #2196f3;
}

.info-card-green {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-left: 4px solid #4caf50;
}

@media (min-width: 768px) {
    /* Show desktop edit button, hide mobile edit button */
    .edit-desktop {
        display: table-cell;
    }
    .edit-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Hide volunteer edit link on mobile */
    .volunteer-edit-link {
        display: none !important;
    }

    /* Hide desktop edit button, show mobile edit button */
    .edit-desktop {
        display: none;
    }
    .edit-mobile {
        display: block;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Hide desktop elements */
    .main-nav {
        display: none;
    }

    .desktop-hamburger {
        display: none;
    }

    .desktop-menu {
        display: none !important;
    }

    /* Show mobile elements */
    .mobile-hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #000;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1rem;
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: -2px 0 8px rgba(0,0,0,0.3);
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu a {
        margin: 0;
        font-size: 1rem;
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    select {
        font-size: 16px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .welcome-section h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .welcome-section p {
        font-size: 1rem;
    }

    .form-card {
        padding: 1.25rem;
        border-radius: 6px;
    }

    .form-card h2 {
        font-size: 1.5rem;
    }

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

    label {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }

    .welcome-section {
        padding: 1rem 0.75rem;
        margin-bottom: 1.5rem;
    }

    .welcome-section h1 {
        font-size: 1.5rem;
    }

    .form-card {
        padding: 1rem;
    }

    .form-card h2 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
}