/* ========================================
   CORPORATE DESIGN SYSTEM
   Clean, minimal, professional mobile-first design
   ======================================== */

:root {
    /* Corporate Color Palette */
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary: #64748b;
    --accent: #0ea5e9;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Layout */
    --container-max: 1200px;
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: 150ms ease;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    line-height: 1.25;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
    color: var(--gray-600);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
    min-height: 2.5rem;
    white-space: nowrap;
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

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

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: none;
    border: none;
    border-radius: var(--border-radius);
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: var(--space-3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--gray-700);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3);
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--gray-900);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 4rem;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    padding: var(--space-4);
    border-radius: var(--border-radius);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border: 1px solid;
    margin-bottom: var(--space-4);
}

.alert-success {
    background: #f0fdf4;
    color: var(--success);
    border-color: #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: var(--error);
    border-color: #fecaca;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    padding: var(--space-4) var(--space-6);
}

.header-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* ========================================
   DASHBOARD
   ======================================== */
.dashboard-content {
    margin-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .dashboard-header {
        flex-direction: row;
    align-items: center;
    justify-content: space-between;
    }
}

.dashboard-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin: 0;
}

/* ========================================
   BULK DELETE
   ======================================== */
.bulk-delete-bar {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--border-radius);
    margin-bottom: var(--space-4);
    padding: var(--space-4);
}

.bulk-delete-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

@media (min-width: 768px) {
    .bulk-delete-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.bulk-delete-content > span {
    font-weight: var(--font-semibold);
    color: var(--error);
}

.bulk-delete-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* ========================================
   SHIFTS LIST
   ======================================== */
.shifts-list {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: visible;
}

.shifts-header {
    display: none;
}

@media (min-width: 768px) {
.shifts-header {
    display: grid;
    grid-template-columns: 140px 200px 1fr 100px;
    gap: var(--space-4);
        padding: var(--space-4);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: var(--text-sm);
        font-weight: var(--font-semibold);
    color: var(--gray-700);
    }
    
    .shifts-header.delete-mode {
        grid-template-columns: 40px 140px 200px 1fr 100px;
    }
}

.shift-row {
    border-bottom: 1px solid var(--gray-100);
    padding: var(--space-4);
    transition: background-color var(--transition);
}

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

.shift-row:hover {
    background: var(--gray-50);
}

@media (min-width: 768px) {
    .shift-row {
        display: grid;
        grid-template-columns: 140px 200px 1fr 100px;
        gap: var(--space-4);
        padding: var(--space-4);
        align-items: center;
    }
    
    .shift-row.delete-mode {
        grid-template-columns: 40px 140px 200px 1fr 100px;
    }
}

.col-date {
    font-weight: var(--font-medium);
    color: var(--gray-900);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
    .col-date {
        margin-bottom: 0;
    text-align: center;
    }
}

.col-shift {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
    .col-shift {
        justify-content: center;
        margin-bottom: 0;
    }
}

.time {
    color: var(--primary);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
}

.time-separator {
    color: var(--gray-400);
}

.time-empty {
    color: var(--gray-400);
    font-style: italic;
}

.time-special {
    color: var(--gray-600);
    font-weight: var(--font-semibold);
}

.col-notes {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
    .col-notes {
        text-align: center;
        margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
}

.col-actions {
    display: flex;
    gap: var(--space-2);
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .col-actions {
    justify-content: center;
    }
}

.col-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    padding: var(--space-2);
}

/* ========================================
   PRESET BUTTONS
   ======================================== */
.preset-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

@media (min-width: 480px) {
    .preset-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

.preset-btn {
    padding: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition);
    min-height: 2.5rem;
    text-align: center;
}

.preset-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   MODALS
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

.modal-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
}

.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    border-radius: var(--border-radius);
    color: var(--gray-400);
    cursor: pointer;
    font-size: var(--text-lg);
    transition: all var(--transition);
}

.btn-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal-body {
    padding: var(--space-6);
    flex: 1;
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .modal-actions {
        flex-direction: row-reverse;
        justify-content: flex-start;
    }
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    color: var(--gray-500);
}

