/* Custom Styling for AuraCut - Background Remover */

:root {
    --bg-dark: #0b0d19;
    --bg-card: rgba(20, 22, 41, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    --accent-cyan: #06b6d4;
    --primary-color: #6366f1;
    --secondary-color: rgba(255, 255, 255, 0.07);
    --secondary-hover: rgba(255, 255, 255, 0.12);
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Background Decor */
.background-decor {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    top: -10%;
    left: 10%;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background: #06b6d4;
    bottom: -15%;
    right: 10%;
}

/* App Container */
.app-container {
    width: 90%;
    max-width: 1000px;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Header */
.app-header {
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 2.2rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #a5b4fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Glassmorphism Card styling */
.glassmorphism {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-lg);
}

.card {
    padding: 24px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Dropzone (Step 1) */
.dropzone-container {
    width: 100%;
    height: 100%;
}

.dropzone {
    width: 100%;
    height: 400px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.01);
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.dropzone-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.dropzone:hover .icon-wrapper, .dropzone.dragover .icon-wrapper {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    transform: translateY(-4px);
}

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

.dropzone h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

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

.badge {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #a5b4fc;
}

.file-input-hidden {
    display: none;
}

/* Results Panel (Step 2) */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.visual-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .visual-panel {
        grid-template-columns: 1fr;
    }
}

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

.box-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 16px;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* Transparent Background Grid Checkerboard Pattern */
.checkerboard-bg {
    background-color: #1a1e2f;
    background-image: 
        linear-gradient(45deg, #121422 25%, transparent 25%), 
        linear-gradient(-45deg, #121422 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #121422 75%), 
        linear-gradient(-45deg, transparent 75%, #121422 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Loader Overlay */
.loading-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(11, 13, 25, 0.85);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-status {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

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

/* Action Bar Buttons */
.action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 8px;
}

@media (max-width: 500px) {
    .action-bar {
        flex-direction: column-reverse;
    }
    .action-bar button {
        width: 100%;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

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

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    color: white;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Info Section */
.info-section {
    margin-top: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.feature-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: white;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Footer styling */
.app-footer {
    text-align: center;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Video Preview and Tabs styling */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: white;
    background: var(--primary-gradient);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.image-wrapper video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* Progress Bar Components */
.progress-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 220px;
    margin-top: 12px;
}

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

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-cyan));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* Settings/Options Panel Styling */
.settings-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    transition: var(--transition);
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.setting-select {
    background: rgba(11, 13, 25, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.setting-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

