/* QuePasa Restaurant Staff Scheduler - Spanish Theme */
:root {
    --primary-color: #D32F2F;    /* Spanish red */
    --secondary-color: #F57C00;  /* Spanish orange */
    --accent-color: #1976D2;     /* Mediterranean blue */
    --light-color: #FFEBEE;     /* Light red */
    --dark-color: #B71C1C;      /* Dark red */
    --success-color: #388E3C;   /* Green */
    --warning-color: #FBC02D;   /* Yellow */
    --danger-color: #D32F2F;    /* Red */
    --info-color: #1976D2;      /* Blue */
    
    --text-color: #333333;
    --light-text: #FFFFFF;
    --background-color: #F5F5F5;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    
    /* Role colors */
    --bosch-color: #1976D2;
    --chef-color: #D32F2F;
    --waiter-color: #388E3C;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

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

.btn.success {
    background-color: var(--success-color);
    color: var(--light-text);
}

.btn.success:hover {
    background-color: #2E7D32;
}

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

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

.btn.text {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
}

.btn.text:hover {
    background-color: rgba(211, 47, 47, 0.1);
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn.action {
    display: block;
    margin-bottom: 0.5rem;
    background-color: var(--light-color);
    color: var(--dark-color);
}

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

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--card-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert.error {
    background-color: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #D32F2F;
}

.alert.success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #388E3C;
}

.alert.info {
    background-color: #E3F2FD;
    color: #1565C0;
    border-left: 4px solid #1976D2;
}

.alert.warning {
    background-color: #FFF8E1;
    color: #F57C00;
    border-left: 4px solid #FFC107;
}

/* Header Styles */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
}

.tagline {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-color);
    text-align: left;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(211, 47, 47, 0.1);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 500;
    color: var(--text-color);
}

