/* Birthday Calculator Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Card Styling */
.card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-header {
    font-weight: 600;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Form Styling */
.form-control:focus, .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

.input-group-text {
    background-color: #f8f9fa;
}

/* Results Styling */
#resultsSection {
    animation: fadeIn 0.5s ease-in-out;
}

.next-birthday-card {
    background-color: #f0f7ff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.countdown-title {
    color: #0d6efd;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.countdown-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #0d6efd;
    margin: 15px 0;
}

.next-birthday-date {
    font-size: 1.2rem;
    color: #6c757d;
}

.next-birthday-age {
    font-weight: 600;
    color: #198754;
}

.birth-info-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Milestone Birthdays Table */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Sidebar Styling */
.how-to-list li, .feature-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.feature-list {
    list-style-type: none;
    padding-left: 0;
}

.list-group-item-action:hover {
    background-color: #f0f7ff;
}

/* Share Section */
#shareSection {
    animation: fadeIn 0.5s ease-in-out;
}

/* Fun Facts Section */
#birthdayFacts {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.fact-item {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #0d6efd;
    background-color: white;
    border-radius: 0 8px 8px 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flatpickr Customization */
.flatpickr-calendar {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.flatpickr-day.selected {
    background: #0d6efd;
    border-color: #0d6efd;
}

.flatpickr-day.selected:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .next-birthday-card, .birth-info-card {
        margin-bottom: 20px;
    }
}

/* Print Styles */
@media print {
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6;
    }
    
    .btn, .breadcrumb, footer {
        display: none !important;
    }
    
    #resultsSection {
        page-break-inside: avoid;
    }
}
