
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    overflow-y: hidden;
}

/*----------- LOGIN PAGE -----------*/
/* Animation for login-page */
.login-page.hide {
    opacity: 0;
    transform: translateY(-100%); /* Hide login-page to up */
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0 auto;
    background-color: #B7DCF1;
    position: fixed;
    overflow-y: hidden;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
    visibility: hidden;
}

.login-container {
    width: 1100px;
    height: 382px;
    display: flex;
    margin: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background-color: #E2E9F2;
}


/*----------- Left block -----------*/
.left-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 10px 20px 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 10%;
}

.company-name {
    position: center;
    width: fit-content;
    font-family: "Anton", sans-serif;
    font-weight: 600;
    color: #68CDFB;
    font-size: 2.2rem;
    white-space: nowrap;
    margin-left: 6px;
}

.left-block-banner {
    width: 100%;
    height: 65%;
}

.left-block-header {
    margin-top: 14px;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.left-block-text {
    margin-top: 0;
    font-size: 1rem;
}


/*----------- Right block -----------*/
.right-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 80px 32px 0 40px;
}

.login-form-label {
    font-size: 1rem;
    font-weight: 400;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    margin-top: 4px;
    width: calc(100% - 20px); /* Subtract padding from width */
    padding: 10px;
    margin-bottom: 30px; /* Reduced margin-bottom */
    border: 1px solid #A8A8A8;
    border-radius: 6px;
    outline: none;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #5FB663;
    box-shadow: 0 0 5px #5FB663;
}

.login-form input[type="text"]::placeholder,
.login-form input[type="password"]::placeholder {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.3);
}

.right-block-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.right-block-bottom-container-left-block-forgot-password {
    display: inline-block;
    margin-bottom: 24px;
    color: #11970E;
    font-size: 1rem;
}

.right-block-bottom-container-left-block-remember-me {
    margin-top: 0;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1rem;
}

.right-block-bottom-container-left-block-remember-me input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.7);
    border: solid #5FB663;
}

.right-block-bottom-container-right-block {
    display: flex;
    width: 35%;
}

.login-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #5FB663;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.login-button:hover {
    background-color: #4f9852;
}


/*----------- LOGIN PAGE Media query for devices with a maximum width of 430px ----------- */
@media (max-width: 430px) {
    html {
        font-size: 14px;
    }

    .login-page {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        background-color: #F5F5F5;
    }

    .login-container {
        width: 100%;
        height: 100vh;
        flex-direction: column;
        box-shadow: none;
        padding: 0;
        gap: 0;
    }

    .left-block,
    .right-block {
        width: 90%;
        padding: 20px;
        margin: 0;
    }

    .left-block {
        margin-bottom: -80px;
    }

    .logo-img {
        width: 15%;
    }

    .left-block-description {
        margin-bottom: 0;
    }

    .right-block-bottom-container {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .right-block-bottom-container-left-block-remember-me input[type="checkbox"] {
        transform: scale(1.5);
    }

    .right-block-bottom-container-right-block {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .login-button {
        width: 80%;
        padding: 12px 40px;
        display: block;
        margin: 20px auto;
    }
}



/*----------- MAIN PAGE -----------*/
/* Show main-page */
.main-page.show {
    opacity: 1;
    transform: translateY(0);
}

.main-page {
    background-color: #F5F5F5;
    min-width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    overflow-y: auto;
    top: 0;
    left: 0;
    height: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/*----------- HEADER -----------*/
.navbar-container {
    width: 100%;
    height: 126px;
    background-color: #3492D6;
}

.navbar {
    max-width: 1160px;
    width: 100%;
    height: 126px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
}

/*------------------ Burger menu ------------------*/
.burger-menu-container {
    position: relative;
}

.burger-menu {
    position: relative;
    cursor: pointer;
    z-index: 1000; /* To make the icon clickable on top of the menu */
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 54px;
    height: 54px;
    background-color: #5FB663;
    border-radius: 4px;
    transition: background-color 0.3s;
    align-items: center;
}

.burger-menu:hover {
    background-color: #45a049;
}

.burger-line {
    width: 28px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease; /* Transition Animation */
    margin: 4px 0;
}

.burger-menu.burger-active {
    background-color: white;
}

/* Animation of burger icons with a cross */
.burger-menu.burger-active .top {
    background-color: black;
    top: 50%;
    transform: rotate(45deg) translate(8px, 8px);
}
.burger-menu.burger-active .middle {
    opacity: 0;
}
.burger-menu.burger-active .bottom {
    background-color: black;
    top: 50%;
    transform: rotate(-45deg) translate(7px, -8px);
}

.menu {
    position: absolute;
    top: 80px;
    width: 140px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    display: none;
}

/* Displaying a menu when the show-menu class is active */
.menu.show-menu {
    display: block;
}

.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background: white;
}

.menu li a {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: black;
}

.menu li a:not(.active):hover {
    background-color: rgba(95, 182, 99, 0.67);
    border-radius: 10px;
}

/*------------------ Logo ------------------*/
.navbar-logo-container {
    position: absolute;
    padding-left: 74px;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo-img {
    height: 80px;
}

.navbar-company-name {
    position: center;
    width: fit-content;
    font-weight: 600;
    color: white;
    font-size: 2.2rem;
    white-space: nowrap;
    margin-left: 6px;
}

/*------------------ User info ------------------*/
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 9px;
}

.dropbtn:hover {
    background-color: #45a049;
}

.dropbtn * {
    pointer-events: none;
}

.phone-number {
    font-size: 1.3rem;
}

.chevron {
    display: inline-block;
    margin-left: 5px;
}

.chevron.up {
    transform: rotate(180deg);
}

/* Styles for dropdown list content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    width: 236px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1; /* Overlay order */
    border-radius: 9px;
    text-align: center;
}

/* Styles for links inside a dropdown list */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none; /* Remove underline */
    display: block;
}

