* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #f1f5f9;
    /* Clean slate-light background */
    --bg-card: #ffffff;
    /* White main card */
    --bg-card-inner: #ffffff;
    /* White inner card */
    --text-primary: #0f172a;
    /* Dark charcoal text */
    --text-secondary: #334155;
    /* Slate text */
    --text-muted: #64748b;
    /* Muted slate text */
    --border-color: #e2e8f0;
    /* Clean border color */
    --border-light: #cbd5e1;
    /* Thin border color */

    --primary: #0f172a;
    /* Pure black/charcoal theme accent */
    --primary-dark: #000000;
    --primary-light: #f1f5f9;
    --primary-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --radius: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 12px 20px -3px rgba(0, 0, 0, 0.08);

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(16px, 4vw, 40px);
    background-attachment: fixed;
}

.app-container {
    width: 100%;
    max-width: 1100px;
}

.main-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 24px);
    padding: clamp(16px, 3vw, 24px);
    margin: auto;
    /* Centers when smaller than viewport */
    transition: var(--transition);
}

/* Sections */
.left-col,
.right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-card-inner);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    height: 100%;
    box-sizing: border-box;
}

/* Left column inner area */
.left-col-scroll {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.left-col-scroll::-webkit-scrollbar {
    width: 4px;
}
.left-col-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.left-col-scroll::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title h2 {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.icon {
    font-size: 28px;
}

.cloud-icon {
    color: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.badge.file-limit {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.badge.live {
    background: #e0e7ff;
    color: #4f46e5;
}

.badge.small {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    width: fit-content;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Password Section */
.password-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-full);
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.8);
}

.radio-label input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.password-hint {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.password-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.password-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-input-group {
    display: flex;
    position: relative;
    width: 100%;
}

.password-input-group input {
    width: 100%;
    padding: 14px 20px;
    padding-right: 48px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
    color: var(--text-primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.password-input-group input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-muted);
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    gap: 12px;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: #f1f5f9;
    box-shadow: var(--shadow);
}

.upload-area:hover::before,
.upload-area.dragover::before {
    opacity: 0.05;
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-block;
    transition: var(--transition);
}

.upload-area:hover .upload-icon {
    transform: scale(1.1) translateY(-4px);
}

.upload-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-info {
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

/* File List */
.file-list {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.clear-btn {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.file-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
    margin-top: 12px;
}

/* Styled scrollbar for file list */
.file-items::-webkit-scrollbar {
    width: 5px;
}
.file-items::-webkit-scrollbar-track {
    background: transparent;
}
.file-items::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.25);
    border-radius: 10px;
}
.file-items::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.45);
}

.file-item-new {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.file-item-new:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.file-item-icon-wrapper {
    background: var(--primary-light);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.file-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.file-name-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.file-name-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    white-space: normal;
    flex: 1;
    min-width: 0;
}

.file-size-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0;
}

.file-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-pwd-group {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 200px;
}

.file-pwd-group input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.file-pwd-group input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.pwd-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
}

.pwd-eye-btn:hover {
    color: var(--primary);
}

.single-share-btn {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.single-share-btn:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.file-remove-new {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.file-remove-new:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: rotate(90deg);
}

.generate-btn {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    margin-top: 12px;
    position: relative;
    overflow: hidden;
}

.generate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: var(--transition);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.generate-btn:hover:not(:disabled)::after {
    left: 150%;
    transition: 0.7s ease;
}

.generate-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: none;
}

/* Link Container */
.link-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.4s ease;
}

.link-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.link-box input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.link-box input:focus {
    background: #ffffff;
    border-color: var(--primary);
}

