@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

/**
 * Volunteer Coordinator Stylesheet
 * Modern, responsive styling for all pages
 * Color scheme matching B the Light website
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* B the Light Color Scheme - Based on b-thelight.org */
    --primary-color: #ebcc52;        /* Gold/yellow - rgb(235, 204, 82) */
    --primary-dark: #87752f;         /* Darker gold - rgb(135, 117, 47) */
    --primary-darker: #524617;       /* Even darker gold for hovers - rgb(82, 70, 23) */
    --primary-darkest: #39300d;      /* Darkest gold for active states - rgb(57, 48, 13) */
    --secondary-color: #ebdccc;      /* Beige/cream accent - rgb(235, 220, 204) */
    --accent-gold: #ab9335;          /* Additional gold tone - rgb(171, 147, 53) */
    --danger-color: #e74c3c;         /* Keep red for errors */
    --warning-color: #f39c12;        /* Keep orange for warnings */
    --text-color: #1b1b1b;           /* Dark text - rgb(27, 27, 27) */
    --text-light: #5e5e5e;           /* Lighter text - rgb(94, 94, 94) */
    --text-dark: #161616;            /* Very dark text - rgb(22, 22, 22) */
    --bg-color: #ffffff;             /* White background */
    --white: #ffffff;
    --border-color: #e0e0e0;         /* Light gray borders */
    --border-gold: #82715b;          /* Brown/tan borders - rgb(130, 113, 91) */
    --border-gold-dark: #746424;     /* Dark gold borders - rgb(116, 100, 36) */
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .heading-font {
    font-family: 'Oswald', arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

header h1 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

/* Main Content */
main {
    flex: 1;
}

/* Section Card (clockin, event_signup, job_signup) */
.section-card {
    background: var(--white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.form-container h2 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s;
    min-height: 44px;
    touch-action: manipulation;
}

.checkbox-label:hover {
    border-color: var(--primary-dark);
    background-color: var(--secondary-color);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    touch-action: manipulation;
    min-height: 44px;
}

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

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Message Styles */
.message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.message:not(:empty) {
    display: block;
}

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

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

/* Links */
a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-darker);
}

a:active {
    color: var(--primary-darkest);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: var(--text-light);
}

footer a {
    color: var(--primary-dark);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-darker);
    text-decoration: underline;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.toggle-group,
.view-toggle-group {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.job-type-filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--white);
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.job-type-filter-group label {
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    margin: 0;
}

.job-type-select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 200px;
}

.job-type-select:focus {
    outline: none;
    border-color: var(--primary-dark);
}

.job-name-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
    font-weight: 500;
}

.toggle-btn,
.view-toggle-btn {
    padding: 10px 20px;
    border: none;
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-right: 1px solid var(--border-color);
}

.toggle-btn:last-child,
.view-toggle-btn:last-child {
    border-right: none;
}

.toggle-btn:hover,
.view-toggle-btn:hover {
    background: #f8f9fa;
}

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

/* Calendar Container */
.calendar-container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--text-color);
}

/* Calendar Grid */
.calendar-grid {
    width: 100%;
}

