/* ============================================
   Comprimir.site - Estilos Globales
   Diseño modular, responsivo y escalable
   ============================================ */

/* === VARIABLES CSS === */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary: #7c3aed;
    --accent: #ec4899;
    --header-gradient-start: #1a1830;
    --header-gradient-end: #492884;

    --text-primary: #1a202c;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;
    --bg-card: #ffffff;

    --border-color: #e2e8f0;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 4px 15px rgba(79, 70, 229, 0.3);

    --font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    --container-max: 1280px;
    --sidebar-width: 320px;
    --header-height: auto;

    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === HEADER === */
.global-header {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.global-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo-link {
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.header-main {
    flex: 1;
    min-width: 0;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-subtitle {
    font-size: 0.875rem;
    opacity: 0.85;
    margin: 0.25rem 0 0;
}

.header-actions {
    flex-shrink: 0;
}

.language-selector {
    position: relative;
}

.language-select-styled {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    min-width: 130px;
}

.language-select-styled:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-select-styled:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.3);
}

.language-select-styled option {
    background: white;
    color: var(--text-primary);
}

/* === NAVIGATION === */
.site-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 87px;
    z-index: 999;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

.nav-tools-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
    padding-bottom: 0.25rem;
}

.nav-tools-scroll::-webkit-scrollbar {
    height: 4px;
}

.nav-tools-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.nav-tools-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 2px;
}

.nav-tool-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.nav-tool-link:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-color: var(--border-color);
}

.nav-tool-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-primary);
    border-color: transparent;
}

.nav-tool-icon {
    font-size: 1.1rem;
}

/* === LAYOUT === */
.page-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 2rem;
    flex: 1;
}

.page-layout.full-width {
    grid-template-columns: 1fr;
}

.page-main {
    min-width: 0;
}

.page-sidebar {
    position: sticky;
    top: 160px;
    height: fit-content;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

/* === TOOL CARDS (Landing Page) === */
.landing-hero {
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.landing-hero h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.landing-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem 3rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.tool-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 12px;
}

.tool-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tool-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

.tool-card-action::after {
    content: '→';
    transition: transform 0.2s ease;
}

.tool-card:hover .tool-card-action::after {
    transform: translateX(4px);
}

/* === TOOL PAGE CONTENT === */
.tool-header {
    margin-bottom: 2rem;
}

.tool-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tool-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tool-section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    position: relative;
}

.tool-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.tool-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* === UPLOAD AREA === */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-light) 100%);
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

.upload-area.drag-over {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.3);
}

.upload-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1);
}

.upload-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-input {
    display: block;
    margin: 1rem auto 0;
    max-width: 100%;
}

/* === BUTTONS === */
.convert-btn,
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 200px;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.convert-btn::before,
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.convert-btn:hover::before,
.btn-primary:hover::before {
    left: 100%;
}

.convert-btn:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.convert-btn:disabled,
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.convert-btn:disabled::before,
.btn-primary:disabled::before {
    display: none;
}

