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

:root {
    --primary-color: #10b981;
    --primary-hover: #059669;
    --secondary-color: #3b82f6;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --warning-color: #f59e0b;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.03);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 80px;
}

.connection-error {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff9800;
    color: white;
    padding: 12px;
    text-align: center;
    z-index: 10000;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    margin: 0 16px;
    width: calc(100% - 32px);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.date-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.date-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 44px;
}

.date-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.date-nav-btn:active {
    transform: scale(0.95);
}

.date-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.date-display {
    font-size: 15px;
    opacity: 0.95;
    font-weight: 600;
    min-width: 200px;
    text-align: center;
    letter-spacing: 0.3px;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.view-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.view-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.view-toggle-btn.active {
    background: white;
    color: var(--primary-color);
    border-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Tabs */
.tabs {
    display: flex;
    background: var(--card-bg);
    margin: 0;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab-button {
    flex: 1;
    padding: 16px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tab-button:active {
    transform: scale(0.98);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 16px;
}

.tab-content.active {
    display: block;
}

/* Attendance List */
.attendance-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.attendance-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.attendance-item:active {
    transform: scale(0.98);
}

.attendance-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.person-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.person-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.person-name {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
}

.attendance-buttons {
    display: flex;
    gap: 8px;
}

.attendance-btn {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-color);
    color: var(--text-secondary);
}

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

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

.attendance-btn:active {
    transform: scale(0.95);
}

.attendance-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Passenger Grid View Styles */
.passenger-grid-view {
    padding: 24px 16px;
    background: transparent;
}

.passenger-grid-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.passenger-user-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05));
    border-bottom: 1px solid var(--border-color);
}

.passenger-user-header .grid-avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
    box-shadow: var(--shadow-md);
}

.passenger-user-header .grid-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.grid-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--border-color);
    font-weight: 600;
    font-size: 14px;
}

.grid-header-cell {
    background: var(--bg-color);
    padding: 12px 16px;
    text-align: center;
}

.grid-header-cell:first-child {
    text-align: left;
}

.grid-date-row {
    border-bottom: 1px solid var(--border-color);
}

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

.grid-date-header {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding: 8px 0;
}

.grid-header-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    background: var(--bg-color);
    border-bottom: 2px solid var(--border-color);
}

.grid-header-row .grid-header-cell {
    background: var(--bg-color);
    padding: 16px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.grid-header-row .grid-header-cell.name-header {
    text-align: left;
}

.grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    background: transparent;
}

.grid-cell {
    background: var(--card-bg);
    padding: 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.grid-date-row:last-child .grid-cell {
    border-bottom: none;
}

.grid-cell.name-cell {
    justify-content: flex-start;
    gap: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.grid-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.grid-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.toggle-state-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 18px;
}

.toggle-state-label.pending {
    color: var(--text-secondary);
}

.toggle-state-label.coming {
    color: var(--primary-color);
}

.toggle-state-label.skipping {
    color: var(--danger-color);
}

.toggle-track {
    width: 60px;
    height: 32px;
    background: var(--border-color);
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-track.coming {
    background: var(--primary-color);
}

.toggle-track.skipping {
    background: var(--danger-color);
}

.toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-track.pending .toggle-thumb {
    transform: translateX(0);
}

.toggle-track.coming .toggle-thumb {
    transform: translateX(28px);
}

.toggle-track.skipping .toggle-thumb {
    transform: translateX(0);
}

/* Driver View Styles */
.driver-view .attendance-item {
    padding: 12px 16px;
}

.driver-view .attendance-buttons {
    display: none;
}

.driver-view .person-avatar {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.driver-view .person-name {
    font-size: 16px;
}

.driver-view .person-info {
    flex: 1;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.coming {
    background: var(--primary-color);
    color: white;
}

.status-badge.skipping {
    background: var(--danger-color);
    color: white;
}

.status-badge.pending {
    background: var(--bg-color);
    color: var(--text-secondary);
}

/* Summary */
.summary {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.summary h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-value.coming {
    color: var(--primary-color);
}

.stat-value.skipping {
    color: var(--danger-color);
}

.stat-value.pending {
    color: var(--warning-color);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Manage Button */
.manage-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--secondary-color), #2563eb);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    letter-spacing: 0.3px;
}

.manage-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

.manage-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Share Button */
.share-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
    display: none;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    letter-spacing: 0.3px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.5);
}

.share-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.modal-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--bg-color);
}

