/* Custom Corporate Light-Mode Design System for AutoRMF */

html,
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

a,
.btn-link {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: #1d4ed8;
}

/* Corporate Card Style */
.card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    color: #1e293b;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #0f172a;
}

/* Metric Top Borders (Reference Image Style) */
.card-metric-primary {
    border-top: 4px solid #64748b !important;
}

.card-metric-success {
    border-top: 4px solid #10b981 !important;
}

.card-metric-info {
    border-top: 4px solid #3b82f6 !important;
}

.card-metric-warning {
    border-top: 4px solid #f59e0b !important;
}

.card-metric-danger {
    border-top: 4px solid #ef4444 !important;
}

/* Corporate Buttons */
.btn-primary {
    background-color: #2563eb;
    border: 1px solid #2563eb;
    color: #ffffff;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-outline-primary {
    color: #2563eb;
    border-color: #2563eb;
    background-color: transparent;
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn-outline-primary:hover {
    background-color: #f0f5ff;
    color: #1d4ed8;
}

.btn-success {
    background-color: #10b981;
    border-color: #10b981;
    font-weight: 500;
}

.btn-success:hover {
    background-color: #059669;
}

/* Corporate Table Styling */
.table {
    color: #334155;
    background-color: #ffffff;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.table th {
    background-color: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.table td {
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

/* Compliance Progress Bar */
.progress {
    background-color: #e2e8f0;
    border-radius: 6px;
    height: 16px;
}

.progress-bar {
    font-weight: 600;
    font-size: 0.75rem;
}

.progress-bar.bg-success {
    background-color: #10b981 !important;
}

.progress-bar.bg-info {
    background-color: #3b82f6 !important;
}

.progress-bar.bg-warning {
    background-color: #f59e0b !important;
}

.progress-bar.bg-danger {
    background-color: #ef4444 !important;
}

/* Status Badges */
.badge {
    border-radius: 4px;
    font-weight: 600;
    padding: 0.35em 0.55em;
}

.bg-primary {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe;
}

.bg-success {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0;
}

.bg-info {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe;
}

.bg-warning {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a;
}

.bg-danger {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca;
}

.bg-secondary {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
}

/* Custom Corporate Form Elements */
.form-control,
.form-select {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 6px !important;
    transition: all 0.15s ease-in-out !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
}

option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

label {
    color: #475569 !important;
    font-weight: 500;
}

/* Layout overrides */
.top-row {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.content {
    padding-top: 1.5rem !important;
}