.btn-center {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

/* === PROGRESS BAR === */
.progress-bar {
    display: none;
    background: var(--bg-light);
    border-radius: 10px;
    height: 12px;
    margin: 1.5rem 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* === CONVERSION GRID === */
.conversion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.conversion-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.conversion-btn .emoji {
    font-size: 1.5rem;
}

.conversion-btn small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.conversion-btn:hover {
    border-color: var(--primary-light);
    background: #f0f4ff;
}

.conversion-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

/* === QUALITY CONTROLS === */
.quality-control-box {
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.quality-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.quality-labels-flex {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.range-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* === ALERTS & MESSAGES === */
.success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fbbf24;
    color: #92400e;
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.error {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border: 1px solid #f87171;
    color: #991b1b;
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    color: #1e40af;
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* === RESULT AREA === */
.result-area {
    display: none;
    margin-top: 1.5rem;
}

.file-info-result {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 1rem 1.25rem;
}

.file-info-result .file-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.file-info-result .file-size {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* === FILE INFO BOX === */
.file-info-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.file-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(124, 58, 237, 0.05));
    border-bottom: 1px solid var(--border-color);
}

.file-info-icon {
    font-size: 1.25rem;
}

.file-info-title {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.file-info-remove {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.file-info-remove:hover {
    background: #fecaca;
    color: #dc2626;
}

.file-info-content {
    padding: 0.75rem 1rem;
}

.file-info-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.file-info-label {
    color: var(--text-secondary);
    min-width: 140px;
}

.file-info-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* === SIDEBAR === */
.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

/* === FEEDBACK FORM === */
.feedback-form h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feedback-form p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.rating-section {
    margin-bottom: 1rem;
}

.rating-section label {
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.emoji-rating {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.emoji-btn {
    font-size: 1.75rem;
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.emoji-btn:hover {
    transform: scale(1.2);
    border-color: var(--primary-light);
}

.emoji-btn.selected {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.1);
}

.rating-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-section {
    margin-bottom: 1rem;
}

.comment-section label {
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.comment-section textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-family: var(--font-family);
    font-size: 0.85rem;
    resize: vertical;
    transition: var(--transition-fast);
}

.comment-section textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.share-section {
    margin-bottom: 1rem;
}

.share-section label {
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.share-section select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
}

.submit-feedback-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.feedback-message {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.feedback-message.hidden {
    display: none;
}

.feedback-message.show {
    display: block;
}

/* === FOOTER === */
.site-footer {
    background: var(--header-gradient-start);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.footer-content p {
    font-size: 0.875rem;
}

.footer-link {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* === VIDEO COMPRESSION STATUS === */
.video-compression-status {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-top: 1rem;
}

.compression-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.compression-icon {
    font-size: 2rem;
}

.compression-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.compression-details {
    margin-bottom: 1.25rem;
}

.detail-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.detail-label {
    color: var(--text-secondary);
    min-width: 150px;
}

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

.progress-container {
    margin-bottom: 1.25rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.enhanced-progress-bar {
    height: 10px;
    background: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.enhanced-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
    transition: width 0.3s ease;
    width: 0%;
}

.compression-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compression-steps .step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.compression-steps .step.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    font-weight: 500;
}

.compression-steps .step.completed {
    color: #10b981;
}

.compression-steps .step.pulse {
    animation: stepPulse 1.5s infinite;
}

@keyframes stepPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* === SELECTED IMAGES === */
.selected-images-container {
    display: none;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.selected-images-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.selected-images-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.clear-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.clear-btn:hover {
    border-color: #f87171;
    color: #dc2626;
    background: #fef2f2;
}

.images-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
}

.image-preview-item {
    position: relative;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    text-align: center;
}

.image-preview-thumb {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.image-preview-info {
    margin-top: 0.25rem;
}

.image-preview-name {
    font-size: 0.65rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-preview-size {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.image-preview-status {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.8rem;
}

.image-preview-progress {
    height: 2px;
    background: transparent;
    margin-top: 0.25rem;
    border-radius: 1px;
}

.remove-image-btn {
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(220, 38, 38, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-preview-item:hover .remove-image-btn {
    opacity: 1;
}

.images-summary-box {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* === INFO TEXT === */
.info-text-small {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    line-height: 1.6;
}

.info-text-blue {
    color: var(--primary);
}

.warning-text-small {
    color: #f59e0b;
}

.mb-15 {
    margin-bottom: 15px;
}

.font-weight-600 {
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
        max-height: none;
    }

    :root {
        --sidebar-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .header-title {
        font-size: 1.1rem;
    }

    .header-subtitle {
        display: none;
    }

    .logo-img {
        height: 40px;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    .nav-tool-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .nav-tool-name {
        display: none;
    }

    .nav-tool-icon {
        font-size: 1.3rem;
    }

    .page-layout {
        padding: 1rem;
        gap: 1.5rem;
    }

    .tool-section {
        padding: 1.25rem;
    }

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

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

    .upload-text {
        font-size: 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem 2rem;
    }

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

    .landing-hero h2 {
        font-size: 1.5rem;
    }

    .conversion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .convert-btn,
    .btn-primary {
        width: 100%;
        min-width: unset;
    }

    .site-nav {
        top: 73px;
    }
}

@media (max-width: 480px) {
    .global-header {
        padding: 1rem 0;
    }

    .header-actions {
        order: -1;
        width: 100%;
    }

    .language-select-styled {
        width: 100%;
    }

    .header-content {
        justify-content: center;
        text-align: center;
    }

    .header-main {
        width: 100%;
    }

    .quality-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .conversion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .images-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.4s ease-out;
}

/* === PRINT === */
@media print {
    .global-header,
    .site-nav,
    .site-footer,
    .page-sidebar {
        display: none;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }
}
