/* Frontend Styles */

.kcg-checklist-frontend {
    max-width: 100%;
}

.checklist-header h2 {
    color: white;
}

.week-display {
    text-align: center;
}

.week-display strong {
    display: block;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.checklist-info {
    font-size: 0.8em;
    opacity: 0.9;
}

.checklist-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.checklist-section {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.checklist-section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.section-title {
    background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 100%);
    color: white;
    padding: 1rem;
    margin: 0;
    text-align: center;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0;
}

.checklist-item {
    padding: 1rem;
    border-bottom: 1px solid var(--wp--preset--color--base);
    transition: all 0.2s ease;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item:hover {
    background-color: #f9f9f9;
}

.checklist-item input[type="checkbox"]:checked ~ .checkbox-custom ~ .item-content {
    opacity: 0.5;
}

.checklist-item input[type="checkbox"]:checked ~ .checkbox-custom ~ .item-content .item-title {
    text-decoration: line-through;
}

.checklist-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    gap: 1rem;
    user-select: none;
}

.checklist-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--wp--preset--color--secondary);
    border-radius: 4px;
    background: white;
    position: relative;
    top: 2px;
    transition: all 0.2s ease;
}

.checklist-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background: var(--wp--preset--color--secondary);
    border-color: var(--wp--preset--color--secondary);
}

.checklist-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.item-content {
    /* flex: 1; */
    display: flex;
    flex-direction: column;
    /* gap: 4px; */
}

.item-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.item-description {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
}

.volunteer-selector {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-left: 32px;
    flex-wrap: wrap;
}

.volunteer-dropdown {
    flex: 1;
    min-width: 120px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    background-color: white;
}

.volunteer-dropdown:focus {
    outline: none;
    border-color: var(--wp--preset--color--secondary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.assign-volunteer {
    padding: 8px 16px;
    background-color: var(--wp--preset--color--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    /* font-size: 13px; */
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.assign-volunteer:hover {
    background-color: #5568d3;
}

.assign-volunteer:active {
    background-color: #445ab9;
}

.assign-volunteer.send-to-elvanto {
    background-color: #4caf50;
}

.assign-volunteer.send-to-elvanto:hover {
    background-color: #45a049;
}

.assign-volunteer.send-to-elvanto:active {
    background-color: #3d8b40;
}

.assign-volunteer.api-assigned {
    background-color: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.7;
}

.assign-volunteer:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.auto-save-notice {
    text-align: center;
    color: #999;
}

.auto-save-status {
    display: inline-block;
    padding: 8px 16px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.6em;
}

.auto-save-status.saving {
    background: #fff3cd;
    color: #856404;
}

.auto-save-status.error {
    background: #f8d7da;
    color: #721c24;
}

.current-assignment {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 8px;
    background: #f0f4ff;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.assignment-label {
    font-weight: 500;
    color: #333;
}

.assignment-name {
    color: var(--wp--preset--color--secondary);
    font-weight: 600;
}

/* Responsive Grid Layout Only */

@media (max-width: 1200px) {
    .checklist-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .checklist-container {
        grid-template-columns: 1fr;
    }
}

