/* Root Variables */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #ecf0f1;
    --text-color: #2c3e50;
    --btn-hover-color: #2980b9;
    --border-radius: 10px;
    --overlay-bg: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-bottom: 5px solid var(--secondary-color);
}

.logo {
    width: 120px;
}

.header-buttons .btn {
    margin-left: 10px;
    padding: 10px 20px;
    border: none;
    background-color: white;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.header-buttons .btn:hover {
    background-color: var(--btn-hover-color);
    color: white;
}

.container {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.step-page {
    display: none;
    width: 100%;
}

.step-page.active {
    display: flex;
}

.sidebar {
    width: 25%;
    padding: 20px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    background-color: var(--background-color);
}

.sidebar h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.step {
    margin-bottom: 20px;
}

#styleList {
    list-style-type: none;
    padding: 0;
}

#styleList li {
    padding: 10px;
    margin: 5px 0;
    background-color: #e0e0e0;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

#styleList li:hover, #styleList li.active {
    background-color: var(--primary-color);
    color: white;
}

.theme-set {
    display: flex;
    align-items: center;
    margin: 10px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.theme-set:hover {
    background-color: #dcdcdc;
}

.theme-set span {
    margin-right: 10px;
    font-weight: bold;
}

.color-box {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: var(--border-radius);
}

.custom-theme-button {
    margin: 20px 0;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: block;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.custom-theme-button:hover {
    background-color: var(--btn-hover-color);
}

.next-button {
    display: block;
    margin-top: 20px;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    visibility: visible;
    opacity: 0.5;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.next-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.next-button:hover:not(:disabled) {
    background-color: var(--btn-hover-color);
    opacity: 1;
}

.upload-box {
    margin-top: 20px;
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
}

.upload-box span {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.upload-box input[type="file"] {
    display: none;
}

.upload-box::after {
    content: '📁';
    font-size: 24px;
    display: inline-block;
    cursor: pointer;
}

.main {
    width: 75%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
}

.separator {
    width: 5px;
    background-color: var(--secondary-color);
}

#reportPreview {
    width: 90%;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: white;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#reportContent {
    margin-top: 20px;
    padding: 40px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    height: 500px;
    overflow-y: auto;
    background-color: #f4f4f4;
    position: relative;
}

.logo-placeholder {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #555;
    border-radius: var(--border-radius);
}

.clinic-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 12px;
}

.footer-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 12px;
}

.patient-info {
    text-align: center;
    margin-top: 100px;
    font-size: 18px;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.nav-buttons .nav-btn {
    padding: 10px;
    margin: 0 5px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.nav-buttons .nav-btn:hover {
    background-color: var(--btn-hover-color);
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.tooltip {
    cursor: pointer;
    margin-left: 5px;
    color: var(--primary-color);
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

/* Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 400px;
    text-align: center;
}

.overlay-logo {
    width: 80px;
    margin-bottom: 20px;
}

.overlay-content h2 {
    margin-bottom: 20px;
}

.overlay-content input[type="text"], 
.overlay-content input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.overlay-content .btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
}
