:root {
    --primary: #00a651;
    --primary-dark: #006837;
    --primary-light: #22c55e;
    --primary-gradient: linear-gradient(135deg, #00a651, #22c55e);
    --secondary: #3399ff;
    --secondary-dark: #0066cc;
    --accent: #ffd700;
    --accent-dark: #ccab00;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --background: #000000;
    --background-secondary: #111111;
    --background-tertiary: #1a1a1a;
    --background-card: #1e1e1e;
    --background-elevated: #2a2a2a;
    --text: #ffffff;
    --text-muted: #cccccc;
    --text-light: #e5e5e5;
    --text-secondary: #b3b3b3;
    --border: #333333;
    --border-light: #404040;
    --border-lighter: #555555;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 8px 25px rgba(0, 166, 81, 0.3);
    --header-height: 70px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --transition: 0.3s ease;
    --transition-fast: 0.15s ease;
    --glass-bg: rgba(26, 26, 26, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-backdrop: blur(20px);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, var(--background-secondary) 50%, var(--background) 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 166, 81, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(51, 153, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* Header */
.main-header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: var(--glass-backdrop);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 998;
    height: var(--header-height);
    border-bottom: 1px solid rgba(0, 166, 81, 0.2);
    box-shadow: 0 2px 20px rgba(0, 166, 81, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    transition: all var(--transition);
}

.logo:hover {
    transform: scale(1.05);
    color: var(--primary-light);
}

.logo i {
    color: var(--accent);
    font-size: 1.5em;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(0, 166, 81, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.show {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: var(--glass-backdrop);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.show .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 700;
}

.mobile-logo i {
    color: var(--accent);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.125rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.mobile-nav {
    flex: 1;
    padding: 1rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover {
    background: rgba(0, 166, 81, 0.1);
    color: var(--primary);
}

.mobile-nav-link i:first-child {
    margin-left: 0.75rem;
    color: var(--primary);
}

.mobile-nav-link span {
    flex: 1;
    text-align: center;
}

.mobile-nav-link i:last-child {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    padding-top: var(--header-height);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 166, 81, 0.1);
    border: 1px solid rgba(0, 166, 81, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    color: var(--primary-light);
    font-weight: 500;
}

.hero-badge i {
    color: var(--accent);
}

/* Tool Section */
.tool-section {
    padding: 2rem 0 5rem;
}

.extractor-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Upload Area */
.upload-area {
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed var(--border-light);
    border-radius: var(--border-radius-lg);
    margin: 2rem;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(0, 166, 81, 0.05);
    transform: scale(1.01);
}

.upload-area.dragover {
    border-color: var(--accent);
    background: rgba(255, 215, 0, 0.05);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.upload-area p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.upload-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.supported-formats-hint {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Progress */
.progress-container {
    padding: 2rem;
    margin: 0 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.progress-text {
    color: var(--text-muted);
}

.progress-percent {
    color: var(--primary);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

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

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* File Info Bar */
.file-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 166, 81, 0.1);
    border-bottom: 1px solid rgba(0, 166, 81, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.file-info-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.file-info-details i {
    color: var(--primary);
    font-size: 1.25rem;
}

.file-name {
    font-weight: 600;
    color: var(--text);
}

.file-size,
.file-count {
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    font-size: 0.8rem;
}

.file-info-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.action-btn.secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-light);
}

.action-btn.secondary:hover {
    background: rgba(255,255,255,0.15);
    box-shadow: none;
}

/* Files Toolbar */
.files-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.search-files {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-files i {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
}

.search-files input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-family: inherit;
    font-size: 0.875rem;
    transition: all var(--transition);
}

.search-files input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

.search-files input::placeholder {
    color: var(--text-secondary);
}

.view-options {
    display: flex;
    gap: 0.25rem;
}

.view-btn {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.view-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.view-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.sort-options select {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.sort-options select option,
.filter-options select option {
    background: #1e1e1e;
    color: #ffffff;
}

.sort-options select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.breadcrumb-item:hover {
    color: var(--primary);
    background: rgba(0, 166, 81, 0.1);
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--border-lighter);
}

.breadcrumb-actions {
    display: flex;
    gap: 0.4rem;
    margin-right: auto;
    margin-left: 0.75rem;
}

.breadcrumb-action-btn {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 0.75rem;
}

.breadcrumb-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Files Container */
.files-container {
    max-height: 500px;
    overflow-y: auto;
}

.files-container::-webkit-scrollbar {
    width: 8px;
}

.files-container::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

.files-container::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

.files-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.files-list {
    padding: 0.5rem 0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 2rem;
    transition: all var(--transition);
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.file-item:hover {
    background: rgba(0, 166, 81, 0.05);
}

.file-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.file-item-icon.folder {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent);
}

.file-item-icon.file {
    background: rgba(0, 166, 81, 0.15);
    color: var(--primary);
}

.file-item-icon.image {
    background: rgba(51, 153, 255, 0.15);
    color: var(--secondary);
}

.file-item-icon.code {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.file-item-icon.document {
    background: rgba(14, 165, 233, 0.15);
    color: var(--info);
}

.file-item-info {
    flex: 1;
    min-width: 0;
}

.file-item-name {
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.file-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.file-item-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.file-item:hover .file-item-actions {
    opacity: 1;
}

.file-action-btn {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 0.8rem;
}

.file-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.file-action-btn.download-folder-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.file-action-btn.copy-path-btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #000;
}

/* Grid View */
.files-list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1.5rem 2rem;
}

.files-list.grid-view .file-item {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.files-list.grid-view .file-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.files-list.grid-view .file-item-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.75rem;
    font-size: 1.4rem;
}

.files-list.grid-view .file-item-info {
    width: 100%;
}

.files-list.grid-view .file-item-name {
    font-size: 0.8rem;
    white-space: normal;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.files-list.grid-view .file-item-meta {
    justify-content: center;
}

.files-list.grid-view .file-item-actions {
    opacity: 1;
    justify-content: center;
    margin-top: 0.75rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-lighter);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Formats Section */
.formats-section {
    padding: 5rem 0;
    background: rgba(26, 26, 26, 0.5);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.format-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
}

.format-category:hover {
    border-color: rgba(0, 166, 81, 0.3);
    transform: translateY(-3px);
}

.format-category h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.format-category h3 i {
    color: var(--accent);
}

.format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.format-tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all var(--transition);
}

.format-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 166, 81, 0.1);
}

.format-tag.popular {
    background: rgba(0, 166, 81, 0.15);
    border-color: rgba(0, 166, 81, 0.4);
    color: var(--primary-light);
}

/* How Section */
.how-section {
    padding: 5rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.step-card:hover {
    border-color: rgba(0, 166, 81, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.step-number {
    position: absolute;
    top: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 30px;
    height: 30px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.features-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all var(--transition);
}

.feature-item:hover {
    border-color: rgba(0, 166, 81, 0.3);
}

.feature-item > i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.feature-item h4 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 4rem 0 1rem;
    border-top: 1px solid rgba(0, 166, 81, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--accent);
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright,
.footer-brand {
    color: var(--text-muted);
}

.footer-brand a {
    color: var(--primary);
    font-weight: 600;
}

.footer-brand i {
    color: var(--danger);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 90;
}

.float-button {
    background: var(--primary-gradient);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: none;
}

.float-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-primary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    background: var(--success);
    color: white;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
}

.toast.info {
    background: var(--info);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-grow: 1;
}

.toast-icon {
    font-size: 1.125rem;
}

.toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-content {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 3rem 0 2rem;
    }

    .hero-badges {
        gap: 0.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .upload-area {
        padding: 3rem 1.5rem;
        margin: 1rem;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .file-info-bar {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .file-info-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .file-info-actions .action-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        border-radius: 8px;
    }

    .file-info-actions .action-btn span {
        display: none;
    }

    .files-toolbar {
        padding: 0.75rem 1rem;
    }

    .file-item {
        padding: 0.75rem 1rem;
    }

    .file-item-actions {
        opacity: 1;
    }

    .breadcrumb {
        padding: 0.75rem 1rem;
    }

    .formats-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .features-highlight {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 2rem 1rem;
        margin: 0.75rem;
    }

    .upload-area h3 {
        font-size: 1.2rem;
    }

    .files-list.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        padding: 1rem;
    }

    .file-info-details {
        font-size: 0.8rem;
    }

    .file-info-actions .action-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 1.1rem;
    margin-left: 0.75rem;
}

.theme-toggle:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent);
    transform: rotate(20deg);
}

/* Light Theme */
body.light-theme {
    --background: #f8f9fa;
    --background-secondary: #ffffff;
    --background-tertiary: #f0f2f5;
    --background-card: #ffffff;
    --background-elevated: #f5f5f5;
    --text: #1a1a2e;
    --text-muted: #555555;
    --text-light: #333333;
    --text-secondary: #666666;
    --border: #e0e0e0;
    --border-light: #d0d0d0;
    --border-lighter: #c0c0c0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 25px rgba(0, 166, 81, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
}

body.light-theme {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f2f5 100%);
}

body.light-theme::before {
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 166, 81, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(51, 153, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
}

body.light-theme .main-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 166, 81, 0.15);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

body.light-theme .hamburger-line {
    background: var(--primary);
}

body.light-theme .mobile-menu-content {
    background: rgba(255, 255, 255, 0.98);
}

body.light-theme .upload-area {
    border-color: var(--border);
}

body.light-theme .upload-area:hover {
    background: rgba(0, 166, 81, 0.03);
}

body.light-theme .search-files input {
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .sort-options select,
body.light-theme .filter-options select {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text);
}

body.light-theme .sort-options select option,
body.light-theme .filter-options select option {
    background: #ffffff;
    color: #1a1a2e;
}

body.light-theme .file-item:hover {
    background: rgba(0, 166, 81, 0.04);
}

body.light-theme .main-footer {
    background: rgba(245, 245, 245, 0.95);
}

body.light-theme .hero-title {
    -webkit-text-fill-color: transparent;
}

body.light-theme .section-title {
    -webkit-text-fill-color: transparent;
}

body.light-theme .toast {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-theme .action-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

body.light-theme .file-info-bar {
    background: rgba(0, 166, 81, 0.05);
}

/* Filter Options */
.filter-options select {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.filter-options select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

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

.modal-box {
    background: var(--background-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text);
}

.modal-header h3 i {
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

.password-input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.password-input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 3rem;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition);
}

.password-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

.password-toggle-btn {
    position: absolute;
    left: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition);
}

.password-toggle-btn:hover {
    color: var(--primary);
}

/* Preview Modal */
.preview-modal-box {
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.preview-body {
    overflow: auto;
    max-height: 60vh;
    padding: 0 !important;
}

.preview-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: repeating-conic-gradient(rgba(128,128,128,0.1) 0% 25%, transparent 0% 50%) 50% / 20px 20px;
    min-height: 200px;
}

.preview-image-wrapper img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-image-wrapper img.loaded {
    opacity: 1;
}

.preview-code {
    padding: 1.5rem;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--background-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
}

/* Preview button */
.file-action-btn.preview-btn:hover {
    background: var(--info);
    border-color: var(--info);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Language Select */
.lang-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    color: var(--text);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-select:focus {
    outline: none;
    border-color: var(--primary);
}

.lang-select option {
    background: #1e1e1e;
    color: #ffffff;
}

body.light-theme .lang-select {
    background: rgba(0,0,0,0.03);
    color: var(--text);
}

body.light-theme .lang-select option {
    background: #ffffff;
    color: #1a1a2e;
}

/* LTR support */
[dir="ltr"] .breadcrumb-separator i {
    transform: rotate(180deg);
}

[dir="ltr"] .footer-links a i {
    transform: rotate(180deg);
}

[dir="ltr"] .mobile-nav-link i:last-child {
    transform: rotate(180deg);
}

/* Tool Tabs */
.tool-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.tool-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 1rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition);
    position: relative;
}

.tool-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px 3px 0 0;
    transition: width var(--transition);
}

.tool-tab:hover {
    color: var(--primary);
    background: rgba(0, 166, 81, 0.05);
}

.tool-tab.active {
    color: var(--primary);
}

.tool-tab.active::after {
    width: 60%;
}

/* Compress Area */
.compress-area {
    padding: 2rem;
}

.compress-drop-zone {
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed var(--border-light);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition);
    cursor: pointer;
}

.compress-drop-zone:hover,
.compress-drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(0, 166, 81, 0.05);
}

/* Folder Open Animation */
.folder-transition {
    animation: folderSlideIn 0.3s ease;
}

@keyframes folderSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[dir="ltr"] .folder-transition {
    animation: folderSlideInLtr 0.3s ease;
}

@keyframes folderSlideInLtr {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* File Checkbox */
.file-checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 0.5rem;
    cursor: pointer;
}

[dir="ltr"] .file-checkbox-wrapper {
    margin-left: 0;
    margin-right: 0.5rem;
}

.file-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-checkbox:checked + .file-checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.file-checkbox:checked + .file-checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    color: white;
}

.file-item.selected {
    background: rgba(0, 166, 81, 0.08);
    border-right: 3px solid var(--primary);
}

[dir="ltr"] .file-item.selected {
    border-right: none;
    border-left: 3px solid var(--primary);
}

/* Selection Actions */
.selection-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.small {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
}

.selection-count {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(0, 166, 81, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
}

/* PDF Preview */
.preview-pdf {
    width: 100%;
    height: 60vh;
    border: none;
    border-radius: 0;
}

/* Video/Audio Preview */
.preview-media-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.3);
}

.preview-video {
    max-width: 100%;
    max-height: 55vh;
    border-radius: 8px;
}

.preview-audio-wrapper {
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 1.5rem;
}

.preview-audio-icon {
    font-size: 4rem;
    color: var(--primary);
    animation: floatIcon 3s ease-in-out infinite;
}

.preview-audio {
    width: 100%;
    max-width: 500px;
}

/* Video/Audio icon classes */
.file-item-icon.video {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.file-item-icon.audio {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* Drag hint on files */
.file-item[draggable="true"] {
    cursor: grab;
}

.file-item[draggable="true"]:active {
    cursor: grabbing;
    opacity: 0.7;
}

/* PWA Install Button */
.pwa-install-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
    transition: all var(--transition);
}

.pwa-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.pwa-install-btn.show {
    display: inline-flex;
}

@media (max-width: 768px) {
    .modal-box {
        max-width: 95vw;
    }

    .preview-modal-box {
        max-height: 90vh;
    }

    .preview-body {
        max-height: 65vh;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .lang-select {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }

    .tool-tab {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .selection-actions {
        order: 5;
        width: 100%;
    }

    .compress-drop-zone {
        padding: 3rem 1.5rem;
    }
}

/* Editor Modal */
.editor-modal-box {
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.editor-body {
    padding: 0 !important;
    flex: 1;
    display: flex;
}

.editor-textarea {
    width: 100%;
    min-height: 400px;
    max-height: 60vh;
    padding: 1.5rem;
    border: none;
    background: var(--background-secondary);
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    direction: ltr;
    text-align: left;
}

.editor-textarea:focus {
    outline: none;
}

/* Edit button */
.file-action-btn.edit-btn:hover {
    background: var(--warning);
    border-color: var(--warning);
    color: #000;
}

/* Gallery Modal */
.gallery-modal-box {
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.gallery-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    min-height: 400px;
    background: rgba(0,0,0,0.5);
    overflow: hidden;
}

.gallery-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1rem 3rem;
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 2;
}

.gallery-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.gallery-prev {
    right: 1rem;
}

.gallery-next {
    left: 1rem;
}

[dir="ltr"] .gallery-prev {
    left: 1rem;
    right: auto;
}

[dir="ltr"] .gallery-next {
    right: 1rem;
    left: auto;
}

.gallery-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.gallery-footer {
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    flex: 1;
    padding: 0.25rem 0;
}

.gallery-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.gallery-thumb:hover {
    background: var(--primary-light);
    transform: scale(1.3);
}

.gallery-thumb.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Duplicates Modal */
.duplicates-modal-box {
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.duplicates-modal-box .modal-body {
    overflow-y: auto;
    max-height: 60vh;
}

.duplicates-empty {
    text-align: center;
    padding: 2rem;
    color: var(--success);
}

.duplicates-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.duplicates-empty p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.duplicates-summary {
    margin-bottom: 1rem;
}

.duplicates-summary p {
    color: var(--text);
}

.duplicate-group {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.duplicate-group-header {
    font-weight: 600;
    color: var(--warning);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.duplicate-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.duplicate-item:last-child {
    border-bottom: none;
}

.duplicate-item i {
    color: var(--text-secondary);
}

/* Keyboard shortcut hints */
.shortcut-hint {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-family: monospace;
}

@media (max-width: 768px) {
    .editor-modal-box {
        max-width: 95vw;
    }

    .editor-textarea {
        min-height: 250px;
    }

    .gallery-modal-box {
        max-width: 95vw;
        max-height: 85vh;
    }

    .gallery-image-container {
        padding: 1rem;
    }

    .gallery-nav {
        width: 32px;
        height: 32px;
    }

    .gallery-image-container img {
        max-height: 40vh;
    }
}
