/* General Styles */
:root {
    --primary-color: #1867c0;
    --secondary-color: #5CBBF6;
    --accent-color: #4CAF50;
    --error-color: #FF5252;
    --warning-color: #FB8C00;
    --info-color: #2196F3;
    --success-color: #4CAF50;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

/* Ensure navigation icon is visible on mobile */
@media (max-width: 959px) {
    .v-app-bar-nav-icon {
        display: flex !important;
    }
}

/* Hide navigation icon on desktop */
@media (min-width: 960px) {
    .v-app-bar-nav-icon {
        display: none !important;
    }
}

.theme-toggle-icon {
    transition: transform 0.3s ease;
}

.theme-toggle-icon--dark {
    transform: rotate(180deg);
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 32px;
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dashboard-section-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
}

.dashboard-section-title .v-icon {
    margin-right: 8px;
}

.dashboard-section-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.dashboard-section-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Delivery Cards */
.delivery-card:hover {
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Data Values */
.reading-value {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-color);
}

.reading-unit {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
}

.reading-date {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 4px;
}

.dark .reading-unit,
.dark .reading-date {
    color: rgba(255, 255, 255, 0.6);
}

/* FullCalendar Styles */
.main-calendar-container {
    height: 700px;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.main-calendar {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.dashboard-calendar {
    height: 350px;
    width: 100%;
}

/* FullCalendar Event styling */
.fc .fc-event {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.fc .fc-today-button {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.8125rem;
}

/* Make the calendar match Vuetify theme */
.fc th {
    padding: 8px 4px;
    font-weight: 600;
}

.fc-theme-bootstrap5 a:not([href]) {
    color: inherit;
}

/* Today highlight */
.fc .fc-day-today {
    background-color: rgba(var(--v-theme-primary), 0.05) !important;
}

/* Dark mode compatibility */
.dark .fc-theme-bootstrap5 .fc-scrollgrid,
.dark .fc-theme-bootstrap5 .fc-list,
.dark .fc-theme-bootstrap5 th,
.dark .fc-theme-bootstrap5 td {
    border-color: rgba(255, 255, 255, 0.12);
}

.dark .fc-theme-bootstrap5 .fc-scrollgrid,
.dark .fc-theme-bootstrap5 .fc-list,
.dark .fc-theme-bootstrap5 .fc-col-header,
.dark .fc-theme-bootstrap5 .fc-timegrid-body {
    background-color: transparent;
}

.dark .fc .fc-day-today {
    background-color: rgba(var(--v-theme-primary), 0.15) !important;
}

/* Form Styles */
.v-expansion-panels {
    box-shadow: none;
}

/* Responsive Fixes */
@media (max-width: 960px) {
    .v-toolbar-title {
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Accessibility Helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

