/* Base Styles */
:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    min-height: 100vh;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.logo-icon {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 2rem 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 2rem;
}

.intro-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Step Styles */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.step {
    display: flex;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    opacity: 0.7;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
}

.step.active {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    opacity: 1;
    transform: translateY(0);
    border-left: 4px solid var(--primary-color);
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.instructions {
    margin-left: 1.5rem;
    margin-top: 0.75rem;
}

.instructions li {
    margin-bottom: 0.5rem;
}

/* Form Styles */
#uploadForm {
    margin-top: 1.5rem;
}

.file-upload-container {
    margin-bottom: 1.5rem;
}

.file-upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-speed) ease;
    background-color: rgba(67, 97, 238, 0.05);
    cursor: pointer;
}

.file-upload-area:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.file-upload-area.drag-over {
    background-color: rgba(67, 97, 238, 0.15);
    border-color: var(--accent-color);
    transform: scale(1.01);
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
}

.file-upload-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.or-text {
    margin: 1rem 0;
    color: var(--text-light);
}

.selected-file-name {
    margin-top: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    word-break: break-all;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

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

.btn-secondary:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.btn-primary i, .btn-secondary i {
    margin-left: 0.5rem;
}

#uploadButton {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

/* Progress Styles */
#progressContainer {
    margin-top: 1.5rem;
    display: block;
}

.progress-wrapper {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#progressBar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

#progressBar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1)
    );
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

#progressText {
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
}

/* Success Animation */
.success-animation {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--success-color);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--success-color);
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success-color);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px rgba(76, 175, 80, 0.1);
    }
}

/* Message Styles */
#message {
    text-align: center;
    font-weight: 500;
    color: var(--success-color);
    margin: 1rem 0;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    background-color: rgba(76, 175, 80, 0.1);
}

/* Final Instructions */
.final-instructions {
    margin-top: 1.5rem;
}

.final-instructions ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.final-instructions li {
    margin-bottom: 0.5rem;
}

#newUploadButton {
    margin: 0 auto;
    display: block;
}

/* Footer Styles */
footer {
    background-color: var(--bg-white);
    padding: 1.5rem 2rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .step {
        flex-direction: column;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Hide steps initially */
#step1, #step3, #step4 {
    display: none;
}

/* Show step1 initially */
#step1 {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideIn 0.5s ease-in-out;
}
