/* MultiBirthdayTracker.css - Calculator-specific styles only */
/* DO NOT redefine global classes: .glass-card, .form-input, .btn-custom, .btn-sponsor */
/* Reference: GLOBAL_CSS_CLASSES.md */

/* ========================================
   Input Label Styles (calculator-specific)
   ======================================== */

.birthday-input-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.birthday-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    font-size: 0.75rem;
    cursor: help;
    position: relative;
}

.birthday-tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 5px;
}

/* ========================================
   Date Selector Styles
   ======================================== */

.birthday-date-selector {
    display: flex;
    gap: 10px;
}

.birthday-date-selector .form-input {
    flex: 1;
}

/* ========================================
   Birthday List Styles
   ======================================== */

.birthday-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.birthday-list::-webkit-scrollbar {
    width: 6px;
}

.birthday-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.birthday-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.birthday-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* ========================================
   Birthday Item Styles
   ======================================== */

.birthday-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
}

.birthday-item:hover {
    transform: translateX(5px);
    border-color: rgba(102, 126, 234, 0.2);
}

/* Urgency colors */
.birthday-item.urgency-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.08) 100%);
    border-left: 4px solid #ef4444;
}

.birthday-item.urgency-soon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.08) 100%);
    border-left: 4px solid #f59e0b;
}

.birthday-item.urgency-normal {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.08) 0%, rgba(56, 178, 172, 0.05) 100%);
    border-left: 4px solid #48bb78;
}

.birthday-item.urgency-today {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid #667eea;
    animation: birthdayPulse 2s infinite;
}

@keyframes birthdayPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
}

/* ========================================
   Birthday Item Content
   ======================================== */

.birthday-item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
    background: rgba(102, 126, 234, 0.1);
}

.birthday-item.urgency-critical .birthday-item-avatar {
    background: rgba(239, 68, 68, 0.15);
}

.birthday-item.urgency-soon .birthday-item-avatar {
    background: rgba(245, 158, 11, 0.15);
}

.birthday-item.urgency-normal .birthday-item-avatar {
    background: rgba(72, 187, 120, 0.15);
}

.birthday-item.urgency-today .birthday-item-avatar {
    background: rgba(102, 126, 234, 0.2);
}

.birthday-item-content {
    flex: 1;
    min-width: 0;
}

.birthday-item-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.birthday-item-group {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.birthday-item-age {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    font-weight: 500;
}

.birthday-item-date {
    font-size: 0.9rem;
    color: #64748b;
}

/* ========================================
   Birthday Item Status
   ======================================== */

.birthday-item-status {
    text-align: right;
    margin-left: 15px;
    flex-shrink: 0;
}

.birthday-item-countdown {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.birthday-item.urgency-critical .birthday-item-countdown {
    color: #ef4444;
}

.birthday-item.urgency-soon .birthday-item-countdown {
    color: #f59e0b;
}

.birthday-item.urgency-normal .birthday-item-countdown {
    color: #48bb78;
}

.birthday-item.urgency-today .birthday-item-countdown {
    color: #667eea;
    font-size: 0.95rem;
}

/* ========================================
   Progress Bar
   ======================================== */

.birthday-progress-container {
    width: 100px;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-left: auto;
}

.birthday-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.birthday-item.urgency-critical .birthday-progress-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.birthday-item.urgency-soon .birthday-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.birthday-item.urgency-normal .birthday-progress-bar {
    background: linear-gradient(90deg, #48bb78, #38b2ac);
}

.birthday-item.urgency-today .birthday-progress-bar {
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 100% !important;
}

/* ========================================
   Birthday Item Actions
   ======================================== */

.birthday-item-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.birthday-item:hover .birthday-item-actions {
    opacity: 1;
}

.birthday-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.birthday-action-btn.edit {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.birthday-action-btn.edit:hover {
    background: #667eea;
    color: white;
}

.birthday-action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.birthday-action-btn.delete:hover {
    background: #ef4444;
    color: white;
}

/* ========================================
   Empty State
   ======================================== */

.birthday-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.birthday-empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.birthday-empty-state p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   Statistics Panel
   ======================================== */

.birthday-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.birthday-stat-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.birthday-stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.birthday-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 5px;
}

/* ========================================
   Filter Bar
   ======================================== */

.birthday-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.birthday-filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.birthday-filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.birthday-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.birthday-filter-count {
    margin-left: 5px;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ========================================
   Settings Panel
   ======================================== */

.birthday-settings-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.birthday-settings-option:last-child {
    border-bottom: none;
}

.birthday-settings-label {
    flex: 1;
    font-size: 0.95rem;
    color: #4a5568;
}

.birthday-radio-group {
    display: flex;
    gap: 15px;
}

.birthday-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
}

.birthday-radio-label input[type="radio"] {
    accent-color: #667eea;
}

/* ========================================
   Modal Styles
   ======================================== */

.birthday-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.birthday-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.birthday-modal {
    background: white;
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.birthday-modal-overlay.active .birthday-modal {
    transform: scale(1);
}

.birthday-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.birthday-modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
}

.birthday-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.birthday-modal-close:hover {
    color: #2d3748;
}

.birthday-modal-body {
    margin-bottom: 20px;
}

.birthday-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Delete confirmation specific */
.birthday-delete-warning {
    text-align: center;
    padding: 20px 0;
}

.birthday-delete-icon {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 15px;
}

.birthday-delete-message {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
}

.birthday-delete-name {
    font-weight: 600;
    color: #2d3748;
}

/* ========================================
   Add Person Form
   ======================================== */

.birthday-add-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.birthday-form-row {
    display: flex;
    gap: 10px;
}

.birthday-form-row .form-input {
    flex: 1;
}

/* ========================================
   Group Icons
   ======================================== */

.birthday-group-icon {
    margin-right: 5px;
}

.birthday-group-icon.family::before { content: '👨‍👩‍👧'; }
.birthday-group-icon.friend::before { content: '🤝'; }
.birthday-group-icon.colleague::before { content: '💼'; }
.birthday-group-icon.other::before { content: '🎈'; }

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 991px) {
    .birthday-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .birthday-item {
        flex-wrap: wrap;
        padding: 12px;
    }

    .birthday-item-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 10px;
    }

    .birthday-item-content {
        flex: 1 1 calc(100% - 60px);
    }

    .birthday-item-status {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 10px 0 0 0;
        padding-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .birthday-item-actions {
        opacity: 1;
        margin-left: 0;
    }

    .birthday-progress-container {
        flex: 1;
        max-width: 150px;
    }

    .birthday-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .birthday-filter-btn {
        flex-shrink: 0;
    }

    .birthday-date-selector {
        flex-direction: column;
    }

    .birthday-form-row {
        flex-direction: column;
    }

    .birthday-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .birthday-modal {
        width: 95%;
        padding: 20px;
    }
}
