/* ============================================================================
   UNIFIED NAVIGATION FOOTER - VeraCita
   ============================================================================
   Consistent navigation pattern across all screens
   Version: 1.0.0
   
   Usage: Place navigation at the bottom of each screen using:
   <div class="vc-navigation-section">
       <div class="vc-navigation-row">...</div>
   </div>
   ============================================================================ */

/* Navigation Section Wrapper */
.vc-navigation-section {
    padding-top: 24px;
    padding-bottom: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;  /* Don't compress the navigation */
    display: flex;  /* Ensure visible */
    flex-direction: column;
}

/* Navigation Row - Main Container */
.vc-navigation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    max-width: 100%;
}

/* ============================================================================
   BACK BUTTON - Left Side
   ============================================================================ */

.vc-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 140px;
    justify-content: center;
}

.vc-btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(-2px);
}

.vc-btn-back:active {
    transform: translateX(0);
}

.vc-btn-back svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.vc-btn-back:hover svg {
    transform: translateX(-2px);
}

/* ============================================================================
   CENTER AREA - Progress Indicator or Spacer
   ============================================================================ */

.vc-navigation-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Progress Indicator (optional) */
.vc-progress-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
}

.vc-progress-dots {
    display: flex;
    gap: 8px;
}

.vc-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    position: relative;
}

.vc-progress-dot.completed {
    background: linear-gradient(135deg, var(--vc-status-supported), #059669);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.vc-progress-dot.active {
    background: linear-gradient(135deg, #4384ff, #7b42ff);
    box-shadow: 0 0 12px rgba(67, 132, 255, 0.5);
    transform: scale(1.1);
}

/* Checkmark inside completed dots */
.vc-progress-dot.completed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 6px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.vc-progress-text {
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

/* ============================================================================
   RIGHT SIDE - Actions Container
   ============================================================================ */

.vc-navigation-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ============================================================================
   SECONDARY BUTTON (Optional - for Save Draft, Download, etc.)
   ============================================================================ */

.vc-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: transparent;
    border: 1px solid rgba(67, 132, 255, 0.3);
    border-radius: 12px;
    color: #4384ff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.vc-btn-secondary:hover {
    background: rgba(67, 132, 255, 0.1);
    border-color: rgba(67, 132, 255, 0.5);
    transform: translateY(-1px);
}

.vc-btn-secondary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Green variant for download/success actions */
.vc-btn-secondary.vc-green {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--vc-status-supported);
}

.vc-btn-secondary.vc-green:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.5);
}

/* ============================================================================
   PRIMARY CONTINUE BUTTON - Right Side
   ============================================================================ */

.vc-btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #4384ff 0%, #7b42ff 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(67, 132, 255, 0.35);
    min-width: 160px;
    justify-content: center;
}

.vc-btn-continue:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(67, 132, 255, 0.45);
    background: linear-gradient(135deg, #5b9aff 0%, #8b52ff 100%);
}

.vc-btn-continue:active:not(:disabled) {
    transform: translateY(0);
}

.vc-btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.vc-btn-continue svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.vc-btn-continue:hover:not(:disabled) svg {
    transform: translateX(2px);
}

/* ============================================================================
   SUCCESS/COMPLETE STATE - Green Continue Button
   ============================================================================ */

.vc-btn-continue.vc-success {
    background: linear-gradient(135deg, var(--vc-status-supported) 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.vc-btn-continue.vc-success:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #34d399 0%, var(--vc-status-supported) 100%);
}

/* ============================================================================
   WARNING STATE - Orange Continue Button
   ============================================================================ */

.vc-btn-continue.vc-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.vc-btn-continue.vc-warning:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45);
    background: linear-gradient(135deg, var(--vc-status-partial) 0%, #f59e0b 100%);
}

/* ============================================================================
   LOADING STATE
   ============================================================================ */

.vc-btn-continue.vc-loading {
    pointer-events: none;
    position: relative;
}

.vc-btn-continue.vc-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: vc-spin 0.8s linear infinite;
    right: 16px;
}

@keyframes vc-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 900px) {
    .vc-navigation-section {
        margin-top: 32px;
        padding-top: 24px;
    }
    
    .vc-navigation-row {
        gap: 16px;
    }
    
    .vc-btn-back,
    .vc-btn-continue {
        min-width: 0;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .vc-progress-indicator {
        display: none; /* Hide on tablet */
    }
}

@media (max-width: 640px) {
    .vc-navigation-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .vc-btn-back {
        order: 2;
        flex: 1;
    }
    
    .vc-navigation-center {
        order: 1;
        flex: 100%;
        margin-bottom: 8px;
        display: none; /* Hide progress on mobile */
    }
    
    .vc-navigation-actions {
        order: 3;
        flex: 1;
    }
    
    .vc-btn-continue {
        width: 100%;
    }
    
    .vc-btn-secondary {
        display: none; /* Hide secondary on mobile */
    }
}

@media (max-width: 480px) {
    .vc-navigation-section {
        margin-top: 24px;
        padding-top: 20px;
    }
    
    .vc-navigation-row {
        flex-direction: column;
    }
    
    .vc-btn-back,
    .vc-navigation-actions,
    .vc-btn-continue {
        width: 100%;
    }
    
    .vc-btn-continue {
        order: 1;
        margin-bottom: 8px;
    }
    
    .vc-btn-back {
        order: 2;
    }
}

/* ============================================================================
   LIGHT THEME SUPPORT
   ============================================================================ */

[data-theme="light"] .vc-navigation-section {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .vc-btn-back {
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .vc-btn-back:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .vc-progress-dot {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .vc-progress-text {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .vc-btn-secondary {
    border-color: rgba(67, 132, 255, 0.4);
}

[data-theme="light"] .vc-btn-secondary:hover {
    background: rgba(67, 132, 255, 0.08);
}