
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: 40%;
}

.left-block-description {
    margin-bottom: 10px;
}

.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;
}




/*----------------------------- Report Volume -----------------------------*/
.report-volume-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 10px;
    box-sizing: border-box;
}

/*------------------ Account-card ------------------*/
.account-card {
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 20px 30px 30px 30px;
    max-width: 540px;
    width: 100%;
    height: 550px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.account-title {
    margin-bottom: 24px;
    text-align: center;
}

.account-title-text {
    color: #000000;
    font-weight: 400;
    margin-bottom: 24px;
    font-size: 1.9rem;
}

.account-title-text-sign {
    color: #000000;
    font-weight: 400;
    font-size: 1.9rem;
}

.account-title-text-number {
    color: #000000;
    font-weight: 400;
    font-size: 1.9rem;
}

.account-name {
    padding-top: 0;
    color: #3491D6;
    font-size: 1.9em;
    margin-bottom: 68px;
    text-align: center;
}

.account-status {
    color: #000000;
    margin-bottom: 56px;
    font-size: 1.5rem;
    font-weight: 400;
}

.account-status-space {
    margin-left: 10px;
    margin-right: 10px;
}

.account-status-active {
    color: #4CAF50;
    font-weight: bold;
}

.account-balance {
    color: #000000;
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 20px;
}

.account-balance-amount {
    color: #3491D6;
    padding-left: 8px;
}

.account-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 10px ;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1.0rem;
    cursor: pointer;
    border-radius: 10px;
    width: 220px;
    height: 42px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 94px;
}

.account-button:hover {
    background-color: #45a049;
}

.account-footer {
    font-size: 0.8em;
    color: #000000;
    font-weight: 400;
}

.account-footer-recommended-price {
    color: #3491D6;
}


/*------------------ History-container ------------------*/
.history-container {
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 16px 10px 20px 10px;
    width: 100%;
    max-width: 740px;
    height: 550px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.history-title {
    font-size: 1.9rem;
    text-align: center;
    font-weight: 400;
}

.history-table {
    max-width: 720px;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 10px;
}

.history-table th,
.history-table td {
    border-bottom: 1px solid #9A9A9A;
    padding: 10px 8px;
    text-align: center;
}

.history-table td {
    height: 36px;
    vertical-align: middle;
}

.history-table th {
    background-color: #f2f2f2;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
}

/* Ширины колонок */
.history-col-date    { width: 130px; }
.history-col-type    { width: 180px; text-align: left; }
.history-col-amount  { width: 100px; }
.history-col-balance { width: 100px; }
.history-col-status  { width: 80px; }

/* Ячейки */
.history-cell-date {
    text-align: center;
}

.history-cell-amount span,
.history-cell-balance span {
    font-weight: bold;
    color: #3491D6;
}

.history-cell-status {
    text-align: center;
}

.history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.search-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.date-from, .date-to {
    padding: 8px;
    border: 1px solid #9A9A9A;
    border-radius: 2px;
    font-size: 0.9rem;
    height: 30px;
    box-sizing: border-box;
    max-width: 214px;
    width: 100%;
}

/*.search-input {*/
/*    max-width: 256px;*/
/*    width: 100%;*/
/*}*/

/*.date-input {*/
/*    max-width: 214px;*/
/*    width: 100%;*/
/*}*/

.button-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button {
    padding: 6px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    width: 206px;
    height: 34px;
}

.search-button:hover {
    background-color: #45a049;
}


/*----------- Report-volume Media query for devices with a maximum width of 430px ----------- */
@media (max-width: 430px) {
    html {
        font-size: 14px;
    }

    .main-page {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        background-color: #F5F5F5;
    }

    /* Hidden by default */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    /* Visible overlay */
    .overlay.active {
        display: block;
    }

/*Navbar    */
    .navbar-container {
        position: relative;
        height: 68px;
    }

    .navbar-logo-container {
        position: absolute;
        padding: 0;
        left: 20px;
        top: 8px;

    }

    .navbar-logo-img {
        height: 52px;
    }

    .dropdown {
        display: none;
    }

    /*Burger menu*/
    .burger-menu-container {
        position: absolute;
        right: 20px;
        top: 10px;
    }

    .burger-menu {
        height: 48px;
        width: 48px;
    }

    .burger-line {
        width: 24px;
        height: 4px;
        margin-bottom: 3px;
    }

    /* Animation of burger icons with a cross */
    .burger-menu.burger-active .top {
        width: 25px;
    }
    .burger-menu.burger-active .bottom {
        width: 25px;
    }

    .menu {
        position: absolute;
        right: 0;
        top: 60px;
        width: 140px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        border-radius: 4px;
        overflow: hidden;
        display: none; /* Hide menu by default */
        font-size: 1.5rem;
        z-index: 1000;
    }


/*Report-container*/
    .report-volume-container {
        width: 100%;
        flex-direction: column;
        box-shadow: none;
        padding: 0;
        gap: 0;
        margin-top: 42px;
    }

    .account-card,
    .history-container {
        width: 90%;
        padding: 16px;
        margin-bottom: 18px;
    }

    /*Account card section*/
    .account-title-text {
        display: block;
        text-align: center;
        margin-bottom: 4px;
    }

    .account-title-text-sign,
    .account-title-text-number {
        display: inline-block;
        text-align: center;
    }

    .account-name {
        font-size: 2.0rem;
    }

    .account-status {
        font-size: 1.18rem;
    }

    .account-status-space {
        margin: 0;
    }

    .account-balance {
        font-size: 1.5rem;
    }

}




