:root {
    --brand-orange: #e48a2b;
    --footer-bg: #0a0a0a;
    --footer-fg: #f5f5f5;
    --brand-blue: #33cccc;
    --brand-orange-light: #f5a04a;
    --brand-blue-light: #26c5c5;
    --brand-orange-dark: #c6731f;
    --brand-blue-dark: #33cccc;
    
    /* Make Bootstrap primary match Generate button (brand blue) for action consistency */
    --bs-primary: var(--brand-blue);
    --bs-primary-rgb: 4, 180, 180;

    /* Keep secondary as a neutral gray for outlines */
    --bs-secondary: #6c757d;
    --bs-secondary-rgb: 108, 117, 125;

    /* De-emphasize success greens to avoid neon look; align with brand blue */
    --bs-success: var(--brand-blue);
    --bs-success-rgb: 4, 180, 180;

    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    
    /* Override Bootstrap text and background colors for better branding consistency */
    --bs-body-color: #333;
    --bs-body-color-rgb: 51, 51, 51;
    --bs-secondary-color: #666;
    --bs-secondary-color-rgb: 102, 102, 102;
    --bs-tertiary-color: #999;
    --bs-tertiary-color-rgb: 153, 153, 153;
    --bs-body-bg: #fff;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-secondary-bg: #f8f9fa;
    --bs-secondary-bg-rgb: 248, 249, 250;
    --bs-tertiary-bg: #e9ecef;
    --bs-tertiary-bg-rgb: 233, 236, 239;
    
    /* Subtle success background */
    --bs-success-bg-subtle: #d1f0f0;
    --bs-success-text-emphasis: var(--brand-blue);
    
    /* Align success border/background with brand blue, avoiding neon green */
    --bs-success-bg: var(--brand-blue);
    --bs-success-border-subtle: var(--brand-blue);
}

/* Standardized page action bar for consistent placement */
.page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.redo-onboarding-btn {
    white-space: nowrap;
}

/* Primary actions across app use brand blue, matching both pages.
   Do not force padding/radius/etc. Let Bootstrap defaults render both buttons identically. */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand-blue);
    --bs-btn-border-color: var(--brand-blue);
    --bs-btn-hover-bg: var(--brand-blue-dark);
    --bs-btn-hover-border-color: var(--brand-blue-dark);
    --bs-btn-focus-shadow-rgb: 4, 180, 180;
    --bs-btn-active-bg: var(--brand-blue-dark);
    --bs-btn-active-border-color: var(--brand-blue-dark);
}
/* Ensure Generate Video uses Bootstrap button styling with brand variables */
/* Removed resets that stripped Bootstrap styles to match Broadcast button */

/* Increase spacing above the Generate Video button to separate it from the accordion */
#generatePrimaryButton {
    margin-top: 1.5rem; /* 24px, consistent with Bootstrap spacing scale */
}

#videoForm button[type="submit"]:hover {
    background-color: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
}

#videoForm button[type="submit"]:focus {
    box-shadow: 0 0 0 0.25rem rgba(4, 180, 180, 0.25);
}

/* Override accordion button colors to use brand blue */
.accordion-button {
    color: var(--brand-blue);
    background-color: rgba(4, 180, 180, 0.1);
    border: 1px solid var(--brand-blue);
    transition: all 0.3s ease;
    font-weight: 600;
}

.accordion-button:hover {
    background-color: rgba(4, 180, 180, 0.15);
    border-color: var(--brand-blue-light);
}

.accordion-button:not(.collapsed) {
    color: var(--brand-blue);
    background-color: rgba(4, 180, 180, 0.2);
}

.accordion-button:not(.collapsed):hover {
    background-color: rgba(4, 180, 180, 0.25);
}

.accordion-button:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.25rem rgba(4, 180, 180, 0.25);
    outline: 0;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2304b4b4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.2s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

/* CSS Reset and Base Styles */

/* Import Noto Sans Arabic font for proper Arabic text rendering */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Arabic Language Support Variables */
:root {
    /* Enhanced font stacks with Arabic support */
    --font-primary-latin: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-primary-arabic: "Noto Sans Arabic", "Arial Unicode MS", "Tahoma", sans-serif;
    --font-primary: var(--font-primary-latin);
    
    /* Arabic-specific variables */
    --arabic-line-height: 1.8;
    --arabic-letter-spacing: 0.01em;
    
    /* RTL support variables */
    --direction: ltr;
    --text-align: left;
    --margin-start: 0;
    --margin-end: auto;
    --padding-start: 0;
    --padding-end: 0;
}

