/* ===== AGENDA TIMELINE FIXES & IMPROVEMENTS ===== */

/* Fix for overlapping task selection and improved visual feedback */

/* ===== IMPROVED BUTTON STYLING ===== */
.task-card .btn-volunteer-quick,
.task-card .btn-volunteer-login,
.task-card .btn-volunteer-registered {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    transition: all 0.2s ease !important;
    min-height: 20px !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    text-decoration: none !important;
}

.task-card .btn-volunteer-quick:hover,
.task-card .btn-volunteer-login:hover,
.task-card .btn-volunteer-registered:hover {
    background: white !important;
    border-color: rgba(217, 168, 38, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.task-card .btn-volunteer-registered {
    background: rgba(34, 197, 94, 0.9) !important;
    color: white !important;
    border-color: rgba(34, 197, 94, 0.7) !important;
}

.task-card .btn-volunteer-registered:hover {
    background: rgba(34, 197, 94, 1) !important;
    border-color: rgba(34, 197, 94, 1) !important;
}

/* ===== BETTER OVERLAP INDICATORS ===== */
.task-card[data-total-columns="2"]::after {
    content: "⚠️";
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.7rem;
    opacity: 0.8;
    z-index: 10;
}

.task-card[data-total-columns="3"]::after,
.task-card[data-total-columns="4"]::after,
.task-card[data-total-columns="5"]::after {
    content: "⚡";
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.7rem;
    opacity: 0.8;
    color: #dc2626;
    z-index: 10;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.task-card:focus,
.task-card:focus-visible {
    outline: 2px solid rgba(217, 168, 38, 0.7);
    outline-offset: 2px;
}

.task-card .btn-volunteer-quick:focus,
.task-card .btn-volunteer-login:focus,
.task-card .btn-volunteer-registered:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 1px;
}

/* ===== IMPROVED TASK LAYOUT ===== */
.task-volunteer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    gap: 8px;
}

.volunteer-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.volunteer-count {
    font-weight: 700;
    font-size: 0.75rem;
    color: #1f2937;
}

.volunteer-label {
    font-size: 0.65rem;
    color: #4b5563;
}

/* ===== ENHANCED ANIMATIONS ===== */
.task-card {
    animation: task-fade-in 0.3s ease-out;
}

@keyframes task-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-card:hover {
    animation: task-hover 0.2s ease-out forwards;
}

@keyframes task-hover {
    to {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
}

/* ===== LOADING STATES ===== */
.task-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.task-card.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== IMPROVED STATUS INDICATORS ===== */
.status-message,
.status-login-required,
.status-full {
    font-size: 0.6rem !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-align: center !important;
    min-width: 50px !important;
    white-space: nowrap !important;
}

.status-message {
    background: rgba(156, 163, 175, 0.9) !important;
    color: white !important;
}

.status-full {
    background: rgba(239, 68, 68, 0.9) !important;
    color: white !important;
}

.status-login-required {
    background: rgba(243, 244, 246, 0.9) !important;
    color: #6b7280 !important;
    border: 1px solid rgba(209, 213, 219, 0.8) !important;
}

/* ===== TIMELINE IMPROVEMENTS ===== */
.current-time-line-left,
.current-time-line-right {
    border-top: 2px solid #ef4444;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
}

.current-time-line-left::before,
.current-time-line-right::before {
    content: "";
    position: absolute;
    left: -4px;
    top: -4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .task-card .btn-volunteer-quick,
    .task-card .btn-volunteer-login,
    .task-card .btn-volunteer-registered {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
        min-height: 18px !important;
    }
    
    .volunteer-count {
        font-size: 0.7rem;
    }
    
    .volunteer-label {
        font-size: 0.6rem;
    }
    
    .task-card[data-total-columns="2"]::after,
    .task-card[data-total-columns="3"]::after,
    .task-card[data-total-columns="4"]::after,
    .task-card[data-total-columns="5"]::after {
        font-size: 0.6rem;
        top: 2px;
        right: 2px;
    }
}

@media (max-width: 480px) {
    .task-volunteer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .task-card .btn-volunteer-quick,
    .task-card .btn-volunteer-login,
    .task-card .btn-volunteer-registered {
        font-size: 0.55rem !important;
        padding: 2px 4px !important;
        min-height: 16px !important;
    }
}
