/* General Body Styling */
body {
    background-color: #f8f9fa;
    font-family: 'Roboto', sans-serif;
}

/* Header Styling */
#month-year-header {
    min-width: 200px;
    text-align: center;
}

/* Calendar Grid Layout */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

/* Day of the Week Headers */
.day-headers {
    margin-bottom: 8px;
}
.day-header {
    text-align: center;
    font-weight: 700;
    color: #6c757d;
    padding: 0.5rem 0;
}

/* Individual Date Card Styling */
.date-card {
    position: relative; /* Needed for positioning child elements */
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 10px;
    min-height: 200px; /* Increased height for new fields */
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.date-card:hover {
    background-color: #C8D6D9;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Styling for dates not in the current month */
.other-month {
    background-color: #f8f9fa;
    opacity: 0.6;
}
.other-month .date-number {
    color: #adb5bd;
}

/* Highlight for Today's Date */
.today {
    background-color: #e9f5ff;
    border: 2px solid #0d6efd;
}

/* Large Date Number */
.date-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #343a40;
}

/* Input sections within the card */
.card-section {
    margin-top: auto; /* Pushes content to the bottom */
}
.card-section label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    margin-bottom: 2px;
}
.card-section .form-control {
    font-size: 0.9rem;
}

/* Ticket inputs layout */
.ticket-inputs {
    display: flex;
    gap: 8px;
}

/* --- NEW: Input Field Background Colors --- */
.pending-input {
    background-color: rgb(255, 255, 117);
}
.pending-input:focus {
    background-color: rgb(255, 255, 117);
    border-color: #e6e600;
    box-shadow: 0 0 0 0.25rem rgba(220, 220, 0, 0.25);
}

.resolved-input {
    background-color: rgb(217, 255, 173);
}
.resolved-input:focus {
    background-color: rgb(217, 255, 173);
    border-color: #ace673;
    box-shadow: 0 0 0 0.25rem rgba(173, 230, 73, 0.25);
}
/* --- END NEW --- */


/* Call Counter Styling */
.call-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.call-count {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 10px;
}

/* Hover-activated Copy Button */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    cursor: pointer;
    color: #6c757d;
    font-size: 1.1rem;
}
.date-card:hover .copy-btn {
    opacity: 1;
}
.copy-btn:hover {
    color: #0d6efd;
}

/* "Copied!" Feedback Message */
.copy-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(25, 135, 84, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 15px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}
.copy-feedback.show {
    opacity: 1;
    visibility: visible;
}


/* Print-Friendly Styles */
@media print {
    body { background-color: #fff; }
    header, #print-btn, .copy-btn { display: none !important; }
    .container { max-width: 100%; margin: 0; padding: 0; }
    .calendar-grid { gap: 2px; }
    .date-card { border: 1px solid #ccc; box-shadow: none; min-height: 140px; page-break-inside: avoid; }
    .other-month { background-color: #eee !important; }
    .today { border: 2px solid #333; background-color: #f0f0f0 !important; }
    input.form-control { border: none; background: transparent; font-weight: bold; }
    .pending-input { background-color: rgb(255, 255, 117) !important; } /* Ensure colors print */
    .resolved-input { background-color: rgb(217, 255, 173) !important; } /* Ensure colors print */
}