/* Zusätzliche CSS für erweiterte Features */

/* Charts & Analytics */
#analyticsChart {
    width: 100% !important;
    height: 300px !important;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 20px 0;
}

/* Feeding Plan Table */
#feedingPlanDisplay table {
    width: 100%;
    border-collapse: collapse;
}

#feedingPlanDisplay th,
#feedingPlanDisplay td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.dark-mode #feedingPlanDisplay th {
    background: #1a5c1a;
    color: #ffffff;
}

.dark-mode #feedingPlanDisplay td {
    color: #ffffff;
    border-bottom-color: #444;
}

#feedingPlanDisplay tr:hover {
    background: #f5f5f5;
}

.dark-mode #feedingPlanDisplay tr:hover {
    background: #333;
}

/* Reminder Info Box */
#reminderInfo {
    margin-top: 15px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.dark-mode #reminderInfo {
    background: #2c2f34;
    border-left-color: #81c784;
}

/* Language Buttons */
.language-buttons {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.language-button {
    flex: 1;
    padding: 10px;
    border: 2px solid #4caf50;
    background: white;
    color: #4caf50;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-button:hover {
    background: #4caf50;
    color: white;
}

.language-button.active {
    background: #4caf50;
    color: white;
}

/* Stats Display */
#statsDisplay {
    margin-top: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #4caf50;
}

.dark-mode .stat-item {
    background: #2c2f34;
    border-left-color: #81c784;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.dark-mode .stat-label {
    color: #ffffff;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #4caf50;
}

.dark-mode .stat-value {
    color: #81c784;
}

/* Feature Section Headers */
.feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4caf50;
}

.feature-icon {
    font-size: 24px;
    margin-right: 10px;
}

/* Split Button */
.btn-split {
    display: flex;
    gap: 5px;
}

.btn-split .btn {
    flex: 1;
    margin: 0;
}

/* Form Sections */
.form-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.dark-mode .form-section {
    background: #2c2f34;
}

/* Summary Box */
.summary-box {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    color: #333;
}

.dark-mode .summary-box {
    background: #1b5e20;
    border-color: #81c784;
    color: #ffffff;
}

/* Info Box */
.info-box {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    color: #333;
}

.dark-mode .info-box {
    background: #01579b;
    border-color: #64b5f6;
    color: #ffffff;
}

/* Warning Box */
.warning-box {
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    color: #333;
}

.dark-mode .warning-box {
    background: #e65100;
    border-color: #ffb74d;
    color: #ffffff;
}

/* Responsive Grid für Stats */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn-split {
        flex-direction: column;
    }

    .btn-split .btn {
        width: 100%;
    }
}

/* Active Section Animation */
.section-enter {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reminder Badge */
.reminder-badge {
    display: inline-block;
    background: #f44336;
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}