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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #1e293b;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: none;
}

header p {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-shadow: none;
    opacity: 1;
}

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hidden {
    display: none;
}

.upload-progress-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
    overflow: hidden;
}

.upload-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.upload-progress-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-weight: 600;
    color: #0f172a;
}

.upload-progress-meta {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.upload-progress-overall {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
}

.upload-progress-bar {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.upload-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
    transition: width 0.2s ease;
}

.upload-progress-text {
    font-size: 0.85rem;
    color: #475569;
    min-width: 44px;
    text-align: right;
}

.upload-progress-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 18px 16px;
    max-height: 220px;
    overflow-y: auto;
}

.upload-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fafc;
}

.upload-item-top {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    font-size: 0.85rem;
}

.upload-item-name {
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-item-size {
    color: #64748b;
}

.upload-item-status {
    color: #475569;
    font-weight: 500;
}

.upload-item-bar {
    margin-top: 8px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.upload-item-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    transition: width 0.2s ease;
}

.upload-item.complete .upload-item-bar-fill {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.upload-item.failed {
    border-color: #fecaca;
    background: #fef2f2;
}

.upload-item.failed .upload-item-bar-fill {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.upload-item.failed .upload-item-status {
    color: #b91c1c;
}

.site-hub-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
    overflow: hidden;
}

.site-hub-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
    color: #e2e8f0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.site-hub-header h3 {
    margin: 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-hub-header p {
    margin-top: 4px;
    font-size: 0.86rem;
    color: #cbd5e1;
}

.site-hub-list {
    padding: 14px 16px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.site-hub-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
}

.site-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-card-missing {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff7f7 0%, #fef2f2 100%);
}

.site-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.site-card-title-wrap {
    min-width: 0;
}

.site-card-title {
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
}

.site-card-slug {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.75rem;
    color: #475569;
    display: inline-block;
    margin-top: 2px;
}

.site-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    padding: 4px 8px;
    white-space: nowrap;
}

.site-status-ready {
    background: #dcfce7;
    color: #166534;
}

.site-status-missing {
    background: #fee2e2;
    color: #991b1b;
}

.site-card-description {
    margin: 0;
    font-size: 0.82rem;
    color: #334155;
    min-height: 1.2em;
}

.site-card-meta {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.5;
}

.site-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(108,117,125,0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #545b62 0%, #3d4449 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108,117,125,0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Main Layout Styles */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    height: calc(100vh - 200px);
    margin-top: 20px;
}

/* Left Panel - Folder System */
.left-panel {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-header {
    padding: 20px 28px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(15,23,42,0.15);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.panel-header:hover::before {
    left: 100%;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Right Panel - Paste Box */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.file-section, .paste-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-section {
    flex: 2;
}

.paste-section {
    flex: 1;
}

.paste-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.format-select {
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 12px;
}

.format-select option {
    background: #667eea;
    color: white;
}

/* Folder Tree */
.folder-tree {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

.folder-item {
    padding: 10px 14px;
    margin: 3px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.folder-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.folder-item.selected {
    background: #e3f2fd;
    color: #1976d2;
}

.folder-item.root-folder {
    background: #f8f9fa;
    font-weight: 500;
}

.folder-item.drag-over {
    background: #e8f5e8;
    border: 2px dashed #4caf50;
}

/* Paste Box */
.paste-box-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.paste-box {
    flex: 1;
    width: 100%;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #fafafa 0%, #f8f9fa 100%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.paste-box:focus {
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.15), inset 0 2px 4px rgba(0,0,0,0.05);
    transform: scale(1.01);
}

.paste-box.has-content {
    border-color: #28a745;
    border-style: solid;
}

.paste-status {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.paste-status.success {
    background: #d4edda;
    color: #155724;
}

.paste-status.processing {
    background: #fff3cd;
    color: #856404;
}

.paste-status.error {
    background: #f8d7da;
    color: #721c24;
}

.paste-actions {
    padding: 15px;
    border-top: 1px solid #f1f3f5;
    display: flex;
    gap: 10px;
    align-items: center;
}

.filename-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
}

.filename-input:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.file-list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.file-list-header {
    display: grid;
    grid-template-columns: 40px 1fr 80px 80px;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    align-items: center;
    font-size: 0.85rem;
}

.file-list {
    flex: 1;
    overflow-y: auto;
}

.file-item {
    display: grid;
    grid-template-columns: 40px 1fr 80px 80px;
    gap: 10px;
    padding: 12px 15px 30px 15px;
    border-bottom: 1px solid #f1f3f5;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    cursor: move;
    position: relative;
    min-height: 50px;
    border-radius: 8px;
    margin: 2px 8px;
}

.file-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-bottom-color: transparent;
}

.file-item.selected {
    background: #e3f2fd;
}

.checkbox-container {
    position: relative;
    display: block;
    cursor: pointer;
}

.checkbox-container input {
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #007bff;
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

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

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.file-name {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 18px;
}

.file-name:hover {
    color: #007bff;
    text-decoration: underline;
}

.file-icon {
    color: #666;
    width: 16px;
}

.file-size, .file-modified {
    color: #666;
    font-size: 0.9rem;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(220,53,69,0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,53,69,0.4);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.6;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    transform: scale(1.01);
}

.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 1001;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

@media (max-width: 768px) {
    .site-hub-header {
        flex-direction: column;
        align-items: stretch;
    }

    .site-hub-list {
        grid-template-columns: 1fr;
    }

    .site-card-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .main-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 1fr;
        height: auto;
    }
    
    .file-list-header, .file-item {
        grid-template-columns: 40px 1fr 60px 60px;
        gap: 8px;
    }
    
    .header-size, .header-modified, .file-size, .file-modified {
        display: none;
    }
    
    .file-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .folder-tree {
        max-height: 120px;
    }
    
    .paste-box {
        min-height: 200px;
    }
}

/* File viewer modal */
.file-viewer-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.file-viewer-content {
    background-color: #fefefe;
    margin: 50px auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.file-viewer-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-viewer-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: white;
}

.file-viewer-body pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.file-viewer-body.markdown {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.file-viewer-body.markdown h1,
.file-viewer-body.markdown h2,
.file-viewer-body.markdown h3 {
    margin-top: 24px;
    margin-bottom: 16px;
}

.file-viewer-body.markdown code {
    background: #f6f8fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9em;
}

.file-viewer-body.markdown pre {
    background: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
}

.file-viewer-body.markdown blockquote {
    border-left: 4px solid #dfe2e5;
    padding-left: 16px;
    color: #6a737d;
    margin: 16px 0;
}

/* Animation keyframes */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes buttonPress {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.btn:active {
    animation: buttonPress 0.1s ease;
}

/* Loading shimmer for paste box */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.paste-box.loading {
    background: linear-gradient(90deg, #f0f0f0 0px, #e0e0e0 40px, #f0f0f0 80px);
    background-size: 200px;
    animation: shimmer 1.5s infinite;
}

/* File folder info styles */
.file-folder-info {
    position: absolute;
    bottom: 5px;
    left: 55px;
    right: 100px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #888;
    font-weight: 400;
    opacity: 0.9;
    z-index: 1;
}

.folder-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 500;
    color: white;
    transition: all 0.2s ease;
}

.folder-icon {
    font-size: 0.65rem;
}

/* Enhanced folder color system with sophisticated gradients */
.folder-tag.folder-root {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 50%, #495057 100%);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.folder-tag.folder-1 {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
    border: 1px solid rgba(255,255,255,0.15);
}

.folder-tag.folder-2 {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 50%, #155724 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
    border: 1px solid rgba(255,255,255,0.15);
}

.folder-tag.folder-3 {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 50%, #a71e2a 100%);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    border: 1px solid rgba(255,255,255,0.15);
}

.folder-tag.folder-4 {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 50%, #d39e00 100%);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

.folder-tag.folder-5 {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 50%, #0f6674 100%);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.4);
    border: 1px solid rgba(255,255,255,0.15);
}

.folder-tag.folder-6 {
    background: linear-gradient(135deg, #6610f2 0%, #520dc2 50%, #4e0ba0 100%);
    box-shadow: 0 2px 8px rgba(102, 16, 242, 0.4);
    border: 1px solid rgba(255,255,255,0.15);
}

.file-time {
    color: #999;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.time-icon {
    font-size: 0.6rem;
    opacity: 0.7;
}

/* PDF Viewer Styles */
.file-viewer-body.pdf-viewer {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.pdf-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
}

.pdf-controls .btn {
    padding: 6px 12px;
    font-size: 0.875rem;
    min-width: auto;
}

#zoomLevel {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    min-width: 45px;
    text-align: center;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
}

.pdf-container {
    flex: 1;
    background: #525659;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    position: relative;
}

.pdf-container embed {
    min-height: 100vh;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* PDF viewer specific responsive adjustments */
@media (max-width: 768px) {
    .pdf-controls {
        padding: 8px 12px;
        gap: 8px;
    }

    .pdf-controls .btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    #zoomLevel {
        font-size: 0.75rem;
        min-width: 40px;
        padding: 2px 6px;
    }

    .pdf-container embed {
        min-height: 70vh;
    }
}

/* Ensure proper modal sizing for PDF content */
.file-viewer-modal .file-viewer-content {
    height: 90vh;
    max-height: 900px;
}

/* API instructions page */
.api-instruct-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 18px;
    overflow: hidden;
}

.api-instruct-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

.api-instruct-meta {
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.api-instruct-pre {
    white-space: pre;
    overflow: auto;
    max-height: calc(100vh - 320px);
    padding: 16px;
    border-radius: 12px;
    background: #0b1220;
    color: #e2e8f0;
    border: 1px solid rgba(15, 23, 42, 0.2);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    font-size: 12px;
}
