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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

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

.header {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header p {
    color: #64748b;
    font-size: 16px;
}

#authSection {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tab.active {
    background: #3b82f6;
    color: white;
}

.tab:not(.active):hover {
    background: #f1f5f9;
}

.tab-content {
    display: none;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-success {
    background: #10b981;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
}

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

.schedule-grid {
    display: grid;
    grid-template-columns: 100px repeat(5, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.time-header {
    background: #374151;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
}

.day-header {
    background: #6b7280;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.time-slot {
    background: #f9fafb;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

.schedule-slot {
    background: #f9fafb;
    padding: 4px;
    min-height: 32px;
    border: 1px solid #e5e7eb;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.schedule-slot:hover {
    background: #f0f9ff;
}

.schedule-slot.available {
    background: #dcfce7;
    border-color: #16a34a;
}

.schedule-slot.assigned {
    background: #dbeafe;
    border-color: #3b82f6;
}

.schedule-slot.required {
    background: #fef3c7;
    border-color: #d97706;
}

.employee-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.employee-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s;
}

.employee-card:hover {
    border-color: #3b82f6;
}

.employee-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.employee-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.shift-list {
    list-style: none;
}

.shift-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}

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

.shift-actions button {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.swap-btn {
    background: #f59e0b;
    color: white;
}

.giveaway-btn {
    background: #10b981;
    color: white;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.status-item {
    text-align: center;
}

.status-number {
    font-size: 24px;
    font-weight: 700;
    color: #374151;
}

.status-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

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

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
}

.modal h3 {
    margin-bottom: 16px;
    color: #374151;
}

.close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #047857;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #dc2626;
}

.availability-grid {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.availability-slot {
    background: #f9fafb;
    padding: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 24px;
    border: 1px solid transparent;
}

.availability-slot:hover {
    background: #f0f9ff;
}

.availability-slot.selected {
    background: #dcfce7;
    border-color: #16a34a;
}

.time-label {
    background: #6b7280;
    color: white;
    padding: 4px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