.dropdown-content a:not(.active):hover {
    background-color: rgba(95, 182, 99, 0.67);
    border-radius: 9px;
}

.avatar {
    vertical-align: middle;
    margin-right: 0;
    width: 32px;
}

.fa-check {
    color: #4CAF50;
}

/* show dropdown list */
.show {
    display: block;
}



/* ====================== ADMIN DASHBOARD ====================== */

.admin-section {
    max-width: 1160px;
    margin: 24px auto 40px;
    padding: 0 16px 32px;
    box-sizing: border-box;
}

/* Кнопка "Add User and Account" */
.admin-open-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    background-color: #3492D6; /* тот же цвет, что и шапка */
    color: #ffffff;
    margin-bottom: 16px;
}

.admin-open-btn:hover {
    background-color: #2c82bf;
}

/* Контейнер дашборда – изначально скрыт, показывается классом .show */
.admin-dashboard {
    display: none;
}

.admin-dashboard.show {
    display: block;
}

.admin-header {
    font-size: 32px;
    margin: 0 0 18px;
}

/* Сетка 2 колонки: Create User + Create Account */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Карточки */
.admin-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px 24px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.admin-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Формы */
.admin-form-row {
    margin-bottom: 12px;
}

.admin-form-label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #4b5563;
}

.admin-input,
.admin-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background-color: #f9fafb;
    outline: none;
    box-sizing: border-box;
}

.admin-input:focus,
.admin-select:focus {
    border-color: #3492D6;
    box-shadow: 0 0 0 1px rgba(52, 146, 214, 0.3);
    background-color: #ffffff;
}

.admin-form-actions {
    margin-top: 14px;
    text-align: right;
}

.admin-btn-primary {
    padding: 9px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    background-color: #2563eb;
    color: #ffffff;
}

.admin-btn-primary:hover {
    background-color: #1d4ed8;
}

/* Таблица Users */
.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-users-table th,
.admin-users-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.admin-users-table thead {
    background-color: #f9fafb;
}

.admin-users-table th {
    font-weight: 600;
    color: #4b5563;
}

.admin-users-table tbody tr:last-child td {
    border-bottom: none;
}

/* Адаптив: в узком экране формы одна под другой */
@media (max-width: 900px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}