.user-role {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.user-role.bosch {
    background-color: var(--bosch-color);
}

.user-role.chef {
    background-color: var(--chef-color);
}

.user-role.waiter {
    background-color: var(--waiter-color);
}

.btn.logout {
    background-color: var(--light-color);
    color: var(--dark-color);
}

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

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Shift Styles */
.shift-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.shift-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.shift-date {
    font-weight: 500;
    color: var(--primary-color);
    min-width: 120px;
}

.shift-time {
    font-weight: 500;
    color: var(--text-color);
    min-width: 150px;
}

.shift-role {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.shift-role.bosch {
    background-color: var(--bosch-color);
}

.shift-role.chef {
    background-color: var(--chef-color);
}

.shift-role.waiter {
    background-color: var(--waiter-color);
}

.shift-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.shift-status.open {
    background-color: var(--warning-color);
    color: #333;
}

.shift-status.assigned {
    background-color: var(--success-color);
    color: white;
}

.shift-assigned {
    font-style: italic;
    color: var(--text-color);
    margin-left: auto;
}

.shift-actions {
    margin-left: auto;
}

.shift-admin-actions {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

/* Schedule Styles */
.schedule-day {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.schedule-day h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.shift-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.schedule-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-color);
}

.filter-group select {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Availability Styles */
.availability-item {
    background-color: var(--card-bg);
    border-left: 4px solid;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.availability-item.available {
    border-left-color: var(--success-color);
}

.availability-item.unavailable {
    border-left-color: var(--danger-color);
}

.availability-date {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.availability-status {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.availability-item.available .availability-status {
    color: var(--success-color);
}

.availability-item.unavailable .availability-status {
    color: var(--danger-color);
}

.availability-notes {
    font-style: italic;
    color: var(--text-color);
    font-size: 0.9rem;
}

.availability-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.availability-actions .btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

/* Time Off Styles */
.timeoff-item {
    background-color: var(--card-bg);
    border-left: 4px solid;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeoff-item.pending {
    border-left-color: var(--warning-color);
}

.timeoff-item.approved {
    border-left-color: var(--success-color);
}

.timeoff-item.rejected {
    border-left-color: var(--danger-color);
}

.timeoff-dates {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeoff-status {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeoff-reason {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.timeoff-note {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 0.5rem;
}

.timeoff-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* User Styles */
.user-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.user-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.user-email {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.user-actions {
    display: flex;
    gap: 0.8rem;
}

/* Activity Styles */
.activity-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.activity-description {
    color: var(--text-color);
}

/* Login Page */
body.login-page {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background-color: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-card .logo {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.login-card h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.login-form {
    text-align: left;
}

.login-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Role Badges */
.role-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    display: inline-block;
}

.role-badge.bosch {
    background-color: var(--bosch-color);
}

.role-badge.chef {
    background-color: var(--chef-color);
}

.role-badge.waiter {
    background-color: var(--waiter-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .user-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .shift-item, .availability-item, .timeoff-item, .user-item {
    animation: fadeIn 0.3s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Spanish Theme Enhancements */
.btn.primary {
    background: linear-gradient(45deg, #D32F2F, #B71C1C);
}

.card {
    border-top: 3px solid var(--primary-color);
}

.logo {
    font-family: 'Georgia', serif;
    font-style: italic;
}

/* Shift role badges with Spanish flair */
.shift-role {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Availability calendar with Spanish colors */
.availability-item.available {
    background-color: rgba(56, 142, 60, 0.05);
}

.availability-item.unavailable {
    background-color: rgba(211, 47, 47, 0.05);
}

/* Apple/Google Style Calendar */
.apple-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.apple-calendar-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.apple-calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.apple-nav-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    color: var(--primary-color);
}

.apple-nav-btn:hover {
    background-color: rgba(33, 150, 243, 0.1);
}

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

.apple-nav-btn.today-btn:hover {
    background-color: #1976d2;
}

.apple-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.apple-calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.apple-calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    min-height: 100px;
}

.apple-calendar-day {
    min-height: 140px;
    padding: 0.6rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    font-size: 0.85rem;
    overflow-y: auto;
    max-height: 200px;
}

.apple-calendar-day.empty {
    background-color: transparent;
    border: none;
}

.apple-calendar-day.today {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: var(--primary-color);
    font-weight: 600;
}

.apple-calendar-day.past {
    opacity: 0.6;
    background-color: rgba(0, 0, 0, 0.02);
}

.apple-calendar-day-number {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.apple-calendar-event {
    background-color: white;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 60px;
    position: relative;
}

.apple-calendar-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.apple-calendar-event.assigned {
    border-left-color: var(--success-color);
    background-color: rgba(76, 175, 80, 0.05);
}

.apple-calendar-event.open {
    border-left-color: var(--warning-color);
    background-color: rgba(255, 152, 0, 0.05);
}

.apple-event-time {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.1rem;
    font-size: 0.8rem;
}

.apple-event-title {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.apple-event-staff {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.apple-staff-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

.apple-staff-count {
    font-size: 0.7rem;
    color: var(--secondary-text-color);
}

.apple-event-actions {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.apple-edit-btn, .apple-delete-btn, .apple-assign-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.apple-edit-btn {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
}

.apple-delete-btn {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

.apple-assign-btn {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.apple-edit-btn:hover {
    background-color: rgba(33, 150, 243, 0.2);
}

.apple-delete-btn:hover {
    background-color: rgba(244, 67, 54, 0.2);
}

.apple-assign-btn:hover {
    background-color: rgba(76, 175, 80, 0.2);
}

.apple-availability-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.3rem;
}

.apple-availability {
    display: flex;
    gap: 0.1rem;
    font-size: 0.7rem;
}

.apple-availability.available {
    color: var(--success-color);
}

.apple-availability.unavailable {
    color: var(--danger-color);
}

.apple-avail-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: currentColor;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
}

/* Universal Search */
.universal-search {
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.search-button:hover {
    background-color: #1976d2;
}

/* Search Results Page */
.search-header {
    margin-bottom: 2rem;
    text-align: center;
}

.search-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.search-stats {
    color: var(--secondary-text-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.search-form {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.no-results {
    background-color: rgba(244, 67, 54, 0.05);
    border-left: 3px solid var(--danger-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.no-results p:first-child {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.search-result-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.search-result-type {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.search-result-link {
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.search-result-link:hover {
    background-color: #1976d2;
}

.search-result-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.search-result-details {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.search-result-staff {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    font-style: italic;
}

/* Collapsible Sections */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.collapsible-header h2 {
    margin: 0;
    cursor: pointer;
}

.collapsible-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.collapsible-content.collapsed {
    display: none;
}

/* Pagination Styles */
.apple-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.apple-pag-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
}

.apple-pag-btn:hover {
    background-color: rgba(33, 150, 243, 0.1);
}

.apple-pag-info {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

/* Clean List View */
.apple-list-view {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.apple-list-view h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.apple-list-day {
    margin-bottom: 1.5rem;
}

.apple-list-day-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.apple-list-shift {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.apple-list-shift.assigned {
    border-left: 3px solid var(--success-color);
}

.apple-list-shift.open {
    border-left: 3px solid var(--warning-color);
}

.apple-list-shift-time {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.apple-list-shift-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.apple-list-shift.assigned .apple-list-shift-status {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.apple-list-shift.open .apple-list-shift-status {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.apple-list-shift-staff {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.apple-list-shift-actions {
    display: flex;
    gap: 0.5rem;
}

.apple-edit-btn, .apple-delete-btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    text-decoration: none;
}

.apple-edit-btn {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
}

.apple-delete-btn {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

.no-shifts {
    color: var(--secondary-text-color);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Passed Shifts Styles */
.apple-passed-day {
    margin-bottom: 1.5rem;
}

.apple-passed-day-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.apple-passed-shift {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    opacity: 0.8;
}

.apple-passed-shift-time {
    font-weight: 600;
    color: var(--secondary-text-color);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.apple-passed-shift-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--secondary-text-color);
}

.apple-passed-shift-staff {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.apple-staff-badge {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Apple/Google Style Availability Calendar */
.apple-avail-calendar {
    font-size: 0.95rem;
}

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

.apple-avail-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.apple-avail-nav {
    display: flex;
    gap: 0.5rem;
}

.apple-avail-nav-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.apple-avail-nav-btn:hover {
    background-color: rgba(33, 150, 243, 0.1);
}

.apple-avail-nav-btn.today-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.apple-avail-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.apple-avail-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.apple-avail-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.apple-avail-day {
    min-height: 80px;
    padding: 0.4rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    font-size: 0.8rem;
}

.apple-avail-day.empty {
    background-color: transparent;
    border: none;
}

.apple-avail-day.today {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: var(--primary-color);
    font-weight: 600;
}

.apple-avail-day.past {
    opacity: 0.6;
    background-color: rgba(0, 0, 0, 0.02);
}

.apple-avail-day.available {
    background-color: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.2);
}

.apple-avail-day.unavailable {
    background-color: rgba(244, 67, 54, 0.05);
    border-color: rgba(244, 67, 54, 0.1);
}

.apple-avail-day-number {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.apple-avail-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin-bottom: 0.2rem;
}

.apple-avail-status.available {
    background-color: rgba(76, 175, 80, 0.15);
    color: var(--success-color);
}

.apple-avail-status.unavailable {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

.apple-avail-status-text {
    font-weight: 600;
}

.apple-avail-time {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.1rem;
    opacity: 0.9;
}

.apple-avail-notes {
    display: block;
    font-size: 0.65rem;
    margin-top: 0.2rem;
    opacity: 0.8;
    font-style: italic;
}

.apple-avail-actions {
    display: flex;
    gap: 0.3rem;
    justify-content: flex-end;
    font-size: 0.8rem;
}

.apple-avail-edit, .apple-avail-delete {
    text-decoration: none;
    cursor: pointer;
}

.apple-avail-edit {
    color: var(--primary-color);
}

.apple-avail-delete {
    color: var(--danger-color);
}

/* Clean Availability List View */
.apple-avail-list-view {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.apple-avail-list-view h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.apple-avail-list-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.apple-avail-list-item.available {
    border-left: 3px solid var(--success-color);
}

.apple-avail-list-item.unavailable {
    border-left: 3px solid var(--danger-color);
}

.apple-avail-list-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.apple-avail-list-status {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.apple-avail-list-time {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    font-style: italic;
}

.apple-avail-list-notes {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    padding: 0.3rem;
    background-color: rgba(33, 150, 243, 0.05);
    border-radius: 4px;
}

.apple-avail-list-actions {
    display: flex;
    gap: 0.5rem;
}

/* Bosch Staff Availability Calendar */
.bosch-avail-calendar {
    font-size: 0.9rem;
}

.bosch-avail-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.bosch-avail-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.bosch-view-toggle {
    display: flex;
    gap: 0.5rem;
}

.bosch-toggle-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--primary-color);
}

.bosch-toggle-btn:hover {
    background-color: rgba(33, 150, 243, 0.1);
}

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

.bosch-avail-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.bosch-avail-nav {
    display: flex;
    gap: 0.5rem;
}

.bosch-avail-nav-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bosch-avail-nav-btn:hover {
    background-color: rgba(33, 150, 243, 0.1);
}

.bosch-avail-nav-btn.today-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.bosch-avail-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.bosch-avail-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bosch-avail-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.bosch-avail-day {
    min-height: 100px;
    padding: 0.5rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    font-size: 0.8rem;
}

.bosch-avail-day.empty {
    background-color: transparent;
    border: none;
}

.bosch-avail-day.today {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: var(--primary-color);
    font-weight: 600;
}

.bosch-avail-day.past {
    opacity: 0.6;
    background-color: rgba(0, 0, 0, 0.02);
}

.bosch-avail-day-number {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.bosch-avail-group {
    margin-bottom: 0.3rem;
    padding: 0.3rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.bosch-avail-group.available {
    background-color: rgba(76, 175, 80, 0.08);
    border-left: 2px solid var(--success-color);
}

.bosch-avail-group.unavailable {
    background-color: rgba(244, 67, 54, 0.05);
    border-left: 2px solid var(--danger-color);
}

.bosch-avail-group-label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
}

.bosch-staff-avail {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0;
    font-size: 0.7rem;
}

.bosch-staff-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
}

.bosch-staff-name {
    color: var(--text-color);
    font-size: 0.7rem;
}

.bosch-avail-group.available .bosch-staff-initial {
    background-color: var(--success-color);
}

.bosch-avail-group.unavailable .bosch-staff-initial {
    background-color: var(--danger-color);
}

.bosch-avail-group.available .bosch-staff-name {
    color: var(--success-color);
}

.bosch-avail-group.unavailable .bosch-staff-name {
    color: var(--danger-color);
}

/* Bosch Staff List View */
.bosch-avail-list-view {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.bosch-avail-list-view h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.bosch-staff-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bosch-staff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.bosch-staff-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.bosch-staff-role {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bosch-staff-avail-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.bosch-staff-avail-item:last-child {
    border-bottom: none;
}

.bosch-staff-avail-item.available {
    background-color: rgba(76, 175, 80, 0.05);
}

.bosch-staff-avail-item.unavailable {
    background-color: rgba(244, 67, 54, 0.05);
}

.bosch-avail-date {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

.bosch-avail-status {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.bosch-avail-time {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    font-style: italic;
}

.bosch-avail-notes {
    font-size: 0.85rem;
    color: var(--text-color);
    padding: 0.3rem;
    background-color: rgba(33, 150, 243, 0.05);
    border-radius: 4px;
    margin-bottom: 0.3rem;
}

/* Name-based grouping view */
.bosch-names-view {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bosch-staff-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bosch-staff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.bosch-staff-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.bosch-staff-role {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bosch-staff-avail-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.bosch-staff-avail-item:last-child {
    border-bottom: none;
}

.bosch-staff-avail-item.available {
    background-color: rgba(76, 175, 80, 0.05);
}

.bosch-staff-avail-item.unavailable {
    background-color: rgba(244, 67, 54, 0.05);
}

.bosch-avail-date {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

.bosch-avail-status {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.bosch-avail-time {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    font-style: italic;
}

/* Old Calendar Styles - Deprecated */
.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.calendar-day-header {
    padding: 0.5rem;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 6px;
    font-size: 0.9rem;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    min-height: 100px;
    padding: 0.5rem;
    background-color: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    position: relative;
}

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

.calendar-day.today {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: var(--primary-color);
}

.calendar-day.past {
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.03);
}

.calendar-day-number {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.calendar-shift {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.calendar-shift.assigned {
    border-left: 3px solid var(--success-color);
    background-color: rgba(76, 175, 80, 0.05);
}

.calendar-shift.open {
    border-left: 3px solid var(--warning-color);
    background-color: rgba(255, 152, 0, 0.05);
}

.calendar-shift-time {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.calendar-shift-staff {
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.user-badge {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

.calendar-shift-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.calendar-shift-actions a {
    text-decoration: none;
    cursor: pointer;
}

.calendar-availability {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.3rem;
    justify-content: flex-end;
}

.availability-indicator {
    font-size: 0.8rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

.availability-indicator.available {
    color: var(--success-color);
}

.availability-indicator.unavailable {
    color: var(--danger-color);
}

.calendar-navigation {
    margin-bottom: 1rem;
}

.calendar-nav-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Larger fonts for better readability */
.card h2, .card h3 {
    font-size: 1.8rem !important;
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 2rem !important;
    margin-bottom: 1rem;
}

.btn {
    font-size: 1rem !important;
    padding: 0.6rem 1.2rem !important;
}

.form-group label {
    font-size: 1rem !important;
}

.form-group input, .form-group select, .form-group textarea {
    font-size: 1rem !important;
}