/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding-top: 60px; /* Add padding to body to avoid content being hidden by fixed navbar */
}

/* Navbar Styles */
.navbar {
    background-color: #ffffff;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: fixed; /* Make navbar fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure navbar is on top */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    height: 60px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar-logo {
    color: #333;
    justify-self: start;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.nav-item {
    height: 60px;
}

.nav-link {
    color: #333;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

/* Page Container */
.page-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 900px;
    margin: 3rem auto; /* Adjust margin to account for navbar */
}

/* Progress Bar Styles */
.progress-container {
    width: 100%;
    margin-bottom: 3rem;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 90%;
    margin: 0 auto;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #e0e0e0;
    z-index: 1;
}

.progress-line-active {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    background-color: #007bff;
    z-index: 2;
    width: 0%; /* Controlled by JS */
    transition: width 0.4s ease;
}

.progress-step {
    width: 30px;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 50%;
    z-index: 3;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    transition: background-color 0.4s ease;
}

.progress-step.active {
    background-color: #007bff;
}

.step-label {
    position: absolute;
    top: 40px;
    text-align: center;
    width: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #666;
}

.main-container {
    display: flex;
    gap: 2rem;
}

.input-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.output-section {
    /* 크기를 조절하려면 아래 width와 height 값을 변경하세요 */
    width: 350px;
    height: 310px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 4px;
}

h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

input[type="file"], input[type="text"], input[type="number"], select {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

#qr-result {
    margin-top: 1rem;
    display: none; /* Initially hidden */
}

#qr-result img {
    max-width: 100%;
    max-height: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#download-btn {
    display: none; /* Initially hidden */
    margin-top: 1rem;
    background-color: #28a745;
}

#download-btn:hover {
    background-color: #218838;
}

.loader {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

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

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Example Section Styles */
.example-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 900px;
    margin: 3rem auto;
}

.example-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.example-category {
    margin-bottom: 2rem;
}

.example-category h3 {
    margin-bottom: 1rem;
    color: #333;
}

.example-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.example-images img {
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

