/**
 * Inline Styles Cleanup
 * This file contains all styles that were previously inline
 * Organized by component and functionality for better maintainability
 */

/* ========================================
   LAYOUT AND POSITIONING UTILITIES
   ======================================== */

.text-center-custom {
    text-align: center;
    flex: 1;
}

.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.flex {
    display: flex !important;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* ========================================
   SPACING UTILITIES
   ======================================== */

.margin-0 {
    margin: 0 !important;
}

.margin-bottom-15 {
    margin-bottom: 15px;
}

.margin-bottom-20 {
    margin-bottom: 20px;
}

.margin-auto-8 {
    margin: 0 auto 8px;
}

.padding-12-32 {
    padding: 12px 32px;
}

.padding-1rem {
    padding: 1rem;
}

.padding-3 {
    padding: 0.75rem;
}

/* ========================================
   COLOR UTILITIES
   ======================================== */

.color-white {
    color: #ffffff !important;
}

.color-primary {
    color: #6366f1 !important;
}

.color-success {
    color: #22c55e !important;
}

.color-danger {
    color: #ef4444 !important;
}

.color-warning {
    color: #f59e0b !important;
}

.color-info {
    color: #3b82f6 !important;
}

.color-muted {
    color: #b0b3b8 !important;
}

.bg-transparent {
    background: transparent !important;
}

/* ========================================
   SIZING UTILITIES
   ======================================== */

.width-32 {
    width: 32px;
}

.width-60 {
    width: 60px;
}

.height-32 {
    height: 32px;
}

.height-4 {
    height: 4px;
}

.height-8 {
    height: 8px;
}

.max-height-300 {
    max-height: 300px;
    overflow-y: auto;
}

/* ========================================
   BORDER AND RADIUS UTILITIES
   ======================================== */

.border-radius-50 {
    border-radius: 50%;
}

.border-radius-6 {
    border-radius: 6px;
}

.border-radius-8 {
    border-radius: 8px;
}

.border-radius-12 {
    border-radius: 12px;
}

.border-top-custom {
    border-top: 1px solid #4c5166;
}

.border-none {
    border: none !important;
}

/* ========================================
   PROGRESS BAR COMPONENTS
   ======================================== */

.progress-custom-4 {
    height: 4px;
}

.progress-custom-8 {
    height: 8px;
}

.progress-bar-primary {
    background-color: #6366f1;
}

.progress-bar-success {
    background-color: #22c55e;
}

.progress-bar-warning {
    background-color: #f59e0b;
}

.progress-bar-info {
    background-color: #3b82f6;
}

/* ========================================
   FONT AND TEXT UTILITIES
   ======================================== */

.font-size-14 {
    font-size: 14px;
}

.font-size-85 {
    font-size: 0.85rem;
}

.font-size-9 {
    font-size: 0.9rem;
}

.font-size-15 {
    font-size: 1.5rem;
}

.font-size-2rem {
    font-size: 2rem;
}

.font-weight-500 {
    font-weight: 500;
}

.font-weight-700 {
    font-weight: 700;
}

.text-decoration-none {
    text-decoration: none !important;
}

/* ========================================
   BREADCRUMB STYLES
   ======================================== */

.breadcrumb-custom {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
    margin-bottom: 15px;
}

.breadcrumb-item-custom {
    font-size: 14px;
}

.breadcrumb-link {
    color: #6366f1;
    text-decoration: none;
}

.breadcrumb-active {
    color: #ffffff;
    font-size: 14px;
}

/* ========================================
   HEADER COMPONENTS
   ======================================== */

.header-title {
    color: #ffffff;
    margin: 0;
}

.header-subtitle {
    color: #b0b3b8;
    margin: 0;
    margin-top: 0.5rem;
}

.header-icon {
    color: #6366f1;
    margin-right: 0.5rem;
}

/* ========================================
   CARD AND CONTAINER COMPONENTS
   ======================================== */

.modal-footer-custom {
    border-top: 1px solid #4c5166;
}

.stats-container {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(16,185,129,0.1));
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.stats-item {
    text-align: center;
}

.stats-value {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.stats-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.stats-success {
    color: #10b981;
    font-size: 1.5rem;
    font-weight: 700;
}

.stats-danger {
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: 700;
}

.stats-warning {
    color: #f59e0b;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ========================================
   ENTERPRISE DASHBOARD COMPONENTS
   ======================================== */

.enterprise-container {
    padding-top: 1rem;
}

.enterprise-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.enterprise-icon {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.chart-section {
    color: #ffffff;
    margin-bottom: 20px;
}

.chart-icon {
    color: #6366f1;
    margin-right: 0.5rem;
}

/* ========================================
   CONTRACTOR MANAGEMENT STYLES
   ======================================== */

.contractor-card {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 6px;
}

.contractor-name {
    color: #ffffff;
    font-weight: 500;
}

.contractor-company {
    color: #b0b3b8;
    font-size: 0.8rem;
}

.contractor-empty-state {
    color: #b0b3b8;
    text-align: center;
    padding: 2rem 0;
}

.contractor-empty-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* ========================================
   ASSESSMENT AND INSIGHTS COMPONENTS
   ======================================== */

.insights-section {
    color: #ffffff;
    margin-bottom: 20px;
}

.insights-icon {
    color: #6366f1;
    margin-right: 0.5rem;
}

.insight-card {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 15px;
}

.insight-success {
    background: rgba(34, 197, 94, 0.1);
}

.insight-danger {
    background: rgba(239, 68, 68, 0.1);
}

.insight-primary {
    background: rgba(99, 102, 241, 0.1);
}

.insight-title {
    margin-bottom: 0.5rem;
}

.insight-value {
    color: #ffffff;
    font-size: 2rem;
    margin: 0;
}

.insight-description {
    color: #b0b3b8;
    font-size: 0.9rem;
}

/* ========================================
   BUTTON AND CONTROL STYLES
   ======================================== */

.btn-custom-success {
    background: #22c55e;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    color: white;
}

.btn-custom-success:hover {
    background: #16a34a;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
    .stats-container {
        padding: 0.5rem;
    }
    
    .stats-value {
        font-size: 1.2rem;
    }
    
    .enterprise-container {
        padding-top: 0.5rem;
    }
}

/* ========================================
   LAYOUT SPECIFIC FIXES
   ======================================== */

.main-content-area {
    min-height: calc(100vh - 56px);
    padding-top: 0px;
}

/* ========================================
   SPECIFIC COMPONENT FIXES
   ======================================== */

/* Progress indicators */
.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-custom {
    flex: 1;
}

/* Step indicators */
.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: bold;
    color: white;
}

.step-indicator.step-primary {
    background: #6366f1;
}

.step-indicator.step-success {
    background: #22c55e;
}

/* Number formatting for large values */
.formatted-number {
    font-variant-numeric: tabular-nums;
}

/* Container fluid padding override */
.container-fluid-custom {
    padding-top: 1rem;
}

/* Assessment cards specific styling */
.assessment-card-custom {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover states for interactive elements */
.assessment-card-custom:hover {
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

/* CSS custom properties for dynamic values */
.progress-dynamic {
    --progress-width: 0%;
    width: var(--progress-width);
}

/* Utility for setting CSS variables from JavaScript */
.css-variable-container {
    --vh: 1vh;
}