:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

.navbar-brand {
    font-size: 1.5rem;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

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

.text-primary {
    color: var(--primary-color) !important;
}

/* Upload zone */
.upload-zone {
    border: 3px dashed #dee2e6;
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.upload-content i {
    font-size: 4rem;
}

/* Stat cards */
.stat-card {
    border-radius: 1rem;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    opacity: 0.8;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.75rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Hover lift for landing page cards */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

/* Pre / code */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    vertical-align: middle;
}

/* Canvas wrapper for calibration */
.canvas-wrapper {
    overflow: auto;
    max-height: 600px;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #1a1a1a;
    text-align: center;
}

.canvas-wrapper canvas {
    display: inline-block;
    cursor: crosshair;
}

/* File list scroll for batch upload */
.file-list-scroll {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .stat-card .card-body {
        padding: 1rem;
    }

    .stat-card i {
        font-size: 2rem !important;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .stat-card p {
        font-size: 0.75rem;
    }

    .upload-content i {
        font-size: 3rem;
    }

    .table {
        font-size: 0.875rem;
    }

    .btn {
        padding: 0.5rem 1rem;
    }

    .canvas-wrapper {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease;
}

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

.footer {
    margin-top: auto;
}

/* Wizard step transitions */
.wizard-step {
    animation: fadeIn 0.3s ease;
}

.progress {
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.4s ease;
    background-color: var(--primary-color);
}