.empty-state-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.empty-state-description {
    font-size: var(--text-base);
    color: var(--gray-500);
    margin-bottom: var(--space-6);
}

/* ========================================
   PUBLIC VIEW
   ======================================== */
.public-header {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: var(--white);
    color: var(--gray-900);
    margin: 0 calc(var(--space-4) * -1) var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .public-header {
        padding: var(--space-12) var(--space-6);
        margin-bottom: var(--space-8);
        border-radius: var(--border-radius-lg);
        margin-left: 0;
        margin-right: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

.public-header h1 {
    color: var(--gray-900);
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-3);
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

.public-subtitle {
    font-size: var(--text-sm) !important;
    color: var(--gray-600) !important;
    margin: 0 !important;
    font-weight: var(--font-medium) !important;
    letter-spacing: 0.025em !important;
    text-transform: uppercase !important;
}

.public-footer {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin-top: var(--space-8);
}

/* ========================================
   MONTH HEADERS
   ======================================== */
.month-header {
    margin-bottom: var(--space-6);
}

.month-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin: 0 0 var(--space-4) 0;
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--gray-200);
}

/* ========================================
   WEEK SECTIONS
   ======================================== */
.week-section {
    margin-bottom: var(--space-6);
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.week-title {
    background: var(--primary-50);
    padding: var(--space-4);
    margin: 0;
    color: var(--primary);
    border-bottom: 1px solid var(--gray-200);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    border-left: 4px solid var(--primary);
}

/* ========================================
   WEEKS VIEW
   ======================================== */
.weeks-view {
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* ========================================
   SHIFT CARDS
   ======================================== */
.public-shift {
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-100);
    transition: background-color var(--transition);
    position: relative;
}

.public-shift:last-child {
    border-bottom: none;
}

.public-shift:hover {
    background: var(--gray-50);
}

.public-shift.current-day {
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
    border-left: 6px solid var(--primary-500);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.public-shift.current-day .date-day,
.public-shift.current-day .date-date {
    color: var(--primary-800);
    font-weight: var(--font-bold);
    text-shadow: 0 1px 2px rgba(59, 130, 246, 0.1);
}

.public-shift.current-day .time {
    color: var(--primary-700);
    font-weight: var(--font-semibold);
    text-shadow: 0 1px 2px rgba(59, 130, 246, 0.1);
}

.public-shift.current-day .time-special {
    color: var(--primary-700);
    font-weight: var(--font-bold);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.shift-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.shift-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 80px;
    flex-shrink: 0;
}

.date-day {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    line-height: 1.2;
}

.date-date {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.2;
}

.shift-time {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--primary);
    flex: 1;
    justify-content: center;
}

.note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.note-icon:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.shift-actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.shift-actions .btn-icon {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    transition: all var(--transition);
}

.shift-actions .btn-icon:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

.shift-actions .btn-icon:first-child:hover {
    background: var(--primary-100);
    border-color: var(--primary-300);
    color: var(--primary);
}

.shift-actions .btn-icon:last-child:hover {
    background: var(--error-100);
    border-color: var(--error-300);
    color: var(--error);
}

/* ========================================
   DELETE MODE
   ======================================== */
.delete-mode .public-shift {
    cursor: pointer;
    transition: background-color var(--transition);
}

.delete-mode .public-shift:hover {
    background: var(--gray-100);
}

.delete-mode .public-shift.selected {
    background: var(--primary-100);
    color: var(--error);
}

.delete-mode .public-shift.selected:hover {
    background: var(--primary-200);
    color: var(--error);
}

.delete-mode .public-shift.selected .date-day,
.delete-mode .public-shift.selected .date-date,
.delete-mode .public-shift.selected .time,
.delete-mode .public-shift.selected .time-special,
.delete-mode .public-shift.selected .time-empty {
    color: var(--error);
}

.delete-mode .public-shift.current-day.selected {
    background: var(--error-100);
    border-left-color: var(--error-500);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25), 0 0 0 1px rgba(239, 68, 68, 0.1);
}

