:root {
    --primary-color: #0066ff;
    --primary-light: #e6f0ff;
    --error-color: #ff4444;
    --error-light: #ffe6e6;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --background-light: #f8f9fc;
    --border-color: #e1e4e8;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --radius-sm: 8px;
    --radius-md: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f6f8ff 0%, #f0f4ff 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

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

.container {
    text-align: left;
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: linear-gradient(to bottom, #ffffff, #fafbff);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0px;
    color: var(--text-primary);
    background: linear-gradient(120deg, var(--text-primary), #404040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
    padding-left: 2px;
}

.description {
    text-align: left;
    margin-bottom: 24px;
    line-height: 1.5;
}

.description p {
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.description p:first-child {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.upload-area {
    border: 2px dashed var(--border-color);
    padding: 40px 20px;
    margin: 0px 0px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    background: linear-gradient(to bottom, var(--background-light), #ffffff);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, #ffffff, var(--primary-light));
    transform: translateY(-1px);
}

.upload-area:hover .upload-icon {
    transform: translateY(-2px);
    opacity: 1;
}

.upload-area p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.upload-icon {
    width: 64px;
    height: 64px;
    transition: all 0.2s ease;
    opacity: 0.7;
    color: var(--primary-color);
}

.upload-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Remove the old icon */
.upload-area::before {
    content: none;
}

.queue {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin: 16px 0;
}

.thumbnail {
    border: 1px solid var(--border-color);
    padding: 16px;
    position: relative;
    border-radius: var(--radius-sm);
    background: linear-gradient(to bottom, #ffffff, var(--background-light));
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

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

.thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.slider-container {
    margin: 16px 0;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 2px;
    outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px var(--primary-light);
}

.file-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 8px 0;
    text-align: left;
}

.buttons {
    margin-top: 0px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

/* Main action buttons */
.buttons button {
    padding: 12px 24px;
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 102, 255, 0.1);
    min-width: 140px;
}

/* Clear Queue button specific styles */
.buttons button#clearQueue {
    background: white;
    color: #f83b3b;
    border-color: #f83b3b;
    box-shadow: 0 2px 4px rgba(248, 59, 59, 0.1);
}

.buttons button#clearQueue:hover {
    background: #f83b3b;
    color: white;
    box-shadow: 0 4px 8px rgba(248, 59, 59, 0.2);
}

.buttons button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.2);
}

.buttons button:disabled {
    background: var(--background-light);
    border-color: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Thumbnail buttons */
.thumbnail button:not(.remove-btn) {
    width: 100%;
    margin-top: auto;
    padding: 10px;
    font-size: 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 102, 255, 0.1);
}

.thumbnail button:not(.remove-btn):hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.2);
}

.thumbnail button:not(.remove-btn):disabled {
    background: var(--background-light);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Remove button */
.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.remove-btn:hover {
    background: var(--error-light);
    color: var(--error-color);
    transform: none;
}

.detailed-content {
    margin: 0;
    padding: 30px;
    background: linear-gradient(to bottom, #ffffff, #fafbff);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.detailed-content h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.detailed-content h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 32px 0 16px;
    font-weight: 600;
}

.detailed-content h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0 0 12px;
    font-weight: 500;
}

.detailed-content p {
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.detailed-content ul, 
.detailed-content ol {
    margin: 16px 0;
    padding-left: 20px;
}

.detailed-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.detailed-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.compression-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.compression-type {
    padding: 20px;
    background: var(--background-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.compression-type p {
    margin-bottom: 0;
}

.logo-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 30px;
    width: auto;
}

.privacy-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.privacy-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.privacy-link a:hover {
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow-y: auto;
}

.privacy-modal-content {
    position: relative;
    background: white;
    margin: 40px auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-height: 80vh;
    overflow-y: auto;
}

.privacy-modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.privacy-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--text-primary);
}

.privacy-modal-body {
    padding: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.privacy-modal-body h3 {
    color: var(--text-primary);
    margin: 24px 0 16px;
    font-size: 20px;
}

.privacy-modal-body h4 {
    color: var(--text-primary);
    margin: 20px 0 12px;
    font-size: 18px;
}

.privacy-modal-body p {
    margin-bottom: 16px;
}

.privacy-modal-body ul {
    margin: 16px 0;
    padding-left: 20px;
}

.privacy-modal-body li {
    margin-bottom: 8px;
}

.last-updated {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .description p {
        font-size: 14px;
    }

    .description p:first-child {
        font-size: 15px;
    }

    .upload-area {
        padding: 50px 15px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .upload-icon {
        width: 72px;
        height: 72px;
    }

    .upload-area p {
        font-size: 15px;
    }

    .detailed-content {
        padding: 20px;
    }
    
    .compression-types {
        grid-template-columns: 1fr;
    }

    .buttons {
        flex-direction: column;
        gap: 12px;
    }

    .buttons button {
        width: 100%;
    }

    .detailed-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .detailed-content h3 {
        font-size: 18px;
        margin: 24px 0 14px;
    }

    .detailed-content h4 {
        font-size: 16px;
        margin: 0 0 10px;
    }

    .detailed-content p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .detailed-content li {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .logo-container {
        padding: 12px;
    }
    
    .logo {
        height: 28px;
    }

    .privacy-modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .privacy-modal-header {
        padding: 15px;
    }

    .privacy-modal-header h2 {
        font-size: 20px;
    }

    .privacy-modal-body {
        padding: 15px;
    }

    .privacy-modal-body h3 {
        font-size: 18px;
        margin: 20px 0 14px;
    }

    .privacy-modal-body h4 {
        font-size: 16px;
        margin: 18px 0 10px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .description p {
        font-size: 13px;
    }

    .description p:first-child {
        font-size: 14px;
    }

    .upload-area {
        padding: 35px 10px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .upload-icon {
        width: 64px;
        height: 64px;
    }

    .upload-area p {
        font-size: 14px;
    }

    .buttons {
        flex-direction: column;
        gap: 12px;
    }

    .buttons button {
        width: 100%;
    }

    .detailed-content {
        padding: 16px;
    }

    .detailed-content h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .detailed-content h3 {
        font-size: 16px;
        margin: 20px 0 12px;
    }

    .detailed-content h4 {
        font-size: 15px;
        margin: 0 0 8px;
    }

    .detailed-content p {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .detailed-content li {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .detailed-content ul,
    .detailed-content ol {
        margin: 12px 0;
        padding-left: 16px;
    }

    .logo-container {
        padding: 8px;
    }
    
    .logo {
        height: 24px;
    }

    .privacy-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .privacy-modal-header {
        padding: 12px;
    }

    .privacy-modal-header h2 {
        font-size: 18px;
    }

    .privacy-modal-body {
        padding: 12px;
    }

    .privacy-modal-body h3 {
        font-size: 16px;
        margin: 16px 0 12px;
    }

    .privacy-modal-body h4 {
        font-size: 15px;
        margin: 14px 0 8px;
    }

    .privacy-link {
        bottom: 10px;
        right: 10px;
    }
} 