.bic-container {
    width: 100%;
    max-width: 650px;
    margin: 30px auto;
    padding: 25px;
    background: #121214;
    border: 1px solid #27272a;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #f4f4f5;
    box-sizing: border-box;
}

.bic-container * {
    box-sizing: border-box;
}

.bic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #27272a;
    padding-bottom: 15px;
}

.bic-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.bic-quality-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bic-quality-control label {
    font-size: 13px;
    color: #a1a1aa;
    font-weight: 500;
}

.bic-quality-control input[type="range"] {
    width: 100px;
    accent-color: #6366f1;
    cursor: pointer;
}

.bic-quality-control span {
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    min-width: 35px;
}

.bic-drop-zone {
    width: 100%;
    min-height: 180px;
    border: 2px dashed #3f3f46;
    border-radius: 12px;
    background: #18181b;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
}

.bic-drop-zone:hover, .bic-drop-zone.dragover {
    border-color: #6366f1;
    background: #1e1b4b;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.bic-drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bic-upload-icon {
    color: #71717a;
    transition: color 0.3s ease;
}

.bic-drop-zone:hover .bic-upload-icon, .bic-drop-zone.dragover .bic-upload-icon {
    color: #818cf8;
}

.bic-drop-zone p {
    font-size: 14px;
    color: #a1a1aa;
    margin: 0;
}

.bic-drop-zone p span {
    color: #818cf8;
    font-weight: 600;
    text-decoration: underline;
}

/* Status Area */
.bic-status-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px;
    background: #18181b;
    border-radius: 12px;
    border: 1px solid #27272a;
}

.bic-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #6366f1;
    animation: bic-spin 1s ease-in-out infinite;
}

@keyframes bic-spin {
    to { transform: rotate(360deg); }
}

#bic-status-text {
    font-size: 14px;
    color: #e4e4e7;
    margin: 0;
    font-weight: 500;
}

/* Result Area */
.bic-result-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bic-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.bic-preview-box {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.bic-preview-box h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bic-image-wrapper {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #09090b;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #27272a;
}

.bic-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bic-file-size {
    font-size: 13px;
    font-weight: 600;
    color: #e4e4e7;
    margin: 0;
}

.bic-savings-badge {
    align-self: center;
    background: #064e3b;
    color: #34d399;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #047857;
}

.bic-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.bic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4f46e5;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bic-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.bic-btn-secondary {
    background: #27272a;
    color: #e4e4e7 !important;
}

.bic-btn-secondary:hover {
    background: #3f3f46;
}

@media (max-width: 500px) {
    .bic-container {
        padding: 15px;
    }
    
    .bic-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .bic-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .bic-quality-control {
        width: 100%;
        justify-content: space-between;
    }
    
    .bic-actions {
        flex-direction: column;
    }
    
    .bic-btn {
        width: 100%;
    }
}
