body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

.login-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin-top: 10vh;
}

.login-container input[type="email"],
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #dddddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-container input[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container input[type="submit"]:hover {
    background-color: #0056b3;
}

.navbar {
    width: 100%;
    background-color: #ffffff;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.navbar h1 {
    margin: 0;
    font-size: 1.5rem;
    white-space: nowrap;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.user-email {
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-button {
    background-color: transparent;
    border: none;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem 3.5rem;
}

.logout-button:hover {
    color: #0056b3;
}

.sidebar {
    width: 250px;
    background-color: #ffffff;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    position: fixed;
    top: 75px;
    bottom: 70px;
    left: 10px;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 900;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #333;
}

.template-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.template-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    background-color: #f8f8f8;
    transition: background-color 0.3s ease;
}

.template-item:hover,
.template-item.selected {
    background-color: #e0e0e0;
}

.main-content {
    padding: 1rem;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 75px 20px 70px 310px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-and-code {
    display: flex;
    align-items: center;
}
.code-display {
    font-size: 1rem;
    margin-left: 1rem;
    max-width: 50%;
    overflow-x: auto;
}

.top-section {
    max-width: 1180px;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex: 1;
    width: 100%;
}

.left-column {
    flex: 1;
    padding: 1rem;
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-column {
    width: 300px;
    padding: 1rem;
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.template-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.field-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.bottom-section {
    padding-top: 1rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.action-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

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

.footer {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    background-color: #ffffff;
    position: fixed;
    bottom: 0;
    left: 0;
    font-size: 0.875rem;
    color: #666;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}