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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #2c5f8a 0%, #4a8cb0 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a8cb0;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 25px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary:hover {
    background-color: #1e4660;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
    background-color: #e9ecef;
    color: #333;
}

.btn-small:hover {
    background-color: #dee2e6;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 6px 12px;
    font-size: 0.9rem;
}

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

.error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Alert */
.alert {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

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

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

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

.data-table td:last-child {
    white-space: nowrap;
}

/* User Bar */
.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-bar div {
    display: flex;
    gap: 10px;
}

/* Week Navigation */
.week-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.week-display {
    font-size: 1.1rem;
    font-weight: 500;
    min-width: 250px;
    text-align: center;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.schedule-table th,
.schedule-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.schedule-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.shift-label {
    font-weight: 500;
    background-color: #f8f9fa;
    text-align: left !important;
}

.schedule-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.volunteer-list {
    font-size: 0.9rem;
    text-align: left !important;
    vertical-align: top;
    min-height: 60px;
}

.volunteer-list .volunteer-name {
    display: block;
    padding: 3px 0;
    border-bottom: 1px solid #f0f0f0;
}

.volunteer-list .volunteer-name:last-child {
    border-bottom: none;
}

.volunteer-list .no-volunteers {
    color: #999;
    font-style: italic;
}

.volunteer-list .assigned {
    background-color: #d4e6ed;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #1a4a6e;
    margin-bottom: 5px;
}

.volunteer-list .available {
    color: #666;
    font-size: 0.85rem;
}

/* Assignment Dropdowns */
.assign-view select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
}

.assign-view select:focus {
    outline: none;
    border-color: #4a8cb0;
}

.assign-view select.has-assignment {
    background-color: #d4e6ed;
    border-color: #2874a6;
}

.info {
    color: #666;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 1.6rem;
    }

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

    .schedule-table th,
    .schedule-table td {
        padding: 8px 4px;
    }

    .week-nav {
        flex-direction: column;
        gap: 10px;
    }

    .user-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
    }
}
