/* Application Status Page Mobile Optimization */

/* Desktop and Mobile - Base Improvements */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
    padding: 0 0.5rem;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: bold;
    font-size: 1rem;
}

.step.completed .step-icon {
    background: #10B981;
    color: white;
}

.step.active .step-icon {
    background: #3B82F6;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.3;
}

.step.completed .step-label,
.step.active .step-label {
    color: #111;
    font-weight: 600;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    
    /* Container spacing - match navbar width */
    .container,
    .container.mt-4 {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0.5rem !important;
        padding: 0 1rem !important;
    }
    
    /* Ensure no overflow */
    body {
        overflow-x: hidden !important;
    }
    
    .main-content {
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Card improvements */
    .card {
        margin-bottom: 1rem !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .card-header {
        padding: 1rem !important;
        border-radius: 0.75rem 0.75rem 0 0 !important;
    }
    
    .card-header.bg-primary {
        background-color: var(--primary-color) !important;
    }
    
    .card-header h4,
    .card-header h5 {
        font-size: 1.125rem !important;
        margin: 0 !important;
        font-weight: 600 !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    /* Progress steps mobile */
    .progress-steps {
        margin: 1.5rem 0 !important;
        padding: 0 !important;
    }
    
    .step {
        flex: 1;
        min-width: 0;
    }
    
    .step-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.875rem !important;
        margin-bottom: 0.375rem !important;
    }
    
    .step-label {
        font-size: 0.6875rem !important;
        line-height: 1.2 !important;
        padding: 0 0.125rem !important;
        word-wrap: break-word !important;
    }
    
    .progress-steps::before {
        top: 18px !important;
    }
    
    /* Alert improvements */
    .alert {
        padding: 1rem !important;
        border-radius: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .alert h5 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .alert p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .alert .btn {
        margin-top: 0.5rem !important;
        width: 100% !important;
    }
    
    /* Badge improvements */
    .badge {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.625rem !important;
        border-radius: 0.375rem !important;
        font-weight: 600 !important;
    }
    
    /* Room and Application Details */
    .card-body .row {
        margin: 0 !important;
    }
    
    .card-body .col-md-6 {
        padding: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    .card-body p {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .card-body p strong {
        display: inline-block;
        min-width: 120px;
        color: var(--text-secondary);
        font-weight: 600;
    }
    
    /* Payment History Table */
    .table-responsive {
        margin: 0 -1rem !important;
        padding: 0 1rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .table {
        min-width: 600px !important;
        margin-bottom: 0 !important;
    }
    
    .table thead {
        background-color: #ffc107 !important;
    }
    
    .table thead th {
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
        padding: 0.75rem 0.5rem !important;
        white-space: nowrap !important;
        border: none !important;
    }
    
    .table tbody td {
        font-size: 0.8125rem !important;
        padding: 0.75rem 0.5rem !important;
        vertical-align: middle !important;
    }
    
    .table tbody td small {
        font-size: 0.75rem !important;
        display: block !important;
        margin-top: 0.25rem !important;
    }
    
    /* Action buttons */
    .d-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-top: 1.5rem !important;
    }
    
    .d-grid .btn {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        border-radius: 0.5rem !important;
    }
    
    .btn-danger {
        order: 2 !important;
    }
    
    .btn-secondary {
        order: 1 !important;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8125rem !important;
        padding: 0.5rem 0 !important;
        margin-bottom: 1rem !important;
        background-color: transparent !important;
    }
    
    .breadcrumb-item {
        color: var(--text-secondary) !important;
    }
    
    .breadcrumb-item a {
        color: var(--primary-color) !important;
        text-decoration: none !important;
    }
    
    /* Nested alerts */
    .alert .alert {
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        padding: 0.75rem !important;
    }
    
    /* Column layout fix */
    .col-lg-8 {
        padding: 0 !important;
    }
    
    /* Card spacing */
    .card.mb-3 {
        margin-bottom: 1rem !important;
    }
    
    /* Shadow adjustments */
    .card.shadow-sm {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
}

