/* Modern Theme for Dora Files */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-body: #09090b;
    --bg-card: #18181b;
    --bg-card-hover: #27272a;

    --border-color: #27272a;
    --border-hover: #3f3f46;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-fg: #ffffff;

    --danger: #ef4444;
    --danger-hover: #dc2626;

    --success: #10b981;
    --success-hover: #059669;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 32px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 32px;
    width: auto;
}

.header h1 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-nav a,
.header-nav button {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
}

.header-nav a:hover,
.header-nav button:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.header-nav a.active {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.header-nav span {
    color: var(--text-muted);
    font-size: 14px;
    padding: 0 12px;
}

.logout-form {
    display: inline;
}

/* Cards */
.card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.card-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    gap: 8px;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-fg);
    border-color: var(--primary);
    box-shadow: 0 1px 2px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px 0 rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: transparent;
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success:hover {
    background: var(--success-hover);
    border-color: var(--success-hover);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
    margin-top: 8px;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-body);
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.input-readonly {
    background: var(--bg-card-hover) !important;
    border-color: var(--border-color) !important;
    cursor: default !important;
}

.file-input-wrapper {
    background: var(--bg-body);
    border: 2px dashed var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.helper-text {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

.table th {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 300px;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

/* File Browser */
.file-browser {
    margin-top: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: var(--bg-card-hover);
}

.file-item:hover .drag-handle {
    color: var(--text-secondary);
    opacity: 1;
}

.drag-handle {
    cursor: grab;
    padding: 8px;
    margin-right: 12px;
    color: var(--text-muted);
    font-size: 18px;
    user-select: none;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    opacity: 0.5;
}

.drag-handle:active {
    cursor: grabbing;
}

.file-icon {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.file-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.file-actions {
    display: flex;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.file-item:hover .file-actions {
    opacity: 1;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: fit-content;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.2s ease-in-out;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content-large {
    max-width: 700px;
}

.modal-large .modal-content {
    max-width: 900px;
    width: 95%;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-body);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

.modal-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.modal-footer {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-content a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-content a:hover {
    color: var(--text-primary);
}

.footer-heart {
    color: var(--danger);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-separator {
    margin: 0 8px;
    color: var(--text-muted);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 16px;
}

.mt-4 {
    margin-top: 16px;
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: #f59e0b;
}

/* Auth Pages */
.auth-container {
    max-width: 440px;
    margin: 0 auto;
    padding-top: 80px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    height: 120px;
    margin-bottom: 16px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

.auth-title {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.auth-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-separator {
    margin: 30px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.auth-section-title {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

/* Dashboard Pages */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.code-badge {
    background: var(--bg-body);
    margin-top: 24px;
}

.upload-queue-title {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 16px;
}

.upload-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.upload-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.upload-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.upload-filename {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-filesize {
    color: var(--text-muted);
    font-size: 13px;
}

.upload-status-icon {
    font-size: 20px;
}

.upload-status-text {
    font-size: 13px;
    margin-bottom: 4px;
}

.upload-progress-container {
    width: 100%;
    height: 6px;
    background: var(--bg-body);
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    transition: width 0.3s;
}

/* Delete Modal */
.delete-confirmation-box {
    background: var(--bg-card-hover);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.delete-item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.delete-item-type {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* Responsive Table */
@media (max-width: 1024px) {
    .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table td {
        max-width: 200px;
    }
}

@media (max-width: 768px) {

    .table th,
    .table td {
        padding: 12px;
        font-size: 13px;
    }

    .table td {
        max-width: 150px;
    }

    .table td:first-child {
        min-width: 150px;
        max-width: 200px;
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Tabs */
.nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.nav-tab {
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    cursor: pointer;
    background: transparent;
    border: none;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.nav-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

/* FTP Selector */
.ftp-connection-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ftp-selector-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ftp-selector-dropdown {
    position: relative;
}

.ftp-selector-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    min-width: 280px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.ftp-selector-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}

.ftp-selector-button:hover::before {
    left: 100%;
}

.ftp-selector-button:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25), 0 0 20px rgba(99, 102, 241, 0.1);
}

.ftp-selector-button:active {
    transform: translateY(0);
}

.ftp-selector-button:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 4px 16px rgba(99, 102, 241, 0.25);
}
.ftp-selector-current {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ftp-selector-name {
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.ftp-selector-icon {
    font-size: 11px;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 4px;
}

.ftp-dropdown-menu.active ~ .ftp-selector-button .ftp-selector-icon {
    transform: rotate(180deg);
}

.ftp-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 340px;
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 100;
    display: none;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
}

.ftp-dropdown-menu.active {
    display: block;
    animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.ftp-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px 16px;
    margin-bottom: 4px;
}

.ftp-dropdown-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ftp-dropdown-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(99, 102, 241, 0.7) 100%);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.ftp-dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    margin: 0 8px 8px 8px;
}

.ftp-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
    border-left: 3px solid transparent;
    position: relative;
}

.ftp-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), rgba(99, 102, 241, 0.5));
    border-radius: 0 2px 2px 0;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ftp-dropdown-item:last-child {
    margin-bottom: 0;
}

.ftp-dropdown-item:hover::before {
    height: 100%;
}

.ftp-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--text-primary);
    transform: translateX(4px);
    border-left-color: transparent;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.ftp-dropdown-item:hover .ftp-icon-inactive {
    opacity: 1;
    color: var(--primary);
}

.ftp-dropdown-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-left-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.ftp-dropdown-item.active .ftp-dropdown-item-name {
    color: var(--primary);
}

.ftp-dropdown-item.active::before {
    height: 100%;
}
.ftp-dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.ftp-icon-active {
    color: var(--primary);
    font-size: 14px;
    animation: pulse 2s ease-in-out infinite;
}

.ftp-icon-inactive {
    color: var(--text-muted);
    font-size: 14px;
    opacity: 0.5;
}

.ftp-dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.ftp-dropdown-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.ftp-dropdown-item-details {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.ftp-host-icon {
    font-size: 11px;
    opacity: 0.7;
}

.ftp-last-used {
    color: var(--text-muted);
    font-size: 11px;
    font-style: italic;
}

.ftp-active-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--success) 0%, rgba(16, 185, 129, 0.8) 100%);
    border-radius: 12px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.ftp-check-icon {
    color: var(--success);
    font-size: 18px;
    font-weight: bold;
    margin-left: auto;
    animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.ftp-connection-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ftp-info-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ftp-info-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Markdown Content Styles */
.markdown-content {
    line-height: 1.8;
    color: var(--text-primary);
}

/* Changelog Title */
.changelog-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Version Block */
.version-block {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.version-block:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.version-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.version-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--primary-fg);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.version-date {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Section Headers with Badges */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
}

.section-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
}

.section-title {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.badge-added {
    background: rgba(16, 185, 129, 0.15);
    border-left: 3px solid var(--success);
    color: var(--success);
}

.badge-improved {
    background: rgba(99, 102, 241, 0.15);
    border-left: 3px solid var(--primary);
    color: var(--primary);
}

.badge-security {
    background: rgba(245, 158, 11, 0.15);
    border-left: 3px solid #f59e0b;
    color: #f59e0b;
}

.badge-fixed {
    background: rgba(239, 68, 68, 0.15);
    border-left: 3px solid var(--danger);
    color: var(--danger);
}

.badge-default {
    background: rgba(161, 161, 170, 0.15);
    border-left: 3px solid var(--text-secondary);
    color: var(--text-secondary);
}

/* Changelog List */
.changelog-list {
    margin: 12px 0 20px 0;
    padding-left: 0;
    list-style: none;
}

.changelog-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.changelog-list li::before {
    content: "•";
    position: absolute;
    left: 12px;
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
}

.changelog-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.changelog-list li a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.changelog-list li a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Legacy markdown styles */
.markdown-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.markdown-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.markdown-content em {
    font-style: italic;
}

.markdown-content code {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.9em;
    color: var(--primary);
    font-weight: 500;
}

.markdown-content pre {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 16px 0;
}

.markdown-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-primary);
    font-weight: 400;
}

.markdown-content del {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
}

.changelog-list li code {
    font-size: 0.85em;
}

/* Utility Classes */
.text-white {
    color: #ffffff;
}

.bg-dark {
    background: var(--bg-card);
}

.border-dark {
    border-color: var(--border-color);
}

.cursor-default {
    cursor: default;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .ftp-connection-selector {
        flex-direction: column;
        align-items: stretch;
    }

    /* Modal responsive */
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

    .modal-large .modal-content {
        max-width: 95%;
    }

    .modal-header {
        margin-bottom: 16px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    /* Changelog responsive */
    .changelog-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .version-block {
        padding: 16px;
        margin-bottom: 16px;
    }

    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .version-badge {
        padding: 4px 12px;
        font-size: 12px;
    }

    .section-header {
        padding: 8px 12px;
        font-size: 14px;
    }

    .section-icon {
        font-size: 16px;
    }

    .section-title {
        font-size: 12px;
    }

    .changelog-list li {
        font-size: 14px;
        padding-left: 24px;
    }

    .changelog-list li::before {
        left: 8px;
        font-size: 16px;
    }
}

/* Tabs */
