/* HEIC2JPG & MOV2MP4 Converter Styles */

.converter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.converter-header {
    text-align: center;
    margin-bottom: 30px;
}

.converter-header h1 {
    color: #2c3e50;
    margin: 0 0 8px;
    font-size: 2.5rem;
}

.converter-header p {
    color: #7f8c8d;
    margin: 0;
    font-size: 1.1rem;
}

.converter-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* ドロップゾーン */
.drop-zone {
    border: 3px dashed #bdc3c7;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone.drag-active {
    border-color: #3498db;
    background: #e3f2fd;
    transform: scale(1.02);
}

.drop-content {
    pointer-events: none;
}

.drop-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.drop-zone h3 {
    color: #2c3e50;
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.drop-zone p {
    color: #7f8c8d;
    margin: 0 0 20px;
    font-size: 1.1rem;
}

.btn-select {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    pointer-events: auto;
}

.btn-select:hover {
    background: #2980b9;
}

.drop-zone small {
    display: block;
    color: #95a5a6;
    margin-top: 16px;
    font-size: 0.9rem;
}

/* ファイルキュー */
.file-queue {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.queue-header {
    background: #34495e;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.queue-controls {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary {
    background: #27ae60;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2ecc71;
}

.btn-clear {
    background: #e74c3c;
    color: white;
}

.btn-clear:hover:not(:disabled) {
    background: #c0392b;
}

.btn-download-all {
    background: #f39c12;
    color: white;
}

.btn-download-all:hover:not(:disabled) {
    background: #e67e22;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ファイルアイテム */
.file-item {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #ecf0f1;
    align-items: center;
}

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

.file-icon {
    font-size: 1.5rem;
    text-align: center;
}

.file-info {
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 2px;
}

.file-status {
    text-align: center;
    min-width: 80px;
}

.progress {
    color: #f39c12;
    font-weight: 500;
}

.status {
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.status-pending .status {
    background: #ecf0f1;
    color: #7f8c8d;
}

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

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

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

.error-status {
    cursor: help;
    position: relative;
}

.error-status:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

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

.btn-download, .btn-remove {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-download:hover {
    background: #e8f5e8;
}

.btn-remove:hover {
    background: #ffeaea;
}

/* 設定パネル */
.settings-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.settings-panel h3 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.setting {
    margin-bottom: 20px;
}

.setting:last-child {
    margin-bottom: 0;
}

.setting label {
    display: block;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.setting input[type="range"] {
    width: 100%;
    margin: 8px 0;
}

.setting input[type="checkbox"] {
    margin-right: 8px;
}

.setting select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
}

.setting select:focus {
    outline: none;
    border-color: #3498db;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .converter-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .settings-panel {
        position: static;
    }
    
    .drop-zone {
        padding: 40px 20px;
    }
    
    .queue-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .file-item {
        grid-template-columns: 40px 1fr;
        gap: 12px;
    }
    
    .file-status,
    .file-actions {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: 8px;
    }
}