/* Dashboard specific styles */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    max-width: 1400px;
}

.stat-card {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.4rem;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-up {
    color: var(--success-color);
    background: #DCFCE7;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
}

.trend-neutral {
    color: var(--text-muted);
}

.trend-warning {
    color: var(--error-color);
}

/* Section Containers */
.dashboard-section {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-width: 1400px;
}

.section-card {
    background: white;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.section-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title-wrapper h2 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.view-all-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Request Cards */
.requests-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-item {
    padding: 0.9rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.request-item:hover {
    border-color: var(--primary-color);
    background: #F8FAFC;
}

.request-info h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.request-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.status-tag {
    background: #FFF7ED;
    color: #C2410C;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Activity List */
.activity-list {
    padding: 1rem 1.5rem;
}

.activity-item {
    padding: 1rem 0;
    border-bottom: 1px solid #F1F5F9;
}

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

.activity-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.activity-details {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.activity-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #F8FAFC;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Sidebar Enhancements */
.sidebar {
    background: #F8FAFC;
    /* Light gray background like the screenshot */
}

.nav-link.active {
    background: white;
    box-shadow: var(--shadow-sm);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-section-label {
    padding: 0 0.5rem;
    margin: 1rem 0 0.4rem 0;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.user-card {
    background: white;
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    border: 1px solid var(--border-color);
}

/* Layout adjustments */
.main-content {
    background: #F1F4F9;
}

.app-header {
    background: transparent;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.btn-crea {
    background: #4F46E5;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn-crea:hover {
    background: #4338CA;
}

/* Modal Warnings for Aspect Ratio */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Dark overlay */
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-warning {
    background: white;
    width: 90%;
    max-width: 480px;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.modal-warning-icon {
    width: 64px;
    height: 64px;
    background: #FFF7ED;
    color: #EA580C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.modal-warning h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.modal-warning p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-modal-cancel {
    background: #F1F5F9;
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
}

.btn-modal-cancel:hover {
    background: #E2E8F0;
}

.btn-modal-proceed {
    background: #EA580C;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    flex: 1;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.2);
    transition: all 0.2s;
}

.btn-modal-proceed:hover {
    background: #D9480F;
}