/* Dashboard Styles for Docufactu */

.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.main-content {
    background: #f8f9fa;
    min-height: 100vh;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    border-radius: 12px;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.api-key-display {
    font-family: 'Courier New', monospace;
    background: #f1f3f4;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.cert-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-status.valid {
    color: #198754;
}

.cert-status.expiring {
    color: #fd7e14;
}

.cert-status.invalid {
    color: #dc3545;
}

/* Mobile sidebar styles */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

/* Desktop sidebar styles */
@media (min-width: 768px) {
    .sidebar {
        position: static;
        width: auto;
        z-index: auto;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
}

/* Manual Submission Styles */
.manual-linea-desglose-item {
    border-left: 4px solid #007bff;
    margin-bottom: 1rem;
}

.manual-linea-desglose-item .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.manual-linea-desglose-item .card-body {
    padding: 1rem;
}

.form-label .text-danger {
    color: #dc3545;
}

.alert-info i.fas,
.alert-warning i.fas,
.alert-success i.fas {
    margin-right: 0.5rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments for manual submission form */
@media (max-width: 768px) {
    .manual-linea-desglose-item .card-body .row {
        gap: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}