.delete-mode .public-shift.current-day.selected .date-day,
.delete-mode .public-shift.current-day.selected .date-date,
.delete-mode .public-shift.current-day.selected .time,
.delete-mode .public-shift.current-day.selected .time-special,
.delete-mode .public-shift.current-day.selected .time-empty {
    color: var(--error);
    text-shadow: 0 1px 2px rgba(239, 68, 68, 0.1);
}

.delete-mode .public-shift.current-day.selected .time-special {
    background: rgba(239, 68, 68, 0.1);
}

.public-shift {
    position: relative;
}

.shift-notes {
    font-size: var(--text-sm);
    color: var(--gray-600);
    background: var(--gray-50);
    padding: var(--space-3);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary);
}

.shift-notes p {
    margin: 0;
}

/* ========================================
   UTILITIES
   ======================================== */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
}

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

.mb-0 {
    margin-bottom: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 767px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
        min-height: 3.5rem;
    }
    
    .header-actions {
        width: auto;
        justify-content: flex-end;
        gap: var(--space-2);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: var(--space-4);
        max-width: none;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: var(--space-4);
    }
    
    .modal-body {
        padding: var(--space-4);
    }
    
    .modal-actions {
        padding: var(--space-3);
    }
    
    .form-group {
        margin-bottom: var(--space-2);
    }
    
    .preset-buttons {
        margin-bottom: var(--space-3);
    }
    
    /* Mobile-specific dashboard styles */
    .header-title {
        font-size: var(--text-base);
        letter-spacing: -0.01em;
        flex: 1;
        min-width: 0;
    }
    
    .header-actions {
        gap: var(--space-2);
    }
    
    .header-actions .btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }
    
    .header-actions .btn-icon {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
    }
    
    .dashboard-title {
        font-size: var(--text-lg);
        margin-bottom: var(--space-4);
    }
    
    .week-title {
        font-size: var(--text-base);
        padding: var(--space-3);
    }
    
    .public-shift {
        padding: var(--space-3);
        margin-bottom: var(--space-2);
    }
    
    .shift-content {
        gap: var(--space-3);
    }
    
    .shift-date {
        min-width: 70px;
    }
    
    .date-day {
        font-size: var(--text-xs);
    }
    
    .date-date {
        font-size: var(--text-xs);
    }
    
    .shift-time {
    font-size: var(--text-base);
    }
    
    .shift-actions {
        gap: var(--space-1);
    }
    
    .shift-actions .btn-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .note-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: var(--text-xs);
    }
    
    .bulk-delete-bar {
        padding: var(--space-3);
    }
    
    .bulk-delete-content {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .bulk-delete-actions {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    .bulk-delete-actions .btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }
    
    /* Mobile-specific current day enhancements */
    .public-shift.current-day {
        border-left-width: 4px; /* Slightly thinner on mobile */
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1);
        transform: none; /* Remove lift effect on mobile for better performance */
    }
    
    .public-shift.current-day .date-day,
    .public-shift.current-day .date-date {
        font-weight: var(--font-semibold); /* Slightly lighter on mobile */
    }
    
    .public-shift.current-day .time-special {
        padding: 1px 6px; /* Smaller padding on mobile */
        font-size: var(--text-xs);
    }
    
    /* Ensure delete mode works well on mobile */
    .delete-mode .public-shift.current-day.selected {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2), 0 0 0 1px rgba(239, 68, 68, 0.1);
    }
    
    /* Mobile header optimizations */
    .public-header {
        padding: var(--space-6) var(--space-3);
        margin: 0 calc(var(--space-3) * -1) var(--space-4);
    }
    
    .public-header h1 {
        font-size: clamp(1.25rem, 6vw, 2rem);
        margin-bottom: var(--space-2);
    }
    
    .public-subtitle {
        font-size: var(--text-xs) !important;
        letter-spacing: 0.05em !important;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-8);
    }
    
    .shifts-header,
    .shift-row {
        grid-template-columns: 160px 220px 1fr 120px;
    }
    
    .shifts-header.delete-mode,
    .shift-row.delete-mode {
        grid-template-columns: 40px 160px 220px 1fr 120px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header-actions,
    .col-actions,
    .modal,
    .btn {
        display: none !important;
    }
    
    .shift-row,
    .public-shift {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}