/* Arabic language specific styles */
html[lang="ar"],
html[lang="ar"] body,
.arabic-language {
    --font-primary: var(--font-primary-arabic);
    --direction: rtl;
    --text-align: right;
    --margin-start: auto;
    --margin-end: 0;
    --padding-start: 0;
    --padding-end: 0;
    
    direction: rtl;
    text-align: right;
    font-family: var(--font-primary-arabic);
    line-height: var(--arabic-line-height);
    letter-spacing: var(--arabic-letter-spacing);
}

/* Establish a flex column layout so the footer sticks to the bottom on short pages */
html, body {
    height: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    direction: var(--direction);
    text-align: var(--text-align);
}

/* Ensure the main content area (container after navbar) can grow and push the footer down */
main,
.container.mt-5 {
    flex: 1 0 auto;
}

/* Footer should not flex-grow; it stays at the bottom after content */
.global-footer {
    flex-shrink: 0;
}

/* Onboarding Modal Styles */
.onboarding-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* hidden by default; toggled to flex when shown */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: auto; /* allow page scroll when modal content exceeds viewport */
}

.onboarding-container {
    background-color: var(--bs-body-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    /* Increase consistent height slightly */
    height: min(620px, 92vh);
    min-height: 580px;
    max-height: 92vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Header with Skip/Close Buttons */
.onboarding-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bs-border-color);
}

.skip-button, .close-button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--bs-secondary-color);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.skip-button:hover, .close-button:hover {
    background-color: var(--bs-tertiary-bg);
}

.close-button {
    font-size: 20px;
    font-weight: bold;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    gap: 10px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bs-secondary-bg);
    cursor: pointer;
    transition: background-color 0.3s;
}

.progress-dot.active {
    background-color: var(--brand-orange);
}

/* Step Content */
.onboarding-steps {
    flex: 1;
    overflow-y: auto;
    padding: 20px;

    /* Vertically center content within the fixed-height container */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.onboarding-step {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.onboarding-step.active {
    display: flex;
}

.step-visuals {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
}

.visual-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.icon {
    width: 80px;
    height: 80px;
    background-color: var(--bs-tertiary-bg);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-size: 36px;
    overflow: hidden;             /* contain any child overflow (like logos) */
}

.icon-text {
    font-size: 14px;
    color: var(--bs-secondary-color);
}

.step-title {
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0;
    color: var(--bs-heading-color);
}

.step-description {
    font-size: 16px;
    color: var(--bs-secondary-color);
    max-width: 600px;
    margin: 0 auto 20px;
}

/* Partners step specific styles */
.partners-visuals {
    gap: 32px;
}
.partners-card {
    min-width: 180px;
}
.partners-icon {
    background: var(--brand-orange);
    border: 1px solid var(--brand-orange-dark);
    overflow: hidden;            /* ensure logo stays within box */
}
.partners-logo {
    /* max-width: 100%;
    max-height: 110%; */
    object-fit: contain;
    filter: none;
}

/* Fine-tune individual logo scales */
.partners-logo--gsma {
    max-height: 30%;
    max-width: 90%;   /* smaller as requested */
}
.partners-logo--ufone {
    max-height: 100%;   /* larger as requested */
}
.partners-footer-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--bs-tertiary-color);
    font-style: italic;
}

/* Ensure the onboarding steps container has proper scroll behavior */
.onboarding-steps {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-primary) var(--bs-body-bg);
}

/* Form section icons */
.section-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

/* RTL support for section icons */
html[lang="ar"] .section-icon,
.arabic-language .section-icon {
    margin-right: 0;
    margin-left: 10px;
}

/* Noun Project icons */
.noun-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    vertical-align: middle;
}

/* RTL support for noun icons */
html[lang="ar"] .noun-icon,
.arabic-language .noun-icon {
    margin-right: 0;
    margin-left: 10px;
}

/* Placeholder icons - to be replaced with actual Noun Project icons */
.noun-icon-agency {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctext y='20' font-size='20' fill='%23333'%3E%F0%9F%8F%A2%3C/text%3E%3C/svg%3E");
}

.noun-icon-timing {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctext y='20' font-size='20' fill='%23333'%3E%F0%9F%95%B0%3C/text%3E%3C/svg%3E");
}

