/* --- SETUP PROCESS --- */
body.setup {
    font-family: 'Courier New', Courier, monospace;
    background-color: #1e1e1e;
    color: #d4d4d4;
    margin: 0;
    padding: 20px;
}

body.setup .terminal {
    background-color: #2d2d2d;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

body.setup .initialize-action {
    margin-top: 20px;
    text-align: center;
}

#initButton {
    display: none;
    padding: 10px 20px;
    cursor: pointer;
}

body.setup .command {
    color: #6a9955;
}

body.setup .output {
    color: #d4d4d4;
}

body.setup .error {
    color: #f44747;
    word-wrap: break-word;
}

/* --- GENERAL --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    /* Sticky footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

a {
    color: #bdc3c7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    color: #2c3e50;
    margin-top: 0;
    font-weight: normal;
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.2em;
}

h3 {
    font-size: 1em;
}

header {
    background-color: #34495e;
}

.breadcrumb,
.breadcrumb a {
    font-size: 0.9em;
    color: #7f8c8d;
}

.breadcrumb {
    display: block;
}

.breadcrumb .maincontent {
    padding: 20px 0 0 0;
}

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

.flex-container-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.content-section {
    /* Sticky footer */
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.maincontent {
    width: 100%;
    padding: 20px 0;
}

.mainwrapper {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
}

.home-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.main-footer {
    /* Sticky footer */
    flex-shrink: 0;
}

/* --- TOP BANNER --- */
.top-banner {
    height: 50px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
}

.top-banner-info {
    position: relative;
}

.top-banner-info span:first-child {
    margin: 0 7px 0 0;
}

.top-banner-info span a {
    color: #bdc3c7;
}

.top-banner-info span:last-child {
    margin: 0 0 0 7px;
}

