* {
    transition: 0.5s;
}
h1 {
    text-transform: capitalize;
}
h3 {
    font-size: 27px;
    font-weight: bold;
    font-family: var(--font-titles);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--primary-saturated);
}
.container {
    margin: 0 auto;
    padding: 40px 100px;
}
.content-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: stretch;
    margin-top: 50px;
}


/* form */
.form-section {
    background-color: var(--primary-light);
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 3;
}
.form-title {
    margin-bottom: 35px;
    text-align: center;
}
.form-group {
    margin-bottom: 30px;
    width: 100%;
}
.form-group label {
    display: block;
    font-family: var(--font-text-secondary);
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}
/* form inputs */
.file-input-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 10px;
    transition: 0.5s;
}
.file-input-button {
    background-color: var(--primary);
    color: var(--text-dark);
    font-family: var(--font-text-secondary);
    padding: 14px 24px;
    border-radius: 25px;
    border: none;
    transition: 0.5s;
    display: inline-block;
    min-width: 180px;
    text-align: center;
}
.file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.file-name {
    margin-left: 10px;
    font-family: var(--font-text-secondary);
    font-style: italic;
    display: block;
    margin-top: 8px;
    padding-left: 5px;
}
.file-input-container:hover {
    transform: translateY(-2px);
    opacity: 0.7;
}
.file-input-container:hover .file-input-button {
    color: var(--text-light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-saturated);
}
/* submit form */
.submit-button {
    background-color: var(--accent);
    color: var(--text-light);
    font-family: var(--font-titles);
    font-size: 18px;
    padding: 14px 35px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 40px auto 10px;
    min-width: 200px;
    text-align: center;
}
.submit-button:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

/* instructions right sidebar */
.instructions {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 25%;
    font-family: var(--font-text-secondary);
    background-color: rgba(100, 154, 177, 0.1);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--grey-blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.instructions h3 {
    cursor: pointer;
    color: var(--grey-blue);
    border-bottom: 1px solid rgba(100, 154, 177, 0.3);
}
.instructions p {
    margin: 24px 0px;
    line-height: 1.8;
    color: var(--text-dark);
    padding-left: 10px;
    position: relative;
}
.instructions p span {
    color: var(--grey-blue);
    font-weight: bold;
    font-size: 18px;
    margin-right: 5px;
}
/* hidden instructions mode */
.instructions.hidden:not(:hover) p {
    display: none;
}
.instructions.hidden:not(:hover) {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    width: fit-content;
    max-height: 2em;
}
.instructions.hidden:not(:hover) h3 {
    border: none;
    display: inline-block;
    width: fit-content;
}

/* basic responsivity */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    .instructions {
        margin-top: 30px;
        position: static;
    }
    .form-section, .instructions {
        padding: 25px;
    }
}


/* loading effect */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-content {
    text-align: center;
}

.animated-icon {
    font-size: 60px;
    color: var(--primary-saturated);
    margin-bottom: 20px;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-20px); 
    }
    60% { 
        transform: translateY(-10px); 
    }
}

.loading-text {
    font-family: var(--font-text);
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.loading-subtext {
    font-family: var(--font-text-secondary);
    color: var(--grey-blue);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 20px;
}

/* Progress bar */
.progress-bar-container {
    background: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-saturated) 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 2s infinite;
}

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

.progress-percentage {
    font-size: 14px;
    color: var(--grey-blue);
    margin-top: 10px;
    font-weight: 500;
}

/* Download button when ready */
.download-button {
    background-color: var(--accent);
    color: var(--text-light);
    font-family: var(--font-titles);
    font-size: 18px;
    padding: 14px 35px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-decoration: none;
    display: inline-block;
}

.download-button:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

/* Success state */
.success-icon {
    color: #4caf50;
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Error state */
.error-icon {
    color: #f44336;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}