/**
 * FileTransfer Pro - Custom Styles
 * Bootstrap 5 customizations and additional styling
 */

/* ===== General Styles ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Main content spacing after hero - overlap the extended background */
.hero-section + .container {
    margin-top: -10vh;
    position: relative;
    z-index: 10;
}


/* ===== Hero Section - Full Screen Image ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url("../images/hero-illustration.png?v=3");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    width: 100vw;
    min-height: 120vh;
    padding-bottom: 20vh;
    display: flex;
    align-items: flex-start;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    z-index: 1;
}


/* Add overlay for better text readability */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 76px 20px 0 20px; /* Account for navbar height */
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    position: relative;
    z-index: 100;
}

.hero-text-container {
    flex: 1;
    display: flex;
    align-items: center;
    padding-right: 2rem;
	margin-left: -10vw;
}

.hero-upload-container {
    flex: 0 0 430px;
    max-width: 430px;
    max-height: 80vh;
    overflow-y: auto;
}

.hero-text {
    color: white;
    text-align: left;
    max-width: 640px;
    padding: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem;
    display: inline-block;
    text-align: left;
}

.hero-features li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.hero-features i {
    color: #28a745;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-cta .btn {
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.3s ease;
}

.hero-cta .btn-light {
    background: white;
    color: #667eea;
}

.hero-cta .btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Hero Upload Card Styling */
.hero-upload-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    position: relative;
    z-index: 2;
}

/* Make upload card more compact with smaller fonts */
.hero-upload-card .card-body {
    padding: 1.5rem !important;
}

