/* Accordion Container Styling */
#list-container {
    margin-top: 15px;
}

/* Style the section titles (Months) */
.accordiontitle {
    background-color: transparent;
    color: #1e3c72;
    padding: 15px 5px 8px 5px;
    font-size: 1.15rem;
    font-weight: 800;
    width: 100%;
    text-align: left;
    border-bottom: 2px solid #1e3c72;
    margin-top: 15px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Base style for the accordion buttons (Cards) */
.accordion {
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
    padding: 12px 20px 12px 25px; /* Reduced vertical padding from 18px */
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: all 0.2s ease;
    margin-bottom: 6px; /* Reduced margin from 10px */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    position: relative;
    border-left: 10px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.accordion.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

/* Style the accordion panel */
.panel {
    padding: 0 25px;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 10px; /* Reduced margin from 20px */
    border-left: 10px solid #eee;
}

.panel-content {
    padding: 0; /* Changed from 12px 0 to let assignment containers handle it */
}

/* Status Indicators */
.status-label {
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.status-label i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Status Colors */
.status-future-unfilled {
    border-left-color: #d9534f !important;
    background-color: #fffafa !important;
}
.status-unfilled-label {
    background-color: #d9534f;
    color: white;
}

.status-future-filled {
    border-left-color: #2a5298 !important;
    background-color: #f8fbff !important;
}

.status-unfilled {
    border-left-color: #d9534f !important;
    background-color: #fffafa !important;
}

.status-filled-label {
    background-color: #2a5298;
    color: white;
}

.status-past {
    border-left-color: #999 !important;
    background-color: #f9f9f9 !important;
    opacity: 0.8;
}
.status-past-label {
    background-color: #777;
    color: white;
}

/* Puls-Animation */
@keyframes pulse-urgent {
    0% { box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(217, 83, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 83, 79, 0); }
}

.urgent-pulse {
    animation: pulse-urgent 2s infinite !important;
    outline: 2px solid #d9534f !important;
    outline-offset: -2px;
}

/* Better separation for assignments in list view */
#list-container .assignment-container {
    border-bottom: 1px solid #e9ecef;
    padding: 14px 5px !important;
}

#list-container .assignment-container:last-child {
    border-bottom: none;
}

/* Assignment Header (Role/Position) */
.assignment-role-header {
    display: block;
    margin-bottom: 2px;
}

.assignment-role-header b {
    color: #1e3c72 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.assignment-user {
    color: #333;
    font-size: 1rem;
}

/* Ensure comment section also looks integrated */
.comment-container .form-group {
    border-top: 2px solid #e9ecef !important;
    margin-top: 0 !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

/* Table View Enhancements */
.table {
    border-collapse: separate;
    border-spacing: 0 6px; /* Reduced from 12px */
}

.table tr {
    transition: all 0.2s ease;
}

.table td {
    padding: 12px 15px !important; /* Reduced from 20px */
    border: none !important;
    vertical-align: middle !important;
}

.table tr td:first-child {
    border-left: 10px solid #eee !important;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.table tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.table tr.table-status-unfilled {
    background-color: #fffafa !important;
}
.table tr.table-status-unfilled td:first-child {
    border-left-color: #d9534f !important;
}

.table tr.table-status-filled {
    background-color: #f8fbff !important;
}
.table tr.table-status-filled td:first-child {
    border-left-color: #2a5298 !important;
}

.table tr.table-status-past {
    background-color: #f9f9f9 !important;
}
.table tr.table-status-past td:first-child {
    border-left-color: #999 !important;
}

.table .status-label {
    display: inline-flex;
    margin: 5px 0 0 0;
}

/* Common Components */
.accordion-date {
    font-weight: 800;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 2px;
}

.accordion-desc {
    color: #555;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.accordion-time {
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    background: #1e3c72;
    padding: 2px 8px;
    border-radius: 50px;
    display: inline-block;
}

/* Icon for opening/closing */
.accordion:after {
    content: '\f107';
    font-family: FontAwesome;
    font-size: 18px;
    color: #666;
    transition: transform 0.3s ease;
}

.active:after {
    transform: rotate(180deg);
}
