/* Brand Colors */
:root {
    --brand-color: #D6000D;
    --brand-light: #ff1a1a;
    --brand-dark: #990009;
}

/* Custom Tailwind Classes */
.bg-brand { background-color: var(--brand-color); }
.bg-brand-light { background-color: var(--brand-light); }
.bg-brand-dark { background-color: var(--brand-dark); }
.text-brand { color: var(--brand-color); }
.text-brand-light { color: var(--brand-light); }
.hover\:bg-brand-dark:hover { background-color: var(--brand-dark); }
.hover\:text-brand-light:hover { color: var(--brand-light); }

/* Calendar Styling */
.calendar-day {
    min-height: 120px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.calendar-day:hover {
    background-color: #f9fafb;
}

.calendar-day.selected {
    box-shadow: 0 0 0 2px #D6000D;
}

.calendar-day.empty {
    background-color: #f9fafb;
    cursor: default;
}

/* Day Header Styling */
.day-header {
    padding: 0.5rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-number {
    font-size: 0.875rem;
}

.assessment-count {
    font-size: 0.75rem;
    color: #666;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
}

/* Assessment Preview Styling */
.assessment-preview {
    padding: 0.5rem;
    font-size: 0.75rem;
}

.assessment-item {
    margin-bottom: 0.25rem;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-assessments {
    color: #6b7280;
    font-style: italic;
}

/* Assessment Card Styling */
.assessment-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--brand-color);
}

.assessment-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.assessment-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

.assessment-card:hover .assessment-actions {
    opacity: 1;
}

/* Form Elements */
.form-checkbox:checked {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.visible {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    max-width: 32rem;
    width: 100%;
    margin: 1rem;
}

/* Button Styles */
button.btn-brand {
    background-color: var(--brand-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

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

/* Header Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    max-height: 60px;
    width: auto;
}

/* Footer Styling */
footer {
    margin-top: auto;
}

footer a {
    color: #f3f4f6;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--brand-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
    }

    .assessment-preview {
        display: none;
    }

    .day-header {
        padding: 0.25rem;
    }

    .logo-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Print Styles */
@media print {
    header, footer, .controls, .btn-brand {
        display: none !important;
    }

    .calendar-day {
        break-inside: avoid;
        border: 1px solid #000;
    }

    .assessment-preview {
        display: block !important;
    }

    body {
        font-size: 12pt;
    }

    .assessment-card {
        break-inside: avoid;
        border: 1px solid #000;
    }
}