.top-banner-login {
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* --- REGISTER BUTTON --- */
.login-button.register-button {
    background-color: white;
    color: #e67e22;
    border: 2px solid #e67e22;
    padding: 0px 10px;
    line-height: 2em;
    display: inline-block;
}

.login-button.register-button:hover {
    background-color: #fdf2e9;
    color: #d35400;
    border-color: #d35400;
}

/* --- LOGIN BUTTON --- */
.login-button {
    display: inline-block;
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 7px 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-button:hover {
    background-color: #d35400;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- LOGIN FORM CONTAINER --- */
.login-form-container {
    position: absolute;
    background-color: white;
    border: 1px solid #bdc3c7;
    padding: 30px 20px 20px 20px;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: block;
    border-radius: 6px;
    width: 250px;
    transform: translateY(-50%);
    max-width: 270px;
    top: -100%;
    margin: auto;
    left: 0;
    right: 0;
    transition: top 0.3s ease-in-out;
}

.login-form-container.active {
    top: 50%;
}

/* --- CLOSE BUTTON --- */
.login-form-container .close-login {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    font-family: Arial, sans-serif;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.2s;
}

.login-form-container .close-login:hover {
    color: #e74c3c;
}

.login-form-container h3 {
    color: #2c3e50;
    margin-top: 0;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}

.login-form-container input[type="text"],
.login-form-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-form-container input[type="text"]:focus,
.login-form-container input[type="password"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    outline: none;
}

.login-form-container button {
    width: 100%;
}

.loginMessage {
    color: red;
    font-size: 0.9em;
    margin-top: 10px;
}

/* LANGUAGE DROPDOWN */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-button {
    background-color: #f8f9fa;
    color: #333;
    padding: 8px 12px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-button:hover {
    background-color: #e2e6ea;
}

.language-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.language-dropdown-content a {
    color: #333;
    padding: 10px 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.language-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.language-dropdown:hover .language-dropdown-content {
    display: block;
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* --- MAIN IMAGE BANNER --- */
.main-banner {
    height: 500px;
    background-image: url('../images/main_banner_placeholder.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.banner-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px 40px;
    border-radius: 10px;
}

.banner-content h1 {
    color: white;
    margin: 0;
    font-size: 2.5em;
}

/* --- CONTENT SECTION --- */
.content-section {
    display: flex;
    align-items: center;
}

.content-section.block {
    display: block;
}

.content-section-image,
.content-section-text {
    flex: 1;
}

.content-section-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.content-section-text h2 {
    color: #2c3e50;
}

/* --- FORMS --- */
.client-form {
    width: 100%;
}

.client-form .flex-container-center {
    width: 100%;
}

.client-form .flex-container-center .wrapper {
    width: 100%;
    padding: 20px;
}

.form-input {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-input label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-input input:hover {
    border-color: #bbb;
}

.form-input input:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
    background-color: #fff;
}

.form-input:focus-within label {
    color: #d35400;
}

input,
select,
textarea {
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 8px;
}

/* --- SELECT DROPDOWN --- */
.form-input select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* --- CHECKBOX & RADIO --- */
.form-input input[type="checkbox"],
.form-input input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #e67e22;
    cursor: pointer;
}

.form-options {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Date picker icon fix Chrome/Edge */
::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(48%) sepia(13%) saturate(3207%) hue-rotate(346deg) brightness(95%) contrast(80%);
    opacity: 0.6;
}

::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.btn-submit {
    width: 100%;
    max-width: 400px;
    padding: 14px;
    background-color: #E67E37;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(230, 126, 34, 0.2);
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.btn-submit:hover {
    background-color: #d35400;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(230, 126, 34, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.link-cancel {
    margin-top: 20px;
    color: #7f8c8d;
    display: block;
    text-align: center;
}

.account-edit-form .wrapper {
    max-width: 500px;
    width: 100%;
}

/* --- SUCCESS MESSAGE --- */
.success-banner {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-out;
}

.success-banner::before {
    content: '\2714';
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #28a745;
}

/* Animation fadeIn effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- FOOTER --- */
.main-footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.main-footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.main-footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

.main-footer nav ul {
    padding: 0;
}

.main-footer nav ul li {
    display: block;
}

/* --- ACCOUNT --- */
.account-page {}

.account-page .content-box {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
}

.account-page .content-box .menu-options {
    flex: 1;
}

.account-page .content-box .menu-options .menu-option {}

.account-page .content-box .menu-options .menu-option {}

.account-page .content-box .menu-options .menu-option {}

.account-page .content-box .menu-options .menu-option {
    display: block;
    color: #5f6368;
    padding: 5px 10px;
    border-radius: 20px;
}

.account-page .content-box .menu-options .menu-option.active,
.account-page .content-box .menu-options .menu-option:hover {
    display: block;
    color: #1967D2;
    background-color: #E8F0FE;
}

.account-page .content-box .page-content {}

.account-page .content-box .page-content {
    flex: 6;
}

.account-page .content-box .page-content .info-box {}

.account-page .content-box .page-content .info-box {}

.account-page .content-box .page-content .title h2 {
    display: inline-block;
    margin-right: 20px;
}

.account-page .content-box .page-content .info-box .title {}

.account-page .content-box .page-content .info-box .field-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
}

.account-page .content-box .page-content .info-box p {
    margin: 0 0 20px 0;
}

.account-page .content-box .page-content .info-box p span {
    color: #9dabb4;
}

.account-page .content-box .page-content .info-box p strong {}

.account-page .content-box .page-content .info-box p span {
    display: block;
    min-width: 200px;
    max-width: 100%;
}

/* --- EDIT ICON --- */
.edit-info {
    display: inline-block;
}

.edit-info .edit-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

/* --- ADMIN LOGIN --- */
.login-section {
    margin-bottom: 20px;
}

.login-box {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
    max-width: 100%;
}

.login-box h2 {
    border-bottom: 2px solid #2c3e50;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}


.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
    outline: none;
}

.submit-button {
    width: 100%;
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s, transform 0.1s;
}

.submit-button:hover {
    background-color: #d35400;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.submit-button:active {
    transform: scale(0.99);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 550px) {
    .top-banner-login {
        flex-direction: column;
    }

    .language-dropdown {
        margin-left: 0;
    }

    .top-banner-info span:last-child {
        margin-top: 10px;
        margin-left: 0;
    }
}

@media (max-width: 850px) {
    .home-section {
        flex-direction: column;
    }

    .content-section-image img {
        max-height: 350px;
    }

    .account-page .content-box .page-content .info-box .field-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
}

@media (max-width: 1200px) {
    .top-banner {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        gap: 10px;
    }

    .top-banner-info,
    .top-banner-login {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
    }

    .login-button {
        margin: 5px;
    }

    .breadcrumb {
        text-align: center;
    }

    .account-page {}

    .account-page .maincontent {
        padding: 20px;
    }

    .account-page .content-box {
        display: block;
    }

    .account-page .content-box .menu-options {
        max-width: 100%;
        overflow: auto;
        margin-bottom: 20px;
    }

    .account-page .content-box .menu-options .menu-options-wrapper {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .account-page .content-box .menu-options .menu-option {}

    .account-page .content-box .menu-options .menu-option {}

    .account-page .content-box .menu-options .menu-option {}

    .account-page .content-box .menu-options .menu-option {
        white-space: nowrap;
    }

    .account-page .content-box .menu-options .menu-option.active,
    .account-page .content-box .menu-options .menu-option:hover {}

    .account-page .content-box .page-content {}

    .account-page .content-box .page-content {}

    .account-page .content-box .page-content .info-box {}

    .account-page .content-box .page-content .info-box {}

    .account-page .content-box .page-content .title h2 {}

    .account-page .content-box .page-content .info-box .title {}

    .account-page .content-box .page-content .info-box .field-block {}

    .account-page .content-box .page-content .info-box p {}

    .account-page .content-box .page-content .info-box p span {}

    .account-page .content-box .page-content .info-box p strong {}

    .account-page .content-box .page-content .info-box p span {}

    /* --- EDIT ICON --- */
    .edit-info {}

    .edit-info .edit-link {}

}