.noun-icon-additional {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctext y='20' font-size='20' fill='%23333'%3E%E2%84%B9%EF%B8%8F%3C/text%3E%3C/svg%3E");
}

/* Accordion body scrolling */
.accordion-body {
    max-height: 500px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.accordion-collapse {
    transition: height 0.3s ease;
}

/* Enhanced form styling */
.form-label {
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.form-select {
    border: 2px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    background-color: var(--bs-body-bg);
}

.form-select:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.15rem rgba(4, 180, 180, 0.15);
}

.form-select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.25rem rgba(4, 180, 180, 0.25);
    outline: 0;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.15em;
    border: 2px solid var(--bs-border-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.form-check-input:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.15rem rgba(4, 180, 180, 0.15);
}

.form-check-input:checked {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.25rem rgba(4, 180, 180, 0.25);
    outline: 0;
}

.form-check-label {
    margin-left: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

/* Arabic-specific form styling */
html[lang="ar"] .form-label,
.arabic-language .form-label {
    font-weight: 500; /* Slightly lighter for Arabic readability */
}

/* RTL support for form elements */
html[lang="ar"] .form-select,
.arabic-language .form-select {
    text-align: right;
    direction: rtl;
    padding: 0.5rem 1rem 0.5rem 2.5rem; /* Extra padding for dropdown arrow */
}

/* RTL support for checkboxes */
html[lang="ar"] .form-check-input,
.arabic-language .form-check-input {
    margin-right: 0;
    margin-left: 0.5em;
}

/* RTL checkbox checkmark */
html[lang="ar"] .form-check-input:checked[type="checkbox"],
.arabic-language .form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m14 10 3 3-6 6'/%3e%3c/svg%3e");
}

/* RTL support for form check labels */
html[lang="ar"] .form-check-label,
.arabic-language .form-check-label {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Actions checkbox group alignment and preview spacing */
.form-check-group .form-check {
    margin-bottom: 6px;
}
.selected-actions ol {
    margin-top: 6px;
    margin-bottom: 0;
    padding-left: 1.25rem;
}

/* RTL support for ordered lists */
html[lang="ar"] .selected-actions ol,
.arabic-language .selected-actions ol {
    padding-left: 0;
    padding-right: 1.25rem;
}

.onboarding-steps::-webkit-scrollbar {
    width: 8px;
}

.onboarding-steps::-webkit-scrollbar-track {
    background: var(--bs-body-bg);
}

.onboarding-steps::-webkit-scrollbar-thumb {
    background-color: var(--brand-orange);
    border-radius: 4px;
}

/* Timeline Visual */
.timeline {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background-color: var(--brand-orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-arrow {
    margin: 0 10px;
    color: var(--brand-orange);
    font-weight: bold;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Keep primary action on the right consistently */
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--bs-border-color);
}

/* RTL support for navigation buttons */
html[lang="ar"] .nav-buttons,
.arabic-language .nav-buttons {
    justify-content: flex-start; /* Reverse for RTL */
}

.nav-button {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
}

.prev-button {
    background-color: var(--brand-blue);
    color: white;
    /* When Previous is visible, keep it on the left; Next remains on the right */
    margin-right: auto;
}

/* RTL support for previous button */
html[lang="ar"] .prev-button,
.arabic-language .prev-button {
    margin-right: 0;
    margin-left: auto;
}

.prev-button:hover {
    background-color: var(--bs-secondary-bg);
}

.next-button, .get-started-button {
    background-color: var(--brand-orange);
    color: white;
}

.next-button:hover, .get-started-button:hover {
    background-color: var(--brand-orange-dark);
}

.get-started-button {
    padding: 12px 30px;
    font-size: 18px;
}

/* Video Processing Animation */
.processing-animation {
    width: 100px;
    height: 100px;
    border: 5px solid var(--bs-tertiary-bg);
    border-top: 5px solid var(--bs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Processing Screen */
.processing-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    overflow: auto; /* allow scroll when processing content exceeds viewport */
}

.processing-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.processing-content h2 {
    margin: 20px 0 10px;
    color: var(--bs-heading-color);
}

.processing-content p {
    color: var(--bs-secondary-color);
    margin: 0;
}

/* Preview Screen */
.preview-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    overflow: auto; /* enable scroll if preview content is taller than viewport */
}

.preview-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--bs-border-color);
}

.preview-header h2 {
    margin: 0;
    color: var(--bs-heading-color);
}

.close-preview {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--bs-secondary-color);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-preview:hover {
    background-color: var(--bs-tertiary-bg);
}

.video-container {
    padding: 20px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#previewVideo {
    max-width: 100%;
    max-height: 60vh;
}

.preview-actions {
    padding: 20px;
    border-top: 1px solid var(--bs-border-color);
    display: flex;
    justify-content: center;
    gap: 15px;
}

.preview-actions .btn {
    min-width: 150px;
}

/* Success Icon */
.success-icon {
    width: 100px;
    height: 100px;
    background-color: var(--bs-success-bg-subtle);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    color: var(--bs-success-text-emphasis);
    font-size: 48px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .onboarding-container {
        width: 95%;
        /* Keep a slightly larger stable height on mobile as well */
        height: 94vh;
        min-height: 600px;
        max-height: 94vh;
    }
    /* Keep vertical centering on mobile */
    .onboarding-steps {
        justify-content: center;
    }

    .step-visuals {
        flex-direction: column;
        gap: 20px;
    }

    .visual-element {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }

    .icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .icon-text {
        text-align: left;
    }

    /* RTL support for icon text */
    html[lang="ar"] .icon-text,
    .arabic-language .icon-text {
        text-align: right;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .nav-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .onboarding-header {
        padding: 10px 15px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Question mark icon for form field help */
.help-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--brand-blue);
    margin-left: 8px;
    cursor: pointer;
    vertical-align: middle;
    transition: background-color 0.2s;
    flex-shrink: 0; /* Prevent icon from shrinking */
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.help-icon:hover {
    background-color: var(--brand-blue-dark);
}

/* RTL support for help icons */
html[lang="ar"] .help-icon,
.arabic-language .help-icon {
    margin-left: 0;
    margin-right: 8px;
}

/* Custom popover styling to match the brand */
.popover {
    border: 1px solid var(--brand-blue);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 300px;
}

.popover-header {
    background-color: rgba(4, 180, 180, 0.1);
    border-bottom: 1px solid var(--brand-blue);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: var(--brand-blue);
    font-weight: 600;
    padding: 10px 15px;
}

.popover-body {
    padding: 15px;
    color: var(--bs-body-color);
    font-size: 14px;
    line-height: 1.5;
}

/* Ensure popovers work well on mobile */
@media (max-width: 768px) {
    .popover {
        max-width: 250px;
    }
}

/* Style for selected options display in accordion headers */
.selection-display {
    margin-left: 10px;
    font-weight: normal;
    font-size: 0.9em;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

/* RTL support for selection display */
html[lang="ar"] .selection-display,
.arabic-language .selection-display {
    margin-left: 0;
    margin-right: 10px;
}

/* Upload status and result sections styling */
.upload-status, .upload-result {
    padding: 20px;
    border-radius: 8px;
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Global Footer */
.global-footer {
    margin-top: 40px; /* can remain for spacing when content is long */
    padding: 16px 12px 22px;
    background: var(--footer-bg);
    color: var(--footer-fg);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.global-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.global-footer .footer-text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
}
.global-footer .footer-logos {
    display: flex;
    gap: 40px; /* increased spacing between logos */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Baseline size for footer logos */
.global-footer .footer-logo {
    height: 26px;           /* slightly smaller base to align better */
    width: auto;
    object-fit: contain;
    filter: none;
    background: transparent;
}

/* Fine-tune individual brand scales for visual balance */
.global-footer .footer-logo[alt~="GSMA"] {
    height: 16px;           /* reduce GSMA */
}

.global-footer .footer-logo[alt~="ConnectHear"] {
    height: 66px;           /* keep neutral */
}

.global-footer .footer-logo[alt~="Ufone"] {
    height: 98px;           /* slightly larger to balance */
}

/* Small screens: tighten slightly but keep relative scale */
@media (max-width: 576px) {
  .global-footer .footer-logos {
    gap: 16px;
  }
  .global-footer .footer-logo {
    height: 24px;
  }
  .global-footer .footer-logo[alt~="GSMA"] { height: 20px; }
  .global-footer .footer-logo[alt~="Ufone"] { height: 26px; }
}

.upload-status .alert, .upload-result .alert {
    margin-bottom: 0;
    padding: 15px 15px;
}

.upload-status .progress {
    margin-bottom: 20px;
}

.upload-status p {
    margin-bottom: 0;
    font-weight: 500;
}