/* Dashboard Container */
.dashboard-container {
    padding: 20px;
}

.dashboard-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f7;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
}

.status-icon {
    background: #e3f2fd;
    color: #1976d2;
}

.budget-icon {
    background: #e8f5e9;
    color: #43a047;
}

.time-icon {
    background: #fff3e0;
    color: #f57c00;
}

.card-content h4 {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 5px 0;
}

.card-content p {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Status Badge */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pendiente {
    background: #fff3e0;
    color: #f57c00;
}

.status-en_proceso {
    background: #e3f2fd;
    color: #1976d2;
}

.status-completado {
    background: #e8f5e9;
    color: #43a047;
}

/* Progress Cards */
.progress-cards {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.progress-card h4 {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 15px;
}

.progress-bar-container {
    margin-top: 10px;
}

.progress {
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 8px;
    text-align: right;
}

/* Estilos para la sección de progreso */
.progress-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-title i {
    font-size: 1.2rem;
    color: #4B5563;
}

.progress-title h4 {
    margin: 0;
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

.progress-amount {
    font-size: 0.95rem;
    color: #6B7280;
}

.amount-current {
    font-weight: 600;
    color: #374151;
}

.amount-separator {
    margin: 0 5px;
    color: #9CA3AF;
}

.amount-total {
    color: #6B7280;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress {
    flex-grow: 1;
    height: 8px;
    background-color: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-percentage {
    min-width: 45px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: right;
}

/* Estados de la barra de progreso */
.bg-success {
    background-color: #10B981;
}

.bg-warning {
    background-color: #F59E0B;
}

.bg-danger {
    background-color: #EF4444;
}

.progress-percentage.success {
    color: #10B981;
}

.progress-percentage.warning {
    color: #F59E0B;
}

.progress-percentage.danger {
    color: #EF4444;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-item i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

/* Activity Timeline */
.activity-timeline {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f7;
    position: relative;
    margin-left: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.3s ease forwards;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.activity-item:last-child::before {
    height: 50%;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4e73df;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.activity-icon.status { background: #e3f2fd; color: #1976d2; }
.activity-icon.info { background: #e8f5e9; color: #43a047; }
.activity-icon.success { background: #f3e5f5; color: #7b1fa2; }
.activity-icon.warning { background: #fff3e0; color: #f57c00; }

.activity-content {
    flex: 1;
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-left: 52px;
    margin-top: -36px;
}

.activity-text {
    margin: 0;
    color: #374151;
    font-size: 0.875rem;
}

.activity-date {
    font-size: 0.75rem;
    color: #6b7280;
    display: block;
    margin-top: 4px;
}

.no-activity {
    text-align: center;
    color: #64748b;
    padding: 20px;
    font-style: italic;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .activity-content {
        margin-left: 40px;
    }
    
    .activity-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}