.hero-upload-card .card-body h2 {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.hero-upload-card .upload-area {
    padding: 1.5rem !important;
    margin-bottom: 0.75rem !important;
}

.hero-upload-card .upload-area i {
    font-size: 2.2rem !important;
}

.hero-upload-card .upload-area h3 {
    font-size: 0.9rem !important;
    margin-top: 0.4rem !important;
}

.hero-upload-card .upload-area p {
    font-size: 0.8rem !important;
    margin: 0.3rem 0 !important;
}

.hero-upload-card .form-control {
    font-size: 0.8rem;
    padding: 0.4rem;
}

.hero-upload-card .alert {
    padding: 0.4rem;
    font-size: 0.75rem;
}

.hero-upload-card .btn {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
}

/* Mobile responsiveness for hero */
@media (max-width: 991.98px) {
    .hero-section {
        position: relative;
        width: 100vw;
        min-height: 110vh;
        padding-bottom: 10vh;
        background-attachment: scroll;
        background-position: center top;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        align-items: flex-start;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: 100vh;
        padding: 70px 20px 20px 20px;
    }
    
    .hero-text-container {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-upload-container {
        flex: none;
        max-width: 420px;
        width: 100%;
        max-height: 70vh;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
        padding: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-features {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }
    
}

@media (max-width: 575.98px) {

    .hero-content {
        align-items: center;
        justify-content: flex-end;
        text-align: center;
    }

    .hero-text {
        padding: 16px;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-features li {
        font-size: 0.95rem;
    }

    .hero-cta .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Adjust upload container for very small screens */
    .hero-upload-container {
        max-width: 95vw !important;
        width: 95vw !important;
    }
    
    .hero-upload-card .card-body {
        padding: 1rem !important;
    }
    
    .hero-upload-card .upload-area {
        padding: 1rem !important;
    }
    
    /* QR Code and Social Share Extra Small Screens */
    .success-card .row.align-items-start {
        margin: 0.75rem 0 0;
        flex-direction: column !important;
    }
    
    .success-card .col-md-6 {
        width: 100% !important;
        padding: 0;
        margin-bottom: 0.75rem;
    }
    
    .qr-section,
    .share-section {
        min-height: 200px;
        padding: 0.75rem 0.5rem;
    }
    
    .qr-code-container {
        width: 100px;
        height: 100px;
        margin-bottom: 0.75rem;
    }
    
    .social-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    
    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .qr-section .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .qr-section .form-label,
    .share-section .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}

/* ===== Upload Area ===== */
.upload-area {
    background: #f8f9fa;
    border: 3px dashed #dee2e6;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}


.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.upload-area.border-primary {
    border-color: #667eea !important;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%) !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

/* ===== Cards & Shadows ===== */
.card {
    border-radius: 12px;
    border: none;
    background: white;
    border: 1px solid #e9ecef;
}

.shadow-sm {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* ===== Navigation ===== */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* ===== Progress Bar ===== */
.progress {
    border-radius: 10px;
    overflow: hidden;
    background: #e9ecef;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* ===== File List ===== */
.list-group-item {
    border-radius: 8px !important;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
}

.list-group-item:last-child {
    margin-bottom: 0;
}

/* ===== Buttons ===== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.btn:active {
    transform: translateY(0);
}

/* ===== Accordion ===== */
.accordion-button {
    font-weight: 500;
    border-radius: 8px !important;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
}

.accordion-body {
    padding: 1.5rem;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
}

/* ===== Footer ===== */
footer {
    border-top: 1px solid #dee2e6;
}

footer a {
    color: #6c757d;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #0d6efd;
}

/* ===== Loading Spinner ===== */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ===== Room & Nearby Share Status ===== */
#nearbyShareStatus,
#roomStatus {
    font-size: 0.9rem;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: #198754;
}

.status-offline {
    background-color: #dc3545;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .upload-area {
        padding: 2rem 1rem !important;
    }
    
    .success-card {
        padding: 1.5rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .social-buttons {
        gap: 0.75rem;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .qr-code-container {
        padding: 0.75rem;
    }
    
    .social-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .success-card .row.align-items-start {
        flex-direction: column;
        margin-top: 1rem;
    }
    
    .success-card .row.align-items-start .col-md-6 {
        width: 100%;
        margin-bottom: 1rem;
        padding: 0;
    }
    
    .success-card {
        padding: 0.5rem 0.25rem;
        max-height: 85vh;
    }
    
    .qr-code-container {
        max-width: 120px;
    }
    
    #downloadProgressSection {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    /* QR Code and Social Share Mobile Layout */
    .success-card .row.align-items-start {
        margin: 1rem 0 0;
        flex-direction: column !important;
    }
    
    .success-card .col-md-6 {
        width: 100% !important;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .qr-section,
    .share-section {
        min-height: 220px;
        padding: 1rem 0.75rem;
    }
    
    .qr-code-container {
        width: 120px;
        height: 120px;
    }
    
    .social-buttons-grid {
        gap: 0.5rem;
    }
    
    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    
    .qr-section .form-label,
    .share-section .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
}

/* ===== Success Card Styling ===== */
.success-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0.75rem 0.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 2px solid #e8f5e9;
    position: relative;
    overflow: hidden;
    max-height: 75vh;
    overflow-y: auto;
    width: 100%;
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #81c784, #4caf50);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.success-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.success-icon-wrapper {
    display: inline-block;
    animation: scaleIn 0.5s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: #4caf50;
    animation: successPulse 2s infinite;
}

.success-title {
    color: #2e7d32;
    font-weight: 700;
    font-size: 1.8rem;
}

/* ===== Link Section ===== */
.link-section {
    margin-bottom: 1rem;
}

.link-section .form-label {
    font-size: 1.1rem;
    color: #2e7d32;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-section .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.link-section .form-control {
    border: 2px solid #4caf50;
    font-weight: 500;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.link-section .form-control:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Short Link Container with Icon */
.short-link-container {
    position: relative;
    display: flex;
    align-items: center;
}

.short-link-container .form-control {
    border: 2px solid #4caf50;
    font-weight: 500;
    padding: 0.75rem 3.5rem 0.75rem 1rem;
    border-radius: 10px;
    flex: 1;
}

.copy-icon-btn {
    position: absolute;
    right: 0.5rem;
    padding: 0.5rem;
    color: #4caf50;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.copy-icon-btn:hover {
    color: #2e7d32;
    transform: scale(1.1);
}

.copy-icon-btn:active {
    transform: scale(0.95);
}

/* Uploaded File Info */
.uploaded-file-info {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

/* Close Button Styling */
.btn-close {
    font-size: 1.5rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ===== QR Code and Social Share Row - Complete Redesign ===== */
.success-card .row.align-items-start {
    margin: 1.5rem 0 0;
    /* Removed gap property that conflicts with Bootstrap */
}

/* QR Code Section */
.qr-section {
    background: transparent;
    padding: 1rem 0.5rem;
    border-radius: 0;
    border: none;
    height: auto;
    min-height: 280px;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: none;
    visibility: visible !important;
    opacity: 1 !important;
}

.qr-section .form-label {
    color: #495057;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-align: center;
    justify-content: center;
    font-weight: 600;
}

.qr-code-container {
    display: block;
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.15);
    border: 2px solid rgba(76, 175, 80, 0.1);
}

.qr-code-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s ease-in;
}

.qr-code-wrapper canvas,
.qr-code-wrapper img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
    object-fit: contain;
}

.qr-section .btn {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.qr-section .btn:hover {
    background: #45a049;
    border-color: #45a049;
    transform: translateY(-1px);
}

.qr-section .small {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

/* Social Share Section */
.share-section {
    background: transparent;
    padding: 1rem 0.5rem;
    border-radius: 0;
    border: none;
    height: auto;
    min-height: 280px;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: none;
    visibility: visible !important;
    opacity: 1 !important;
}

.share-section .form-label {
    color: #495057;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-align: center;
    justify-content: center;
    font-weight: 600;
}

/* Social Buttons Grid - Improved Design */
.social-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
    justify-items: center;
    align-items: center;
    flex-grow: 1;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: white;
}

/* Social Media Platform Colors */
.social-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #005f99);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #0d47a1);
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
}

.social-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-btn.email {
    background: linear-gradient(135deg, #ea4335, #d23e2a);
}

.social-btn.gmail {
    background: linear-gradient(135deg, #ea4335, #d23e2a);
}

/* QR Code and Social Share Container */
.qr-social-container {
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.qr-social-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Column Alignment and Balance - Fixed */
.success-card .col-md-6 {
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    display: block !important;
    width: 50% !important;
    float: none !important;
}

.success-card .row.align-items-start {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch;
    margin-left: 0rem;
    margin-right: 0rem;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

/* ===== Success Message Layout Fixes ===== */
/* Removed conflicting row styles - handled by final override */

/* Old download progress styles - removed to avoid conflicts */

/* Legacy styles - removed to prevent conflicts with new QR/Social design */

/* Close button positioning - Override Bootstrap */
.success-card .btn-close {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    z-index: 100 !important;
    font-size: 1.1rem !important;
    opacity: 0.8 !important;
    margin: 0 !important;
    padding: 0.5rem !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    border-radius: 6px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6c757d !important;
    transition: all 0.3s ease !important;
}

.success-card .btn-close:hover {
    background: rgba(0, 0, 0, 0.2) !important;
    opacity: 1 !important;
    color: #495057 !important;
}

/* Form labels in success message */
.success-card .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

/* Upload file info styling */
.uploaded-file-info {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-left: 1px solid #4caf50;
    border-radius: 1px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

/* Success message text color improvements */
.success-card .text-muted {
    color: #6c757d !important;
    font-size: 0.7rem;
}

/* Success message form controls smaller */
.success-card .form-control {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.6rem !important;
}

.success-card .btn {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.7rem !important;
}

.success-card .uploaded-file-info {
    font-size: 0.8rem;
}

.success-card .uploaded-file-info strong {
    font-size: 0.85rem;
}

/* Old equal height columns - replaced by new design */

/* Download Progress Section - Now separate */
.success-card #downloadProgressSection {
    margin-top: 1.0rem !important;
    padding: 1rem !important;
    background: rgba(108, 117, 125, 0.1) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(108, 117, 125, 0.2) !important;
}

/* Success card overflow fix */
.success-card {
    overflow: visible !important;
}

/* Container height fixes */
.hero-upload-container .success-card {
    max-height: 80vh !important;
    overflow-y: auto !important;
}

/* Success message container fixes */
#successMessage {
    width: 100%;
}

/* Row alignment improvements - handled by final override */

/* Final QR Code and Social Share Improvements */

/* Accessibility improvements */
.social-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.5);
}

.qr-section .btn:focus {
    outline: 2px solid #2e7d32;
    outline-offset: 2px;
}

/* Animation improvements */
.qr-section {
    animation: slideInLeft 0.6s ease-out;
}

.share-section {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Print styles */
@media print {
    .qr-section,
    .share-section {
        border: 1px solid #ccc;
        box-shadow: none;
        background: white !important;
    }
    
    .social-btn {
        color: #333 !important;
        background: #f5f5f5 !important;
    }
}

/* ===== Utility Classes ===== */
.text-muted {
    color: #6c757d !important;
}

.border-dashed {
    border-style: dashed !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* ===== Dark Mode Support (Optional) ===== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* ===== QR Code and Social Share Row - In Bordered Container ===== */
/* QR/Social sections are now inside qr-social-container */
.qr-social-container .row.align-items-start {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 0 !important;
}

.qr-social-container .col-md-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    padding: 0 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Add subtle divider between sections */
.qr-social-container .col-md-6:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #dee2e6, transparent);
}

.qr-social-container .qr-section,
.qr-social-container .share-section {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 280px !important;
}

.qr-social-container .social-buttons-grid {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile responsive override */
@media (max-width: 767.98px) {
    .qr-social-container .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Hide divider on mobile */
    .qr-social-container .col-md-6:first-child::after {
        display: none;
    }
    
    .qr-social-container .row.align-items-start {
        flex-direction: column !important;
        margin: 0 !important;
    }
    
    .qr-social-container .qr-section,
    .qr-social-container .share-section {
        padding: 0.75rem 0.5rem !important;
        min-height: 200px !important;
    }
}
