/* ============================================================================
   CREATE PROJECT HOTFIX - Visual Improvements
   ============================================================================

   This file contains quick visual fixes for immediate improvements.
   Load this AFTER create-project-enhanced.css for overrides.

   Issues Fixed:
   1. Section headers more prominent
   2. Better spacing in collapsible sections
   3. Improved visual hierarchy
   4. Better form field spacing

   Version: 1.0
   Date: 2025-12-09
   ============================================================================ */

/* ============================================================================
   SECTION HEADERS - MORE PROMINENT
   ============================================================================ */

/* Override: Make section headers stand out more */
.form-section-header {
    background: linear-gradient(135deg, #E8F2FF 0%, #D6E8FF 100%) !important;
    border-left: 5px solid var(--medtronic-blue-interactive) !important;
    border-bottom: 2px solid var(--medtronic-blue-interactive) !important;
    padding: 18px 24px !important;
    box-shadow: 0 2px 4px rgba(0, 30, 70, 0.08) !important;
}

.form-section-header h5 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--medtronic-blue-primary) !important;
}

.form-section-header:hover {
    background: linear-gradient(135deg, #D6E8FF 0%, #C4DEFF 100%) !important;
    transform: translateX(3px);
}

/* ============================================================================
   COLLAPSIBLE SECTIONS STYLING
   ============================================================================ */

/* Add icon for collapsible sections */
.form-section-header::before {
    content: '▼';
    font-size: 12px;
    margin-right: 12px;
    transition: transform 0.3s ease;
    color: var(--medtronic-blue-interactive);
    font-weight: bold;
}

/* Rotate icon when expanded (if you add collapse functionality later) */
.form-section-header.collapsed::before {
    transform: rotate(-90deg);
}

/* ============================================================================
   FORM FIELD SPACING IMPROVEMENTS
   ============================================================================ */

/* Better spacing between form fields */
.form-section-body .mb-3 {
    margin-bottom: 20px !important;
}

/* Reduce excessive padding in form section body */
.form-section-body {
    padding: 24px !important;
}

/* Better spacing for rows */
.form-section-body .row + .row {
    margin-top: 16px;
}

/* ============================================================================
   GRID LAYOUT OPTIMIZATION - 2 COLUMNS FOR FORM FIELDS
   ============================================================================ */

/* Apply 2-column grid to all form sections (unless specified otherwise) */
.form-section-body .row:not(.single-column) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--spacing-md) !important;
}

/* Individual field columns should span full grid cell */
.form-section-body .row .col-md-6,
.form-section-body .row .col-12 {
    grid-column: span 1;
    max-width: 100%;
}

/* Force single column items to span full width */
.form-section-body .row.single-column,
.form-section-body .row [class*="col-12"]:only-child {
    grid-template-columns: 1fr !important;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 991px) {
    .form-section-body .row {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================================
   COLLAPSIBLE SECTION COMPONENT OVERRIDES
   ============================================================================ */

/* If using CollapsibleSection component, style it consistently */
.collapsible-section {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.collapsible-section-header {
    background: linear-gradient(135deg, #E8F2FF 0%, #D6E8FF 100%);
    border-left: 5px solid var(--medtronic-blue-interactive);
    border-bottom: 2px solid var(--medtronic-blue-interactive);
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.collapsible-section-header:hover {
    background: linear-gradient(135deg, #D6E8FF 0%, #C4DEFF 100%);
    transform: translateX(3px);
}

.collapsible-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--medtronic-blue-primary);
    margin: 0;
}

.collapsible-section-body {
    padding: 24px;
    background-color: white;
}

/* ============================================================================
   PROGRESS INDICATOR - MAKE MORE VISIBLE
   ============================================================================ */

.progress-indicator-enhanced {
    margin-bottom: 24px !important;
    padding: 20px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.progress-label {
    font-size: 15px !important;
    font-weight: 700 !important;
}

.progress-count {
    font-size: 15px !important;
    font-weight: 800 !important;
}

.progress-bar-container {
    height: 10px !important;
    border-radius: 5px !important;
}

.progress-bar-fill {
    border-radius: 5px !important;
}

/* ============================================================================
   METADATA BADGES - BETTER VISIBILITY
   ============================================================================ */

.asset-metadata {
    padding: 16px !important;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%) !important;
    border-left: 4px solid var(--medtronic-blue-interactive) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.metadata-badge {
    background-color: white !important;
    border: 1.5px solid var(--border-color) !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.metadata-badge strong {
    font-weight: 700 !important;
}

/* ============================================================================
   PROJECT TYPE DESCRIPTION - ENHANCED
   ============================================================================ */

.project-type-description {
    padding: 12px 16px !important;
    background: linear-gradient(135deg, rgba(16, 16, 235, 0.08) 0%, rgba(16, 16, 235, 0.04) 100%) !important;
    border-left: 4px solid var(--medtronic-blue-interactive) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* ============================================================================
   FORM CONTROLS - BETTER STYLING
   ============================================================================ */

.form-control,
.form-select,
input[type="text"],
input[type="date"],
input[type="number"],
textarea,
select {
    padding: 10px 14px !important;
    border: 1.5px solid var(--border-color-dark) !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--medtronic-blue-interactive) !important;
    box-shadow: 0 0 0 4px rgba(16, 16, 235, 0.12) !important;
    transform: translateY(-1px);
}

/* ============================================================================
   LABELS - MORE PROMINENT
   ============================================================================ */

label,
.form-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--medtronic-gray-dark) !important;
    margin-bottom: 8px !important;
}

/* ============================================================================
   BUTTONS - ENHANCED
   ============================================================================ */

.btn-primary {
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(16, 16, 235, 0.2) !important;
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(16, 16, 235, 0.3) !important;
}

.btn-secondary,
.btn-outline-secondary {
    padding: 14px 28px !important;
    font-size: 15px !important;
}

/* ============================================================================
   SECTION COMPLETE BADGE - MORE VISIBLE
   ============================================================================ */

.section-complete-badge {
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border: 2px solid var(--status-success) !important;
    background-color: rgba(40, 167, 69, 0.2) !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.15);
}

/* ============================================================================
   SIDEBAR - ALREADY GOOD, SMALL TWEAKS
   ============================================================================ */

.project-overview-sidebar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    border-left-width: 5px !important;
}

.sidebar-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
}

.sidebar-value {
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 1199px) {
    .form-section-header {
        padding: 16px 20px !important;
    }

    .form-section-header h5 {
        font-size: 17px !important;
    }

    .form-section-body {
        padding: 20px !important;
    }
}

@media (max-width: 767px) {
    .form-section-header {
        padding: 14px 16px !important;
    }

    .form-section-header h5 {
        font-size: 16px !important;
    }

    .form-section-body {
        padding: 16px !important;
    }

    .progress-indicator-enhanced {
        padding: 16px !important;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .form-section-header {
        background: #E8F2FF !important;
        border-left: 3px solid #000 !important;
        page-break-inside: avoid;
    }
}
