:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --dark-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #16213e 60%, #0f0f23 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-red: #ef4444;
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --backdrop-blur: blur(25px);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Enhanced Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #000000 0%,
        #0f0f23 15%,
        #16213e 30%,
        #1a1a2e 45%,
        #0e1b3c 60%,
        #0a0a0a 75%,
        #000000 100%
    );
    background-size: 400% 400%;
    animation: gradientFlow 25s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 50% 0%; }
}

.floating-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(139, 92, 246, 0.4), 
        rgba(139, 92, 246, 0.2),
        rgba(139, 92, 246, 0.05)
    );
    backdrop-filter: blur(3px);
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 150px;
    height: 150px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    background: radial-gradient(circle at 30% 30%, 
        rgba(59, 130, 246, 0.4), 
        rgba(59, 130, 246, 0.1)
    );
}

.orb-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
    background: radial-gradient(circle at 30% 30%, 
        rgba(236, 72, 153, 0.4), 
        rgba(236, 72, 153, 0.1)
    );
}

.orb-3 {
    width: 120px;
    height: 120px;
    bottom: 25%;
    left: 25%;
    animation-delay: -14s;
    background: radial-gradient(circle at 30% 30%, 
        rgba(16, 185, 129, 0.4), 
        rgba(16, 185, 129, 0.1)
    );
}

.orb-4 {
    width: 80px;
    height: 80px;
    top: 8%;
    right: 35%;
    animation-delay: -3s;
}

.orb-5 {
    width: 110px;
    height: 110px;
    top: 45%;
    left: 60%;
    animation-delay: -10s;
}

.orb-6 {
    width: 90px;
    height: 90px;
    bottom: 15%;
    right: 40%;
    animation-delay: -17s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(40px, -25px) rotate(90deg) scale(1.1); }
    50% { transform: translate(-30px, 35px) rotate(180deg) scale(0.9); }
    75% { transform: translate(25px, -40px) rotate(270deg) scale(1.05); }
}

/* Header */
.header {
    padding: 1.2rem 0;
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.2);
}

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

.logo-container {
    display: flex;
    align-items: center;
    width: 100%;
}

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

.logo i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
}

.tagline {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Main Layout - Cập nhật layout */
.main-container {
    display: grid;
    grid-template-columns: 280px 1fr 250px; /* Thêm sidebar bên phải */
    height: calc(100vh - 75px);
    gap: 0;
}

/* Sidebar */
.sidebar-left {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: var(--backdrop-blur);
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
}

.sidebar-content {
    padding: 1.5rem;
}

/* Upload Section */
.upload-section {
    margin-bottom: 1.5rem;
}

.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

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

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.upload-area.dragover {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.05);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upload-text span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

/* Settings Panel */
.settings-panel {
    animation: slideInLeft 0.4s ease-out;
}

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

.settings-group {
    margin-bottom: 1.5rem;
}

.setting-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.setting-value {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Enhanced Slider */
.slider-container {
    position: relative;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    position: relative;
}

.slider::-webkit-slider-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

/* Format Select */
.format-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    backdrop-filter: var(--backdrop-blur);
    transition: all 0.3s ease;
}

.format-select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Batch Info */
.batch-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--backdrop-blur);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--accent-purple);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item.highlight {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.85rem;
}

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

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

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-size: 0.875rem;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

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

.btn-secondary {
    background: rgba(239, 68, 68, 0.8);
    color: white;
}

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

.btn:active {
    transform: translateY(-1px);
}

/* Main Viewer - Layout mới */
.main-viewer {
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Welcome Screen */
.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.welcome-content {
    max-width: 500px;
    padding: 2rem;
}

.welcome-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 3s infinite;
}

.welcome-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.welcome-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.feature i {
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Comparison View - Cập nhật cho 2 ảnh cạnh nhau */
.comparison-view {
    flex: 1;
    display: none;
    flex-direction: column;
    padding: 1rem;
    animation: fadeIn 0.5s ease-out;
    min-height: 0;
}

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

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

/* Two Images Side by Side */
.comparison-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 cột cạnh nhau */
    gap: 1rem;
    min-height: 300px; /* Tăng chiều cao */
    max-height: calc(100vh - 240px); /* Tăng kích thước tối đa */
}

.image-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-box-title {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: var(--backdrop-blur);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    z-index: 5;
}

.original-title {
    color: var(--accent-blue);
}

.compressed-title {
    color: var(--accent-green);
}

.image-display {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Sidebar Right - Thông tin ảnh */
.sidebar-right {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: var(--backdrop-blur);
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
    padding: 1rem;
}

.image-stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    padding: 1rem;
}

.stats-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.stats-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stats-item:last-child {
    margin-bottom: 0;
}

.stats-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.stats-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.stats-value.highlight {
    color: var(--accent-green);
    font-weight: 700;
}

.stats-value.negative {
    color: var(--accent-red);
}

/* Thumbnails Section */
.thumbnails-section {
    height: 160px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    flex-shrink: 0;
}

.thumbnails-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.thumbnails-header h4 {
    color: var(--text-primary);
    font-size: 0.85rem;
}

.thumbnails-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.thumbnails-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    height: 100px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 100px;
    height: 90px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.thumbnail-item.active {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

.thumbnail-item.selected {
    border-color: var(--accent-green);
}

.thumbnail-image {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.thumbnail-info {
    padding: 0.25rem;
    font-size: 0.65rem;
    text-align: center;
    color: var(--text-secondary);
}

.thumbnail-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 2px;
}

.thumbnail-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-checkbox.checked {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.thumbnail-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 10px;
}

.thumbnail-delete {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail-delete:hover {
    background: var(--accent-red);
    transform: scale(1.1);
}

/* Processing Progress */
.processing-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: var(--backdrop-blur);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    text-align: center;
    width: 300px;
    z-index: 20;
    box-shadow: var(--shadow-lg);
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--accent-purple);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.progress-text {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--backdrop-blur);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

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

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

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

/* Toast */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    display: none;
    z-index: 1001;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

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

.toast-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 250px 1fr 220px;
    }
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 220px 1fr 200px;
    }
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .sidebar-left, .sidebar-right {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .thumbnails-section {
        height: 140px;
    }
    
    .thumbnails-grid {
        height: 80px;
    }
    
    .thumbnail-item {
        width: 90px;
        height: 80px;
    }
    
    .thumbnail-image {
        height: 50px;
    }
    
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in { animation: fadeIn 0.5s ease-out; }
.slide-up { animation: slideUp 0.5s ease-out; }
.pulse { animation: pulse 2s infinite; }

.url-upload-button {
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.url-btn {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.url-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.url-modal {
    width: 500px;
    max-width: 90%;
}

.url-input-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.url-input-container label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.url-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.url-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.url-preview {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    border: 1px dashed var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.preview-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

.url-error {
    color: var(--accent-red);
    font-size: 0.85rem;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.url-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Brand Tag in Header */
.brand-tag {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.brand-tag a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-left: 5px;
}

.brand-tag a:hover {
    color: var(--accent-pink);
    text-decoration: underline;
}

/* Đảm bảo logo-container hiển thị đúng */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
    .brand-tag {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .brand-tag {
        display: none; /* Ẩn trên màn hình cực nhỏ */
    }
}
