/* =============================================
   IMPORTANT DATES MODULE STYLES
   ============================================= */

.important-dates-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.important-dates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.important-dates-header .panel-title {
    margin-bottom: 0;
    color: #1a1a1a;
}

.important-dates-header .panel-title i {
    color: #1a1a1a;
}

.important-date-add-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.important-date-add-btn:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.85);
}

.important-dates-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Important Date Item */
.important-date-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    gap: 12px;
    transition: all 0.3s ease;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.important-date-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.important-date-item.is-today {
    background: rgba(16, 185, 129, 0.3);
    border-left: 4px solid #10B981;
}

.important-date-item.is-this-week {
    background: rgba(245, 158, 11, 0.2);
}

/* Category Icons */
.date-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.date-category-icon.birthday {
    background: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
}

.date-category-icon.subscription {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.date-category-icon.maintenance {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.date-category-icon.reminder {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

/* Date Display */
.date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.date-display .date-day {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
    color: #1a1a1a;
}

.date-display .date-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

/* Date Content */
.date-content {
    flex: 1;
    min-width: 0;
}

.date-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
    margin-bottom: 2px;
}

.date-countdown {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.date-countdown.today {
    color: #059669;
    font-weight: 600;
}

.date-countdown.soon {
    color: #D97706;
    font-weight: 500;
}

.date-countdown.normal {
    color: rgba(0, 0, 0, 0.5);
}

/* Date Category Badge */
.date-category-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-category-badge.birthday {
    background: rgba(236, 72, 153, 0.2);
    color: #DB2777;
}

.date-category-badge.subscription {
    background: rgba(139, 92, 246, 0.2);
    color: #7C3AED;
}

.date-category-badge.maintenance {
    background: rgba(245, 158, 11, 0.2);
    color: #D97706;
}

.date-category-badge.reminder {
    background: rgba(59, 130, 246, 0.2);
    color: #2563EB;
}

/* Date Actions */
.date-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.important-date-item:hover .date-actions {
    opacity: 1;
}

.date-edit,
.date-delete {
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.date-edit:hover {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
}

.date-delete:hover {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.1);
}

/* Empty State */
.important-dates-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: 40px 20px;
}

.important-dates-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.important-dates-empty p {
    font-size: 0.9rem;
    margin: 0;
}

/* =============================================
   IMPORTANT DATES MODAL
   ============================================= */
#importantDateModal .modal-header h4 i {
    color: #EC4899;
}

#editImportantDateModal .modal-header h4 i {
    color: #3B82F6;
}

.date-input-row {
    display: flex;
    gap: 10px;
}

.date-input-row .form-group {
    flex: 1;
}

.date-input-row select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 15px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.date-input-row select:focus {
    border-color: #EC4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
}

.date-input-row select option {
    background: #1e293b;
    color: white;
}

/* Category Selection */
.category-select-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.category-select-btn {
    flex: 1;
    min-width: calc(50% - 4px);
    padding: 10px 12px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.category-select-btn.birthday {
    background: rgba(236, 72, 153, 0.15);
    color: #EC4899;
}

.category-select-btn.birthday:hover,
.category-select-btn.birthday.active {
    background: #EC4899;
    color: white;
    border-color: #EC4899;
}

.category-select-btn.subscription {
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
}

.category-select-btn.subscription:hover,
.category-select-btn.subscription.active {
    background: #8B5CF6;
    color: white;
    border-color: #8B5CF6;
}

.category-select-btn.maintenance {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.category-select-btn.maintenance:hover,
.category-select-btn.maintenance.active {
    background: #F59E0B;
    color: white;
    border-color: #F59E0B;
}

.category-select-btn.reminder {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.category-select-btn.reminder:hover,
.category-select-btn.reminder.active {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

/* Upcoming Highlight */
.upcoming-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-left: 5px;
}

/* Scrollbar */
.important-dates-list::-webkit-scrollbar {
    width: 6px;
}

.important-dates-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.important-dates-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
}

.important-dates-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .important-date-item {
        padding: 10px 12px;
    }
    
    .date-category-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .date-display {
        min-width: 45px;
        padding: 5px 8px;
    }
    
    .date-display .date-day {
        font-size: 1rem;
    }
    
    .date-actions {
        opacity: 1;
    }
    
    .category-select-btn {
        min-width: 100%;
    }
}