.calendar-week-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.calendar-day-header {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--secondary-color);
    border-radius: 4px;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.calendar-day {
    min-height: 120px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.calendar-day.empty {
    background: #f8f9fa;
    border-color: transparent;
}

.day-number {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

/* Time Slots */
.time-slots {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.time-slot {
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.time-slot .time-label {
    font-weight: 600;
    width: 100%;
}

.time-slot .availability-info {
    width: 100%;
    font-size: 0.75rem;
}

/* Status-based color coding: Red (no signups), Yellow (partial), Green (all full) */
.time-slot.status-empty {
    /* Red - No signups */
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    color: #721c24;
}

.time-slot.status-partial {
    /* Yellow - Partial fill (some signups but not full) */
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    color: #856404;
}

.time-slot.status-full {
    /* Green - All slots full */
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
}

.time-slot.status-signed-up {
    /* Blue - User already signed up */
    background: #cce5ff;
    border: 2px solid #4a90e2;
    color: #004085;
    cursor: default;
}

.time-slot.status-disabled {
    background: #e9ecef;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

.time-slot.available {
    background: #f5f0e3;
    border: 2px solid var(--primary-color);
    color: var(--text-color);
}

.time-slot.available:hover {
    background: var(--primary-color);
    color: var(--text-color);
    transform: scale(1.02);
}

.time-slot.selected {
    background: var(--primary-color);
    border: 2px solid var(--primary-dark);
    color: var(--text-color);
}

.time-slot.closed {
    background: #f8d7da;
    border: 2px solid var(--danger-color);
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot.not-available {
    background: #e9ecef;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

.time-slot.signed-up {
    background: #cce5ff;
    border: 2px solid #4a90e2;
    color: #004085;
    cursor: default;
}

.time-slot.signed-up .signed-up-label {
    font-weight: 600;
    color: #004085;
}

.calendar-day.disabled {
    opacity: 0.5;
    background: #f8f9fa;
    cursor: not-allowed;
}

.calendar-day.disabled .day-number {
    color: var(--text-light);
}

.time-slot.disabled {
    background: #e9ecef;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.disabled:hover {
    transform: none;
    background: #e9ecef;
}

.event-time-slot.disabled {
    background: #e9ecef;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.event-time-slot.disabled:hover {
    transform: none;
    background: #e9ecef;
}

/* Event time slot status-based color coding */
.event-time-slot.status-empty {
    /* Red - No signups */
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    color: #721c24;
}

.event-time-slot.status-partial {
    /* Yellow - Partial fill */
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    color: #856404;
}

.event-time-slot.status-full {
    /* Green - All slots full */
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
}

.event-time-slot.status-signed-up {
    /* Blue - User already signed up */
    background: #cce5ff;
    border: 2px solid #4a90e2;
    color: #004085;
}

.event-time-slot.status-disabled {
    background: #e9ecef;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Modal */
.modal {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	margin: 0;
	padding: 0;
}

.modal.show,
.modal[style*="display: flex"],
.modal[style*="display:flex"],
.modal[style*="display: block"],
.modal[style*="display:block"] {
	display: flex !important;
}

.modal-content {
	background: var(--white);
	border-radius: 8px;
	box-shadow: var(--shadow-lg);
	max-width: 700px;
	width: 95%;
	max-height: 80vh;
	overflow: auto;
	margin: auto;
	position: relative;
}

.modal-header, .modal-footer {
	padding: 16px 20px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.modal-footer {
	border-top: 1px solid var(--border-color);
	border-bottom: none;
}

.modal-body {
	padding: 16px 20px;
}

.close-btn {
	background: transparent;
	border: none;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
	min-width: 44px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	touch-action: manipulation;
}

.signup-item {
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.signup-row {
	display: flex;
	flex-direction: column;
}

.job-signup-group {
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 15px;
	margin-bottom: 15px;
	background: #f9f9f9;
}

.job-signup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.job-signup-header h4 {
	margin: 0 0 5px 0;
	color: var(--text-color);
	font-size: 1.1rem;
}

.signup-count {
	color: var(--text-light);
	font-size: 0.9rem;
}

.job-actions {
	display: flex;
	gap: 8px;
}

.job-signup-details {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid var(--border-color);
}

.signup-day-group {
	margin-bottom: 12px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background: #fafafa;
	overflow: hidden;
}

.signup-day-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	gap: 10px;
}

.signup-day-header .signup-date {
	font-weight: 600;
	color: var(--text-color);
}

.signup-day-header .signup-count {
	color: var(--text-light);
	font-size: 0.9rem;
	margin-left: 6px;
}

.signup-day-slots {
	margin-top: 0;
	padding: 8px 12px 12px;
	border-top: 1px solid var(--border-color);
}

.signup-day-slots .signup-time-slot {
	margin-bottom: 6px;
}

.signup-day-slots .signup-time-slot:last-child {
	margin-bottom: 0;
}

.signup-time-slot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	margin-bottom: 8px;
	background: white;
	border: 1px solid var(--border-color);
	border-radius: 4px;
}

.signup-time-slot .signup-select-cb {
	flex-shrink: 0;
	margin-right: 10px;
}

.signup-time-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.signup-time-info .signup-date {
	font-weight: 600;
	color: var(--text-color);
}

.signup-time-info .signup-time {
	color: var(--text-light);
	font-size: 0.9rem;
}

.signup-name {
	font-weight: 600;
	color: var(--text-color);
}

.signup-date {
	color: var(--text-light);
	font-size: 0.9rem;
}

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

.btn-danger:hover {
	background: #c0392b;
}

.btn-sm {
	padding: 6px 10px;
	font-size: 0.85rem;
	border-radius: 4px;
}
.time-label {
    font-weight: 500;
}

.availability-info {
    font-size: 0.75rem;
}

.spots {
    color: inherit;
}

.full {
    font-weight: 600;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.no-events {
    color: var(--text-light);
    font-size: 0.85rem;
    text-align: center;
    padding: 10px;
}

.event-item {
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    background: #f8f9fa;
}

.event-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.event-name-clickable {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary-dark);
    font-size: 0.9rem;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.event-name-clickable:hover {
    background-color: var(--secondary-color);
    color: var(--primary-darker);
}

.event-name-disabled {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.6;
    cursor: not-allowed;
}

.event-description {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.event-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.event-time-slot {
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    display: flex;
    gap: 6px;
    align-items: center;
}

.event-time-slot.available {
    background: #f5f0e3;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
}

.event-time-slot.available:hover {
    background: var(--primary-color);
    color: var(--text-color);
}

.event-time-slot.selected {
    background: var(--primary-color);
    border: 1px solid var(--primary-dark);
    color: var(--text-color);
}

.event-time-slot.closed {
    background: #f8d7da;
    border: 1px solid var(--danger-color);
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Selected Items Panel */
.selected-items-panel {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
}

.selected-items-panel h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.selected-items-list {
    min-height: 100px;
    margin-bottom: 15px;
}

.empty-message {
    color: var(--text-light);
    text-align: center;
    padding: 20px;
}

.selected-items-ul {
    list-style: none;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

/* Selected group (expandable) */
.selected-group-item {
    flex-direction: column;
    align-items: stretch;
}

.selected-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-group-label {
    flex: 1;
    min-width: 0;
}

.selected-group-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-group-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    margin-left: 8px;
}

.selected-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.selected-item-row:last-child {
    margin-bottom: 0;
}

.selected-item-row-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.remove-btn {
    background: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    font-weight: bold;
}


/* Week View Adjustments */
.week-view .calendar-day {
    min-height: 200px;
}

.week-view .time-slots {
    gap: 8px;
}

.week-view .time-slot {
    padding: 10px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }

    .form-container .btn {
        width: 100%;
    }

    .form-container a.btn {
        display: block;
        text-align: center;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        font-size: 16px;
    }
    
    .checkbox-label {
        padding: 12px 14px;
    }
    
    .btn {
        min-height: 48px;
        padding: 14px 20px;
    }
    
    .modal-content {
        width: 95%;
        max-width: none;
        max-height: 85vh;
        margin: 10px;
    }
    
    .modal-header,
    .modal-footer,
    .modal-body {
        padding: 14px 16px;
    }
    
    .calendar-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toggle-group,
    .view-toggle-group {
        width: 100%;
    }
    
    .toggle-btn,
    .view-toggle-btn {
        flex: 1;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .job-type-filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .job-type-select {
        width: 100%;
        min-width: 0;
    }
    
    .calendar-week-header,
    .calendar-week {
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }
    
    .calendar-day {
        min-height: 100px;
        padding: 4px;
    }
    
    .time-slot {
        font-size: 0.75rem;
        padding: 6px 8px;
        min-height: 36px;
        touch-action: manipulation;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .calendar-header h2 {
        font-size: 1.2rem;
    }
    
    .nav-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .selected-items-panel {
        padding: 16px;
    }
    
    .selected-items-panel .btn {
        width: 100%;
        display: block;
    }
    
    .selected-item,
    .selected-item-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .remove-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .btn-sm {
        min-height: 44px;
        padding: 10px 14px;
    }
    
    .signup-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .job-signup-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .job-actions {
        flex-wrap: wrap;
    }
    
    .signup-time-slot {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .section-card {
        padding: 16px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .section-card .btn {
        width: 100%;
    }

    .section-card input[type="email"],
    .section-card input[type="text"] {
        font-size: 16px;
    }
    
    /* Clock-in page */
    #checkInBtn,
    #checkOutBtn {
        width: 100%;
    }
    
    #volunteerSelect {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .form-container,
    .section-card {
        padding: 14px;
    }
    
    .calendar-week-header,
    .calendar-week {
        gap: 2px;
    }
    
    .calendar-day-header {
        font-size: 0.65rem;
        padding: 4px 2px;
        letter-spacing: -0.5px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 2px;
    }
    
    .day-number {
        font-size: 0.85rem;
    }
    
    .time-slot {
        font-size: 0.7rem;
        padding: 4px 6px;
        min-height: 32px;
    }
    
    .event-item {
        padding: 6px;
    }
    
    .event-name {
        font-size: 0.85rem;
    }
    
    .event-time-slot {
        padding: 6px 10px;
        min-height: 36px;
    }
    
    .modal-content {
        width: 98%;
        margin: 5px;
    }
}

