.file-path {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.file-path.clickable {
    cursor: pointer;
    text-decoration: underline;
}

.file-path.clickable:hover {
    color: var(--primary-color);
}

.file-list-item {
    animation: fadeIn 0.3s ease forwards;
}

.file-list-item:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.delete-button {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.delete-button:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.rename-button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.rename-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.move-button {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.move-button:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.edit-link-button {
    background: transparent;
    border: 1px solid var(--info-color);
    color: var(--info-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.edit-link-button:hover {
    background: var(--info-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.notification {
    animation: slideInRight 0.3s ease;
}

.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10003;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification-success {
    padding: 1rem 1.5rem;
    background: #27AE60;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    font-weight: 500;
    cursor: pointer;
}

.notification-error {
    padding: 1rem 1.5rem;
    background: #E74C3C;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    font-weight: 500;
    cursor: pointer;
}

.notification-info {
    padding: 1rem 1.5rem;
    background: #3498DB;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    font-weight: 500;
    cursor: pointer;
}

.confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.confirmation-modal-overlay.closing {
    animation: fadeOut 0.3s ease forwards;
}

.confirmation-modal {
    background: var(--background);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.confirmation-modal-overlay.closing .confirmation-modal {
    animation: slideDownClose 0.3s ease forwards;
}

.confirmation-modal h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.confirmation-modal p {
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.confirmation-buttons {
    display: flex;
    gap: 1rem;
}

.confirmation-buttons button {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.confirm-btn-cancel {
    background: var(--background-dark);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.confirm-btn-cancel:hover {
    background: var(--border-color);
}

.confirm-btn {
    color: white;
    background: var(--primary-gradient);
}

.confirm-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.confirm-btn-danger {
    background: var(--accent-gradient);
}

.confirm-btn-danger:hover {
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.prompt-input-container {
    margin-bottom: 1.5rem;
}

#prompt-input {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--background-alt);
    color: var(--text-primary);
    font-size: 1rem;
    box-sizing: border-box;
    text-align: center;
}

#prompt-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.directory-picker-modal {
    max-width: 480px;
    text-align: left;
}

.directory-picker-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.directory-picker-modal .modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.directory-picker-modal .modal-subtitle {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
}

.directory-picker-modal .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.directory-picker-tree {
    max-height: 50vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    background-color: var(--background-alt);
    margin-bottom: 1.5rem;
}

.directory-picker-tree .folder-tree-list {
    list-style: none;
    margin: 0;
    padding-left: 20px;
    position: relative;
}

.directory-picker-tree .folder-tree-list::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
}

.directory-picker-tree .folder-tree-node {
    margin: 0;
    padding: 0;
    position: relative;
}

.directory-picker-tree .folder-tree-node::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20px;
    width: 12px;
    height: 1px;
    background: var(--border-color);
}

.directory-picker-tree .folder-tree-node.is-last::before {
    height: 1px;
}

.directory-picker-tree .folder-tree-node.is-last::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 21px;
    bottom: 0;
    width: 1px;
    background: var(--background-alt);
}

#directory-picker-tree>.folder-tree-list {
    padding-left: 0;
}

#directory-picker-tree>.folder-tree-list::before {
    display: none;
}

#directory-picker-tree>.folder-tree-list>.folder-tree-node::before,
#directory-picker-tree>.folder-tree-list>.folder-tree-node::after {
    display: none;
}

.directory-picker-tree .folder-tree-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    gap: 0.75rem;
    margin-top: 4px;
    margin-bottom: 4px;
    justify-content: flex-start;
}

.directory-picker-tree .folder-tree-item:hover {
    background-color: var(--background-hover);
}

.directory-picker-tree .folder-tree-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.directory-picker-tree .folder-icon {
    color: var(--primary-color);
}

.directory-picker-tree .folder-tree-item.active .folder-icon {
    color: white;
}

.directory-picker-tree .folder-toggle-icon {
    transition: transform 0.2s ease;
    font-size: 0.8em;
    color: var(--text-secondary);
}

.directory-picker-tree .folder-toggle-icon.expanded {
    transform: rotate(90deg);
}

.directory-picker-tree .folder-toggle-icon.hidden {
    visibility: hidden;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    gap: 0.5rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.pagination-button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: 1px solid var(--button-border);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.pagination-button:hover:not(:disabled) {
    background-color: var(--button-hover-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0.5rem;
}

.upload-hero {
    padding: 2rem 1rem;
}

.upload-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-card {
    background: var(--background);
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    margin-bottom: 2rem;
}

.upload-header {
    background: var(--background-alt);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.upload-description {
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
}

.upload-form {
    padding: 2rem;
}

.file-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--background-alt);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.file-drop-zone:hover {
    border-color: var(--primary-light);
    background: rgba(46, 139, 87, 0.05);
}

.drop-zone-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.drop-zone-text h3 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.drop-zone-text p {
    margin: 0 0 1rem;
    color: var(--text-secondary);
}

.browse-text {
    color: var(--primary-color);
    font-weight: 500;
}

.file-types {
    font-size: 0.8rem;
    color: var(--text-light);
}

.selected-file-info {
    margin-bottom: 2rem;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.file-icon-preview {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.file-details {
    flex: 1;
}

.file-details .file-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.file-details .file-size {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.remove-file-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.upload-progress {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.upload-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: var(--background-dark);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.upload-progress .progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress .progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.upload-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-light);
}

.upload-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.upload-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.upload-status {
    margin-top: 1.5rem;
}

.status-message {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
}

.status-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.status-info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.upload-guide {
    background: var(--background);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.upload-guide h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.upload-guide ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upload-guide li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.upload-guide li i {
    color: var(--success-color);
    width: 16px;
}

.upload-path-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: var(--background);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    border: 1px solid transparent;
    background-image: linear-gradient(var(--background), var(--background)), var(--primary-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.upload-path-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.upload-path-info i {
    color: var(--primary-color);
}

.upload-type-toggle {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0 2rem;
}

.upload-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--background-alt);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-type-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.upload-type-btn.active {
    border-color: var(--primary-color);
    background: rgba(46, 139, 87, 0.1);
    color: var(--primary-color);
}

.upload-type-btn i {
    font-size: 1.2rem;
}

.link-upload-zone {
    padding: 2rem;
    background: var(--background-alt);
    border-radius: 15px;
    border: 2px dashed var(--border-color);
    margin-bottom: 2rem;
}

.link-input-group {
    margin-bottom: 1.5rem;
}

.link-input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.link-input-group label i {
    color: var(--primary-color);
}

.link-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.link-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.link-input::placeholder {
    color: var(--text-light);
}

.link-preview {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(46, 139, 87, 0.1);
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
    word-break: break-all;
}

.link-preview i {
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .upload-stats {
        gap: 1rem;
    }

    .stat-item {
        font-size: 0.8rem;
    }

    .file-drop-zone {
        padding: 2rem 1rem;
        min-height: 150px;
    }

    .drop-zone-icon {
        font-size: 2rem;
    }

    .upload-form {
        padding: 1.5rem;
    }

    .upload-header {
        padding: 1.5rem;
    }
}

.ai-loading-modal {
    background: var(--background);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    text-align: center;
    animation: fadeInUp 0.3s ease;
    min-width: 280px;
}

.ai-loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.ai-loading-spinner i {
    font-size: 2.5rem;
    color: white;
    animation: none;
}

.ai-loading-spinner i.fa-spin {
    animation: fa-spin 2s linear infinite;
}

.ai-loading-modal h3 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.ai-loading-hint {
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ai-loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ai-loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.ai-loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.ai-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}