:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Hartford HealthCare Brand Colors */
    --hh-teal: #20B2AA;
    --hh-green: #7CB342;
    --hh-purple: #9C27B0;
    --hh-orange: #FF7043;
    --hh-black: #000000;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-color);
    line-height: 1.6;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Header Styles */
.navbar {
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Hero Section with Hartford HealthCare Brand Colors */
.hero-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--hh-teal) 0%, #ffffff 50%, var(--hh-orange) 100%);
    color: #000000;
    border-radius: 1rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo-section {
    margin-bottom: 2rem;
}

.hero-logo {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.navbar-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

.page-header-logo {
    height: 50px;
    width: auto;
}

.login-logo {
    height: 60px;
    width: auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.title-healthcare {
    display: block;
    font-size: 2.2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.title-foodtruck {
    display: block;
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fff 0%, var(--hh-green) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #000000;
    text-shadow: none;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Location Selector */
.location-selector {
    margin: 2rem 0;
}

.btn-location {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-location:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.location-info {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000;
    backdrop-filter: blur(10px);
}

.location-info .card-body {
    padding: 1.5rem;
}

.location-info .card-title {
    color: #000000;
}

.location-info .card-text {
    color: #555555 !important;
}

/* Card Styles */
.section-card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Button Styles */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Announcements */
.announcements-list {
    max-height: 400px;
    overflow-y: auto;
}

.announcement-item {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.announcement-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.announcement-priority {
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.announcement-content h6 {
    font-weight: 600;
    color: var(--dark-color);
}

/* Downloads */
.downloads-list {
    max-height: 400px;
    overflow-y: auto;
}

.download-item {
    transition: all 0.3s ease;
}

.download-link {
    display: block;
    padding: 1rem;
    border-radius: 0.5rem;
    color: inherit;
    transition: all 0.3s ease;
}

.download-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    text-decoration: none;
}

.download-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.download-content h6 {
    font-weight: 600;
    color: var(--dark-color);
}

/* Calendar Styles */
.calendar-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.calendar-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile calendar headers */
@media (max-width: 768px) {
    .calendar-day-header {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.3rem !important;
        font-weight: 700 !important;
    }
}

@media (max-width: 576px) {
    .calendar-day-header {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.2rem !important;
        font-weight: 700 !important;
    }
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-week {
    border-bottom: 1px solid #dee2e6;
}

.calendar-week:last-child {
    border-bottom: none;
}

.calendar-day {
    min-height: 120px;
    border-right: 1px solid #dee2e6;
    padding: 0.5rem;
    background: white;
    position: relative;
    overflow: hidden;
}

.calendar-day:last-child {
    border-right: none;
}

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

.day-number {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.day-schedules {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Default schedule item (for admin) */
.schedule-item {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.2;
    position: relative;
}

/* Public calendar specific styling - softer colors */
.calendar-container .schedule-item {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    color: var(--dark-color);
    border: 1px solid #a0aec0;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-container .lunch-shift {
    background-color: #f0fdfa !important;
    border: 1px solid #38b2ac;
    color: #234e52 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-container .dinner-shift {
    background-color: #fffaf0 !important;
    border: 1px solid #ed8936;
    color: #744210 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.schedule-item.sling-synced {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sling-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: rgba(255, 255, 255, 0.9);
    color: #28a745;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    border: 1px solid #28a745;
}

.vendor-name {
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.schedule-time {
    font-size: 0.7rem;
    opacity: 0.9;
}

.schedule-notes {
    font-size: 0.65rem;
    opacity: 0.8;
    margin-top: 0.1rem;
}

.no-schedule {
    padding: 0.5rem;
    text-align: center;
    color: var(--secondary-color);
}

/* Schedule Navigation */
.calendar-nav .card {
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.schedule-header h1 {
    margin-bottom: 0.5rem;
}

.schedule-legend {
    margin-top: 2rem;
}

.schedule-legend .card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: var(--shadow);
}

/* Ensure proper column order - Monthly Schedule on left, Onboarding on right */
.row {
    display: flex;
    flex-direction: row;
}

.col-lg-6:first-child {
    order: 1 !important;
}

.col-lg-6:nth-child(2) {
    order: 2 !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        margin: 1rem;
        border-radius: 0.5rem;
    }
    
    .hero-logo {
        max-height: 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .title-healthcare {
        font-size: 1.6rem;
    }
    
    .title-foodtruck {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .col-lg-6:first-child {
        order: 1;
    }

    .col-lg-6:last-child {
        order: 2;
    }
    
    .btn-location {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile Calendar Improvements */
    .calendar-day {
        min-height: 140px;
        padding: 0.5rem;
        border: 1px solid #dee2e6;
        margin-bottom: 2px;
    }
    
    
    .day-number {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        color: var(--primary-color);
    }
    
    .schedule-item {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    }
    
    .vendor-name {
        font-size: 0.8rem;
        font-weight: 600;
        line-height: 1.3;
    }
    
    .schedule-time {
        font-size: 0.7rem;
    }
    
    .shift-label {
        font-size: 0.7rem;
        padding: 3px 6px;
        margin-bottom: 4px;
    }
    
    .shift-section {
        margin-bottom: 12px;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
}

/* Extra Small Mobile (Phone) */
@media (max-width: 576px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-section {
        margin: 0.5rem;
    }
    
    .section-card {
        margin-bottom: 1rem;
    }
    
    /* Keep calendar as horizontal grid on mobile */
    
    .calendar-day {
        min-height: 80px;
        padding: 0.3rem;
        border: 1px solid #dee2e6;
        font-size: 0.75rem;
    }
    
    .calendar-day.empty-day {
        background: #f8f9fa;
    }
    
    .calendar-day-header {
        font-size: 0.75rem;
        padding: 0.5rem 0.2rem;
        font-weight: 700;
        text-align: center;
    }
    
    .day-number {
        font-size: 0.8rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
        color: var(--primary-color);
    }
    
    .schedule-item {
        padding: 0.3rem 0.4rem;
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
        border-radius: 0.25rem;
    }
    
    .vendor-name {
        font-size: 0.6rem;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .schedule-time {
        font-size: 0.55rem;
    }
    
    .shift-label {
        font-size: 0.8rem;
        padding: 4px 8px;
        margin-bottom: 6px;
        font-weight: 700;
    }
    
    .shift-section {
        margin-bottom: 1rem;
    }
    
    .no-schedule {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Scrollbar Styling */
.announcements-list::-webkit-scrollbar,
.downloads-list::-webkit-scrollbar {
    width: 6px;
}

.announcements-list::-webkit-scrollbar-track,
.downloads-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.announcements-list::-webkit-scrollbar-thumb,
.downloads-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.announcements-list::-webkit-scrollbar-thumb:hover,
.downloads-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
.btn:focus,
.download-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .calendar-nav,
    .btn,
    .location-selector {
        display: none !important;
    }
    
    .calendar-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .schedule-item {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #ccc;
    }
}

/* Shift styling for multi-vendor support */
.shift-section {
    margin-bottom: 8px;
}

.shift-label {
    font-size: 0.6rem;
    font-weight: bold;
    text-align: center;
    padding: 1px 4px;
    border-radius: 3px;
    margin-bottom: 2px;
}

.lunch-label {
    background-color: #d4edda;
    color: #155724;
}

.dinner-label {
    background-color: #fff3cd;
    color: #856404;
}

/* Default shift styling (for admin) */
.lunch-shift {
    background-color: #e8f5e8 !important;
    border-left: 2px solid #28a745;
    color: #333 !important;
}

.dinner-shift {
    background-color: #fff3cd !important;
    border-left: 2px solid #ffc107;
    color: #333 !important;
}

/* Public calendar shift labels - softer colors */
.calendar-container .lunch-label {
    background-color: #e6fffa;
    color: #234e52;
}

.calendar-container .dinner-label {
    background-color: #fef5e7;
    color: #744210;
}
