/* ==========================================================================
   DriveTransfer Hub Enterprise - Ultra-Premium Design System
   ========================================================================== */

:root {
    --bg-base: #060911;
    --bg-surface: #0c1322;
    --bg-surface-elevated: #131c31;
    --bg-card: rgba(18, 27, 47, 0.7);
    --bg-card-hover: rgba(26, 38, 66, 0.85);

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-focus: rgba(99, 102, 241, 0.5);

    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);

    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 10% 15%, rgba(79, 70, 229, 0.12) 0px, transparent 50%),
        radial-gradient(at 90% 85%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Top Header
   ========================================================================== */
.app-header {
    background: rgba(12, 19, 34, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.brand-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.4);
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.brand-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-medium);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

#btnActiveJobStatus {
    animation: pulseActiveBorder 2.5s infinite ease-in-out;
}

@keyframes pulseActiveBorder {
    0%, 100% { border-color: rgba(99, 102, 241, 0.3); }
    50% { border-color: rgba(99, 102, 241, 0.8); box-shadow: 0 0 12px rgba(99, 102, 241, 0.25); }
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.active {
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

.status-indicator.warning {
    background: var(--accent-amber);
    box-shadow: 0 0 8px var(--accent-amber);
}

/* ==========================================================================
   Main Workspace & Grid
   ========================================================================== */
.main-workspace {
    max-width: 1720px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
}

/* Alert Banner */
.banner-alert {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.banner-alert.hidden {
    display: none;
}

.banner-icon {
    color: var(--accent-amber);
    flex-shrink: 0;
}

.banner-content {
    flex-grow: 1;
}

.banner-content strong {
    color: #fcd34d;
    display: block;
    font-size: 0.95rem;
}

.banner-content span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.banner-actions {
    display: flex;
    gap: 0.65rem;
    flex-shrink: 0;
}

/* Transfer Grid */
.transfer-grid {
    display: grid;
    grid-template-columns: 1fr 240px 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .transfer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Panels */
.drive-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    min-height: 640px;
    max-height: 780px;
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.drive-panel:hover {
    border-color: var(--border-medium);
}

.panel-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(12, 19, 34, 0.5);
}

.panel-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
}

.source-tag {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.target-tag {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Account Profile Bar */
.account-profile-bar {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-placeholder {
    text-align: center;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.icon-avatar {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-medium);
}

.placeholder-text strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.placeholder-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    max-width: 320px;
}

/* Active Profile Bar */
.user-profile-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.user-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
}

.user-names strong {
    font-size: 0.95rem;
    display: block;
}

.user-names span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-disconnect {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-disconnect:hover {
    background: rgba(244, 63, 94, 0.2);
}

/* Target View Container */
.target-view-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    height: 100%;
}

/* File Browser Components */
.file-browser {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    min-height: 480px;
}

.browser-toolbar {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(12, 19, 34, 0.3);
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-grow: 1;
    overflow-x: auto;
    white-space: nowrap;
}

.bc-item {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.bc-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.bc-separator {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.search-box {
    position: relative;
    width: 200px;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 0.4rem 0.65rem 0.4rem 2rem;
    font-size: 0.8rem;
}

.search-box input:focus {
    border-color: var(--primary-light);
    outline: none;
    background: rgba(255, 255, 255, 0.07);
}

.search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}

.browser-stats {
    padding: 0.65rem 1.25rem;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
}

.selection-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selection-count {
    color: var(--text-dim);
}

.storage-info {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.target-destination-hint strong {
    color: var(--accent-emerald);
}

/* File List Table */
.file-list-wrap {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.file-item {
    display: grid;
    grid-template-columns: 32px 32px 1fr 90px 130px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.85rem;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.file-item.selected {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.file-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon img {
    width: 20px;
    height: 20px;
}

.file-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-name.is-folder {
    color: #93c5fd;
    font-weight: 600;
}

.file-size {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-align: right;
    font-family: var(--font-mono);
}

.file-date {
    color: var(--text-dim);
    font-size: 0.75rem;
    text-align: right;
}

/* Custom Checkbox */
.custom-checkbox {
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    gap: 0.5rem;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 18px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    display: inline-block;
    transition: var(--transition);
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary-light);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* ==========================================================================
   Center Transfer Bridge
   ========================================================================== */
.transfer-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bridge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.bridge-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}

.bridge-info .bridge-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.selected-summary {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 0.25rem;
    color: #e2e8f0;
}

.transfer-options {
    width: 100%;
}

.option-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.option-pill input {
    margin-right: 0.5rem;
}

.btn-transfer-execute {
    width: 100%;
    background: var(--primary-gradient);
    color: #fff;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-transfer-execute:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.55);
}

.btn-transfer-execute:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.cloud-tech-note {
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    text-align: left;
}

.cloud-tech-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-cyan);
}

/* ==========================================================================
   Modals & Dialogs
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 14, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-large {
    max-width: 840px;
}

.modal-small {
    max-width: 440px;
}

.modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title-wrap h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.live-pulse {
    width: 10px;
    height: 10px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-close {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.btn-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    background: rgba(12, 19, 34, 0.4);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #e2e8f0;
}

.required {
    color: var(--accent-rose);
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    font-family: var(--font-sans);
}

.form-group input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.code-copy-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.code-copy-box code {
    flex-grow: 1;
    padding: 0.65rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #a5b4fc;
    overflow-x: auto;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-left: 1px solid var(--border-subtle);
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.15);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.35rem;
}

/* Guide Styles */
.guide-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.guide-step-card {
    display: flex;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #f1f5f9;
}

.step-content p, .step-content li {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-content ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
}

.link-ext {
    color: var(--accent-cyan);
    text-decoration: underline;
    font-weight: 600;
}

/* Progress Hero */
.progress-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 0.2rem;
    display: block;
    font-family: var(--font-mono);
}

.stat-value.highlight {
    color: var(--accent-cyan);
}

.stat-value.error {
    color: var(--accent-rose);
}

.progress-bar-container {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.current-file-display {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Terminal Log */
.terminal-log-window {
    background: #030712;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    margin-top: 1.25rem;
    font-family: var(--font-mono);
    overflow: hidden;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-body {
    padding: 0.85rem 1rem;
    height: 180px;
    overflow-y: auto;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.log-entry {
    line-height: 1.4;
    word-break: break-all;
}

.log-entry.info { color: #94a3b8; }
.log-entry.success { color: #34d399; }
.log-entry.warning { color: #fbbf24; }
.log-entry.error { color: #f87171; }

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.toast {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    color: var(--text-main);
    font-size: 0.875rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@keyframes toastSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.toast-success { border-left: 4px solid var(--accent-emerald); }
.toast.toast-error { border-left: 4px solid var(--accent-rose); }
.toast.toast-info { border-left: 4px solid var(--accent-cyan); }

/* Loading Spinner */
.loading-state {
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Dual Transfer Mode Switcher
   ========================================================================== */
.transfer-mode-selector {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    gap: 0.25rem;
}

.mode-tab {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.mode-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.mode-tab.active {
    background: var(--bg-surface-elevated);
    color: #fff;
    border: 1px solid var(--border-medium);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mode-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-dim);
}

.mode-tab.active .mode-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.mode-badge.highlight {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Server Target View & Storage Components */
.target-view-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.server-tag {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.server-storage-header {
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.server-path-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.path-label {
    color: var(--text-dim);
    flex-shrink: 0;
}

.path-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-integrity-note {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: #34d399;
}

.server-downloads-toolbar {
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(12, 19, 34, 0.3);
}

.server-downloads-toolbar strong {
    color: var(--text-main);
}

.server-downloads-toolbar span {
    color: var(--text-dim);
}

/* Server Download Item Cards */
.server-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.server-item-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-medium);
}

.server-item-info strong {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: #f1f5f9;
}

.server-item-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

.meta-verified-tag {
    color: #34d399;
    font-weight: 600;
}

.server-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-zip-download {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}

.btn-zip-download:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #fff;
}

/* Job Name Input & Verification Badge in Bridge */
.job-name-box {
    text-align: left;
    margin-bottom: 0.5rem;
}

.job-name-box label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
}

.job-name-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
}

.verify-badge-info {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
    color: #6ee7b7;
    margin-top: 0.4rem;
}

.log-badge-md5 {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}

/* ==========================================================================
   Security Login Gateway & Admin Controls
   ========================================================================== */
.login-gateway-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.15);
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-brand .brand-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

.login-brand h2 {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.security-banner-info {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.95rem;
    font-size: 0.8rem;
    color: #bae6fd;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.45;
}

.security-banner-info svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-block {
    width: 100%;
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: center;
}

.login-security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.75rem;
}

.btn-logout {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.25);
    padding: 0.6rem 0.95rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-logout:hover {
    background: rgba(244, 63, 94, 0.25);
    color: #fff;
    border-color: rgba(244, 63, 94, 0.4);
}
