/* Family Assistant Public Styles */

.fa-frontend-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dashboard Header */
.fa-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.fa-dashboard-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.fa-dashboard-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Gesamtguthaben Card */
.fa-total-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.fa-balance-info h2 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.fa-balance-amount {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
}

.fa-balance-amount.positive {
    color: #2ecc71;
}

.fa-balance-amount.negative {
    color: #e74c3c;
}

.fa-balance-actions .fa-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.fa-balance-actions .fa-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Konten-Übersicht */
.fa-accounts-overview {
    margin-bottom: 40px;
}

.fa-accounts-overview h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.fa-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.fa-account-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fa-account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.fa-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fa-account-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.fa-account-type {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

.fa-account-details {
    margin-bottom: 20px;
}

.fa-iban {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    font-family: monospace;
}

.fa-balance {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 10px 0;
}

.fa-balance.positive {
    color: #27ae60;
}

.fa-balance.negative {
    color: #e74c3c;
}

.fa-last-sync {
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 0;
}

.fa-account-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.fa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    justify-content: center;
}

.fa-btn-primary {
    background: #3498db;
    color: white;
}

.fa-btn-primary:hover {
    background: #2980b9;
    color: white;
}

.fa-btn-secondary {
    background: #95a5a6;
    color: white;
}

.fa-btn-secondary:hover {
    background: #7f8c8d;
    color: white;
}

.fa-btn-outline {
    background: transparent;
    color: #3498db;
    border: 1px solid #3498db;
}

.fa-btn-outline:hover {
    background: #3498db;
    color: white;
}

.fa-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Monatliche Übersicht */
.fa-monthly-overview {
    margin-bottom: 40px;
}

.fa-monthly-overview h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.fa-monthly-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.fa-stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid;
}

.fa-stat-card.fa-income {
    border-top-color: #27ae60;
}

.fa-stat-card.fa-expenses {
    border-top-color: #e74c3c;
}

.fa-stat-card.fa-balance {
    border-top-color: #3498db;
}

.fa-stat-card h3 {
    margin: 0 0 15px 0;
    color: #7f8c8d;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.fa-stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.fa-stat-value.positive {
    color: #27ae60;
}

.fa-stat-value.negative {
    color: #e74c3c;
}

/* Kategorien-Übersicht */
.fa-categories-overview {
    margin-bottom: 40px;
}

.fa-categories-overview h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 10px;
}

.fa-categories-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fa-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ecf0f1;
}

.fa-category-item:last-child {
    border-bottom: none;
}

.fa-category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fa-category-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.fa-category-name {
    font-weight: 500;
    color: #2c3e50;
}

.fa-category-amount {
    font-weight: bold;
    font-size: 1.1rem;
}

.fa-category-amount.negative {
    color: #e74c3c;
}

/* Schnellaktionen */
.fa-quick-actions {
    margin-bottom: 40px;
}

.fa-quick-actions h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #9b59b6;
    padding-bottom: 10px;
}

.fa-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.fa-action-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.fa-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.fa-action-card .dashicons {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.fa-action-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.fa-action-card p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* KI-Empfehlungen */
.fa-ai-recommendations {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.fa-ai-recommendations h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
}

.fa-recommendations-content {
    position: relative;
}

.fa-loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.fa-loading .spinner {
    float: none;
    margin-right: 8px;
}

.fa-recommendation-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
    white-space: pre-wrap;
    line-height: 1.6;
    color: #495057;
}

.fa-error {
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #fecaca;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fa-frontend-dashboard {
        padding: 15px;
    }
    
    .fa-dashboard-header h1 {
        font-size: 2rem;
    }
    
    .fa-total-balance-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .fa-balance-amount {
        font-size: 2.5rem;
    }
    
    .fa-accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .fa-monthly-stats {
        grid-template-columns: 1fr;
    }
    
    .fa-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .fa-account-actions {
        flex-direction: column;
    }
    
    .fa-account-actions .fa-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .fa-dashboard-header h1 {
        font-size: 1.8rem;
    }
    
    .fa-balance-amount {
        font-size: 2rem;
    }
    
    .fa-stat-value {
        font-size: 1.5rem;
    }
    
    .fa-account-card {
        padding: 15px;
    }
    
    .fa-action-card {
        padding: 20px;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