.copy-btn {
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Transfer Status inside Link Container */
.transfer-status {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 16px;
}

.timer-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.delete-link-btn {
    margin-left: auto;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.delete-link-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.status-section {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* History List */
.history-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 8px;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    height: 100%;
    min-height: 200px;
    font-size: 15px;
    font-weight: 500;
}

.history-empty .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.history-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: #ffffff;
    border-color: #cbd5e1;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.history-item-status {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.history-item-status.active {
    background: #ecfdf5;
    color: #065f46;
}

.history-item-status.expired {
    background: #fef2f2;
    color: #991b1b;
}

.history-file {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.history-link {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 12px;
    word-break: break-all;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Footer Badges */
.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.right-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Progress bar */
.progress-wrapper {
    margin-top: 20px;
    animation: fadeIn 0.4s ease;
}

.progress-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-full);
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.current-file-info {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* Utilities for Modals and Notifications */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 36px;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: scale(0.95) translateY(10px);
    animation: modalScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@keyframes modalScaleIn {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-icon {
    font-size: 32px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-actions button {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.cancel-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.cancel-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.delete-btn {
    background: var(--danger);
    color: white;
}

.delete-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.premium-pwd-input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: 2px solid rgba(130, 100, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.premium-pwd-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(130, 100, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.premium-eye-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: transform 0.2s;
}

.premium-eye-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.premium-submit-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(130, 100, 255, 0.3);
}

.premium-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(130, 100, 255, 0.4);
}

.modal-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.current-file-info {
    display: none !important;
}

.notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2000;
}

.notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.success {
    border-left-color: var(--success);
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    body {
        padding: 16px;
    }

    .main-card {
        grid-template-columns: 1fr;
        height: auto;
        padding: 24px;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .main-card {
        padding: 16px;
        gap: 24px;
    }

    .left-col,
    .right-col {
        padding: 16px;
    }

    .upload-area {
        padding: 32px 16px;
    }

    .file-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .file-pwd-group {
        max-width: 100%;
    }
}

/* ==================== NETWORK DIAGNOSTIC PANEL ==================== */
.net-diag-panel {
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(240, 240, 255, 0.45) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(130, 100, 255, 0.2);
    border-radius: 14px;
    padding: 14px 16px 12px;
    font-size: 12.5px;
}

.net-diag-title {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #7c5cbf;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.net-diag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.net-diag-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.net-diag-label {
    font-size: 10.5px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.net-diag-value {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.diag-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.diag-green {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e88;
}

.diag-orange {
    background: #f97316;
    box-shadow: 0 0 6px #f9731688;
}

.diag-red {
    background: #ef4444;
    box-shadow: 0 0 6px #ef444488;
}

.diag-grey {
    background: #aaa;
}

.diag-pulse {
    animation: diagPulse 1.2s ease-in-out infinite;
}

@keyframes diagPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.net-diag-tip {
    margin-top: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    line-height: 1.5;
    font-weight: 500;
    display: none;
}

.net-diag-tip.tip-green {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

.net-diag-tip.tip-orange {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    display: block;
}

.net-diag-tip.tip-red {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

.spinner-inline {
    display: inline-block;
    animation: spin-anim 1.2s linear infinite;
    margin-right: 8px;
}

@keyframes spin-anim {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==================== ADVERTISING BANNER ==================== */
.ad-banner-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 24px;
    margin-top: auto;
    /* Push it to the bottom of the right column */
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ad-banner-card:hover {
    transform: translateY(-2px);
    border-color: #0f172a;
    box-shadow: var(--shadow);
    background: #ffffff;
}

.ad-banner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0f172a;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-banner-body {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ad-banner-icon {
    font-size: 28px;
    background: #f1f5f9;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.ad-banner-info {
    flex: 1;
}

.ad-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    margin-top: 0;
}

.ad-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.ad-action-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary-gradient);
    color: white !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    box-sizing: border-box;
}

.ad-action-btn:hover {
    background: #000000;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

#infoModalMessage {
    white-space: pre-line;
    line-height: 1.6;
}

/* Footer badges — pinned to bottom of left column */
.footer-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0; /* Never allow footer to shrink or scroll away */
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 850px) {
    .main-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .left-col, .right-col {
        height: auto;
        min-height: 500px;
        max-height: 600px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .main-card {
        padding: 12px;
        gap: 12px;
    }

    .left-col, .right-col {
        padding: 12px;
    }
    
    .header-title h2 {
        font-size: 18px;
    }
    
    .upload-info {
        font-size: 11px;
    }
}