/* Estilos generales */
.daey-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.daey-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.daey-header h1 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
}

.daey-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Motivación */
.daey-motivation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.daey-motivation h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.daey-motivation p {
    margin: 0;
    font-style: italic;
    font-size: 16px;
}

/* Dashboard */
.daey-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.daey-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.daey-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.daey-widget-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
}

.daey-widget-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 18px;
}

.daey-widget.income .daey-widget-icon {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
}

.daey-widget.expense .daey-widget-icon {
    background: rgba(245, 101, 101, 0.15);
    color: #f56565;
}

.daey-widget.assets .daey-widget-icon {
    background: rgba(66, 153, 225, 0.15);
    color: #4299e1;
}

.daey-widget.liabilities .daey-widget-icon {
    background: rgba(237, 137, 54, 0.15);
    color: #ed8936;
}

.daey-widget-value {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
    color: #2d3748;
}

.daey-widget-details {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

/* Resumen */
.daey-summary {
    margin-bottom: 30px;
}

.daey-summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
}

.daey-summary-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.daey-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.daey-summary-item:last-child {
    border-bottom: none;
}

.daey-summary-label {
    font-weight: 600;
    color: #4a5568;
}

.daey-summary-value {
    font-weight: 700;
    font-size: 18px;
}

.daey-summary-value.positive {
    color: #48bb78;
}

.daey-summary-value.negative {
    color: #f56565;
}

/* Obligaciones */
.daey-obligations {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 30px;
}

.daey-obligations h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
}

.daey-obligations h3 i {
    margin-right: 10px;
    color: #f56565;
}

.daey-obligation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.daey-obligation-item:last-child {
    border-bottom: none;
}

.daey-obligation-info {
    flex: 1;
}

.daey-obligation-name {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
}

.daey-obligation-date {
    font-size: 14px;
    color: #718096;
}

.daey-obligation-amount {
    font-weight: 700;
    color: #f56565;
    font-size: 16px;
}

/* Secciones */
.daey-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.daey-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
}

.daey-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.daey-section-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 24px;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.daey-section-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.daey-section-content p {
    margin: 0;
    font-size: 14px;
    color: #718096;
}

/* Acciones */
.daey-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.daey-btn {
    display: inline-flex;
    align-items: center;
    background: #667eea;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
}

.daey-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.daey-btn i {
    margin-right: 8px;
}

/* Estados vacíos */
.daey-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.daey-empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.daey-empty-state p {
    margin: 0;
    font-size: 16px;
}

/* Formularios */
.daey-form-group {
    margin-bottom: 20px;
}

.daey-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.daey-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.daey-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Botón secundario */
.daey-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.daey-btn-secondary:hover {
    background: #cbd5e0;
}

/* Listas */
.daey-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 30px;
}

.daey-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.daey-list-item:last-child {
    border-bottom: none;
}

.daey-list-info {
    flex: 1;
}

.daey-list-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.daey-list-details {
    font-size: 14px;
    color: #718096;
}

.daey-list-amount {
    font-weight: 700;
    font-size: 18px;
    color: #2d3748;
}

/* Metas */
.daey-goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.daey-goal-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
}

.daey-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.daey-goal-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.daey-goal-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
}

.daey-goal-progress {
    margin-bottom: 15px;
}

.daey-goal-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.daey-goal-current {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.daey-goal-target {
    font-size: 14px;
    color: #718096;
}

.daey-goal-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    text-align: right;
}

.daey-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.daey-progress-fill {
    height: 100%;
    background: #667eea;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.daey-goal-details {
    font-size: 14px;
    color: #718096;
}

.daey-goal-date {
    display: flex;
    align-items: center;
}

.daey-goal-date i {
    margin-right: 8px;
}

/* Presupuestos */
.daey-budgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.daey-budget-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    position: relative;
}

.daey-budget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #48bb78;
}

.daey-budget-card.warning::before {
    background: #ed8936;
}

.daey-budget-card.danger::before {
    background: #f56565;
}

.daey-budget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.daey-budget-category {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.daey-budget-percentage {
    font-size: 14px;
    font-weight: 600;
}

.daey-budget-card.good .daey-budget-percentage {
    color: #48bb78;
}

.daey-budget-card.warning .daey-budget-percentage {
    color: #ed8936;
}

.daey-budget-card.danger .daey-budget-percentage {
    color: #f56565;
}

.daey-budget-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.daey-budget-progress-bar {
    height: 100%;
    border-radius: 4px;
}

.daey-budget-card.good .daey-budget-progress-bar {
    background: #48bb78;
}

.daey-budget-card.warning .daey-budget-progress-bar {
    background: #ed8936;
}

.daey-budget-card.danger .daey-budget-progress-bar {
    background: #f56565;
}

.daey-budget-amounts {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #718096;
}

/* Responsive */
@media (max-width: 768px) {
    .daey-container {
        padding: 10px;
    }
    
    .daey-header {
        padding: 15px;
    }
    
    .daey-header h1 {
        font-size: 22px;
    }
    
    .daey-dashboard {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .daey-widget {
        padding: 15px;
    }
    
    .daey-widget-value {
        font-size: 20px;
    }
    
    .daey-sections {
        grid-template-columns: 1fr;
    }
    
    .daey-actions {
        flex-direction: column;
    }
    
    .daey-btn {
        width: 100%;
        justify-content: center;
    }
}