/* Education Page Styles */

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.gradient-bg {
    background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.mood-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Tab Styles */
.tab-btn {
    transition: all 0.3s ease;
}

.tab-content {
    transition: opacity 0.3s ease;
}

/* Table Styles */
table {
    border-collapse: separate;
    border-spacing: 0;
}

table thead th {
    position: relative;
}

table tbody tr {
    transition: all 0.3s ease;
}

table tbody tr:hover {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .fade-in h1 {
        font-size: 3rem;
    }
    
    .mood-card {
        margin-bottom: 1rem;
    }
    
    .tab-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Mood Details Styles */
#mood-details {
    transition: all 0.3s ease;
}

#mood-details.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

/* Tag Styles */
.nutrient-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.125rem;
}

.food-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin: 0.125rem;
}