.close-btn:active {
    transform: scale(0.9);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Join Modal Styles */
/* Join Modal Styles */
.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.welcome-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.welcome-btn.primary:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.welcome-btn.secondary:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.welcome-btn:active {
    transform: scale(0.98);
}

.welcome-btn .icon {
    font-size: 20px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

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

/* Days selector */
.days-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.day-checkbox {
    flex: 0 0 calc(14.28% - 7px);
    min-width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.day-checkbox input[type="checkbox"] {
    display: none;
}

.day-checkbox span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 4px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: white;
    color: var(--text-secondary);
}

.day-checkbox input[type="checkbox"]:checked + span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.day-checkbox:hover span {
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.submit-btn:active {
    transform: scale(0.98);
}

.resend-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

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

.resend-btn:active {
    transform: scale(0.98);
}

.form-note {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 12px;
}

.join-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.join-section {
    margin-bottom: 24px;
}

.join-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.existing-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-select-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.member-select-btn:hover {
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.member-select-btn:active {
    transform: scale(0.98);
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.member-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.no-members {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 8px;
}

.join-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.join-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.join-divider span {
    background: var(--card-bg);
    padding: 0 16px;
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.new-member-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.new-member-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.new-member-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.new-member-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.new-member-form button:active {
    transform: scale(0.95);
}

/* Add Person Form */
.add-person-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.add-person-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.add-person-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.add-person-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-person-form button:active {
    transform: scale(0.95);
}

/* Order Tabs in Modal */
.order-tabs {
    display: flex;
    background: var(--bg-color);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 16px;
}

.order-tab-button {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.order-tab-button.active {
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-tab-button:active {
    transform: scale(0.98);
}

.order-tab-content {
    display: none;
}

.order-tab-content.active {
    display: block;
}

.order-hint {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: 6px;
    margin-bottom: 12px;
    text-align: center;
}

/* People Order List in Modal */
.people-order-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.person-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    cursor: move;
}

.person-item[draggable="false"] {
    cursor: default;
}

.person-item.dragging {
    opacity: 0.5;
}

.person-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drag-handle {
    font-size: 20px;
    color: var(--text-secondary);
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.person-item-info {
    display: flex;
    flex-direction: column;
}

.person-item-name {
    font-size: 16px;
    font-weight: 500;
}

.person-item-order {
    font-size: 12px;
    color: var(--text-secondary);
}

.delete-btn {
    padding: 8px 16px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-btn:active {
    transform: scale(0.95);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 16px;
}

/* Share Modal Styles */
.share-link-container {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.share-link-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.copy-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 100px;
}

.copy-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.copy-btn:active {
    transform: scale(0.95);
}

.share-code-section {
    background: var(--bg-color);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.share-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.group-code-display {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    padding: 12px;
    background: white;
    border: 2px dashed var(--secondary-color);
    border-radius: 8px;
}

.share-info {
    background: var(--bg-color);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.share-info-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.share-info-code {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.share-info-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }

    .attendance-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .person-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .person-name {
        font-size: 16px;
    }

    .manage-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .share-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (min-width: 601px) {
    .container {
        margin-top: 20px;
    }

    header {
        border-radius: 16px 16px 0 0;
    }

    .tabs {
        border-radius: 0;
    }
}

/* Loading Animation */
.loading-animation {
    position: relative;
    width: 100%;
    height: 80px;
    margin: 2rem 0;
}

.loading-bus {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    font-size: 3rem;
    margin-right: 0.6rem;
    animation: busMove 4.5s linear infinite;
}

.loading-dots {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--secondary-color);
    text-align: left;
    margin-left: 2vw;
    margin-top: 0.6rem;
    letter-spacing: 0.5vw;
}

.loading-dots::before {
    content: '';
    display: inline-block;
    animation: dotsIncrease 4.5s linear infinite;
}

@keyframes busMove {
    0% {
        left: 0%;
    }
    100% {
        left: calc(100% - 12vw);
    }
}

@keyframes dotsIncrease {
    0% {
        content: '';
    }
    12.5% {
        content: '•';
    }
    25% {
        content: '• •';
    }
    37.5% {
        content: '• • •';
    }
    50% {
        content: '• • • •';
    }
    62.5% {
        content: '• • • • •';
    }
    75% {
        content: '• • • • • •';
    }
    87.5% {
        content: '• • • • • • •';
    }
    100% {
        content: '• • • • • • • •';
    }
}
