@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;500&display=swap');

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    line-height: 1.7rem;
}

.spacing {
    padding: 3rem 8rem;
}

.hidden {
    display: none !important;
}

.btnPrimary {
    background: #FFD726;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-size: 16px;
}

.btnPrimary:hover {
    background: #f1cc24;
}

.btnSecondary {
    background: #FFFFFF;
    border: 1px solid #F2F2F2;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-size: 16px;
}

.btnSecondary:hover {
    background: #F2F2F2;
}

.btnDanger {
    width: max-content;
    margin-left: auto;
    border: transparent;
    color: #E02424;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-size: 16px;
}

.btnDanger:hover {
    color: #FFFFFF;
    background-color: #E02424;
}

.btnIcon {
    width: max-content;
    margin-left: auto;
    border: transparent;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-size: 16px;
}

.title {
    font-size: 30px;
    margin-bottom: 1rem;
}

input,
select,
textarea {
    border: 1px solid #e4e3e3;
    border-radius: 10px;
    padding: 1rem;
}

input:hover,
input:focus,
select:hover,
select:focus,
textarea:hover,
textarea:focus {
    border: 1px solid #FFD726;
    outline: #FFD726;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.label {
    color: #908C8C;
    font-weight: 400;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label input {
    margin-top: 7px;
}

.checkbox-label a {
    color: #000000;
    font-weight: 700;
}

.topbar_container {
    display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        border: 1px solid #F2F2F2;
        width: 100%;
}
/* MENU */
.menu-top-nav {        
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
    justify-content: center;
    /*position: fixed;*/
     top: 0; 
    /*left: 50%;   Posunie element na stred */
    /*transform: translateX(-50%);*/
    /*margin: 0 50px;
    padding: 1rem 8rem;*/
    /* transform: translateY(-100%); */
    transition: transform 0.3s ease-in-out;
    background-color: #ffffffff;
    z-index: 110;
}
.visible {     
    transform: translateY(0px);
}
.menu {
    display: flex;    
    align-items: center;

    gap: 1rem; /* T# zmenene zo 4rem */

    /* T# position: fixed; 
    top: 40;
    left: 400px; */
    /* padding: 1rem 2rem; */
    background-color: #FFF;
    z-index: 99;

    margin-right: 160px;
}

.menu-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: 160px;
}

.menu-logo h1 {
    font-size: 16px;
}

.menu-logo img {
    width: 200px;
}

.menu-items {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.menu-items>a {
    text-decoration: none;
    color: #908C8C;
    padding: 0.5rem;
    border-radius: 10px;
}

.menu-items>a:hover {
    color: #000000;
    background-color: #F7F8FA;
    font-weight: 500;
}

.menu-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    background-color: #F2F2F2;
    border-radius: 20px;
    padding: 1rem;
    white-space: nowrap;
}

.menu-user:hover {
    background-color: #FFD726;
}

.submenu {
    position: relative;
}

.submenu-avatar:hover {
    background: #FFD726;
}

.submenu-items {
    width: 170px;
    position: absolute;
    z-index: 99;
    right: 0;
    top: 3.5rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border: 1px solid #FFd726;  /*FARBA  #FFd726*/

    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-submenu-items {
    top: 5.0rem;
    background: white;
    color: darkgray;
    /* T# border: 2px solid #908C8C; */
    border-radius: 10px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3); /* Tieň */

}

.submenu-user {
    padding: .5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
}

.submenu-user:hover p {
    color: #000000;    
}

.submenu-user p {
    color: #908C8C;
    /*white-space: nowrap;*/
}

.submenu-user i {
    background-color: #F2F2F2;
    border-radius: 20px;
    padding: 0.7rem;
}

.submenu-items a {
    text-decoration: none;
    color: #908C8C;
    border-radius: 5px;
    padding: .25rem .5rem;
}

.submenu-items a:hover {
    background-color: lightgray;
    color: #000000;
}

.submenu-logout {
    padding: .25rem .5rem;
    border-radius: 5px;
    cursor: pointer;
    color: #E02424 !important;
}

.submenu-logout:hover {
    background-color: #FDF2F2 !important;
}

/* TABS */
.tabs {
    margin-top: 2rem;
    border-bottom: 1px solid #E8E8E8;
    width: 100%;
    display: flex;
    gap: 4rem;
}

.tab {
    padding: .5rem 0;
    letter-spacing: .05rem;
    cursor: pointer;
}

.tab-selected,
.tab:hover {
    color: #FFD726;
    font-weight: 700;
    border-bottom: 2px solid #FFD726;
}

/* BANER */
.baner {
    width: 100%;
    text-align: center;
    background: #FFD726;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.baner a {
    text-decoration: underline;
    color: #000000;
    font-weight: 600;
}

.baner a:hover {
    color: #FFFFFF;
}

/* MODAL */
.modal-mask {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 32, 63, 0.7);
}

.modal-wrapper {
    position: absolute;
    display: flex;
    width: 100%;
    max-width: 600px;
    max-height: 90%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% - 1px));
}

.modal-container {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.modal-header {
    position: relative;
}

.modal-close {
    position: absolute;
    right: -1rem;
    top: -1rem;
    cursor: pointer;
    color: #908C8C;
}

.modal-close:hover {
    color: #000000;
}

.modal-form {
    width: 400px;
    display: flex;
    text-align: center;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-form-title {
    text-align: center;
}

.modal-form-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* .modal-form select {
    -webkit-appearance: none;
    appearance: none;
} */

.upload-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    border: 2px dashed #E8E8E8;
    border-radius: 10px;
    cursor: pointer;
    padding: 1.25rem 0 0.75rem 0;
    background: #FFFFFF;
}

.upload-area:hover {
    border: 2px dashed #FFD726;
}

.upload-area>i {
    color: #908C8C;
    font-size: 20px;
}

.upload-text {
    font-size: 14px;
    color: #908C8C
}

.upload-text>span {
    color: #FFD726;
    text-decoration: underline;
}

.uploaded-document {
    max-width: 200px;
    margin-top: 0.5rem;
    font-size: 12px;
    background: #E8E8E8;
    padding: 0.05rem 1rem;
    border-radius: 5px;
}

/* TOAST */
.toast {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    border: 2px solid #908C8C;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    min-width: 400px;
    z-index: 1000000;
    animation: fadeIn 0.3s ease forwards, fadeOut 0.3s ease forwards 2.7s;
}

.toast i {
    font-size: 26px;
    padding: 0.5rem;
    border-radius: 10px;
    color: #FFFFFF;
}

.toast-title {
    font-size: 20px;
    margin-bottom: .25rem;
}

.toast-success {
    color: #000000;
    border: 2px solid #2BCEB3;
}

.toast-success .toast-title {
    color: #2BCEB3;
}

.toast-success i {
    background: #E3F9F2;
    border: 1px solid #2BCEB3;
    color: #2BCEB3;
}

.toast-error {
    color: #000000;
    border: 2px solid #E02424;
}

.toast-error .toast-title {
    color: #E02424;
}

.toast-error i {
    background: #FDF2F2;
    border: 1px solid #E02424;
    color: #E02424;
}

.toast-content {
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: max-content 1fr;
    gap: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        top: -1rem
    }

    to {
        opacity: 1;
        top: 1rem;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        top: 1rem
    }

    to {
        opacity: 0;
        top: -1rem
    }
}

/* BUTTON EDIT CARD */
.button-edit {
    position: absolute;
    right: 0;
    height: fit-content;
    width: fit-content;
    cursor: pointer;
    z-index: 1;
}

.button-edit-card {
    position: relative;
    height: max-content;
}

.button-edit-card>i {
    color: #908C8C;
    background-color: #FFFFFF;
    border: 1px solid #e4e3e3;
    border-radius: 10px;
    padding: 0.5rem;
    font-size: 20px !important;
}

.button-edit-card>i:hover {
    color: #000000;
}

.button-edit-card-popup {
    position: absolute;
    top: -5px;
    right: 0;
    width: max-content;
    background-color: #FFFFFF;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.button-edit-card-popup hr {
    color: #908C8C;
    margin: 0.5rem 0;
}

.button-edit-card-popup-header {
    display: flex;
    justify-content: space-between;
    padding-left: 0.5rem;
}

.button-edit-card-popup-header>i {
    color: #908C8C;
    font-size: 16px !important;
}

.button-edit-card-popup>i:hover {
    color: #000000;
}

.button-edit-card-popup-items {
    display: flex;
    flex-direction: column;
}

.button-edit-card-popup-items span {
    padding: 0.25rem 0.5rem;
}

.button-edit-card-popup-items span:hover {
    background-color: #F7F8FA;
    color: #000000;
    border-radius: 10px;
}

/* BUBBLES */
.bubble {
    border-radius: 50%;
    background-color: #E8E8E8;
    position: absolute;
    z-index: -1;
}

.bubble-xs {
    width: 30px;
    height: 30px;
}

.bubble-sm {
    width: 50px;
    height: 50px;
}

.bubble-md {
    width: 80px;
    height: 80px;
}

.bubble-lg {
    width: 160px;
    height: 160px;
}

.password-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.password-container input {
  width: 366px;
  padding-right: 16px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 33%;      
  cursor: pointer;
  color: #555;
}

.menu-btn {
    background-color: #FFF;
    color: black;    
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    display: none;
    border: 1px solid #FFd726;
    margin-right: 20px;
}

.secondmenu {
    display: flex;
    flex-direction: row;
    border-radius: 0px;
    gap:40px;
    background-color:#F2F2F2;  /*#FFD726;*/
    color: #908C8C;
    justify-content: center;
    width: 100%;  /*fit-content;*/
    margin: 0 auto;
}
.secondmenu>a{
    text-decoration: none;
    color: #908C8C;
    padding: 2 10;
}
.secondmenu>a:hover {
    color: black;
    background-color:#d3d3d3;
    font-weight: 500;
}
/* ------------------------------------------------------------*/  
@media (max-width: 1210px) {
    /*.menu-top-nav {
        padding: 1rem;
    }*/
    .menu {
        left: 200px;
        gap: 0rem;
        /* padding: 1rem 1rem;        */
        margin-right: 60px;
    }
    
    .menu-logo {
        margin-left: 60px;
    }
}
@media (max-width: 750px) {
    .spacing {
        padding: 1rem 1rem;
    }
    .menu-items {
        display: None;
    }
    .menu-btn {
        display: block;
    }
    .submenu-items {
        right: unset;
    }
    .secondmenu {
        display: None;
    }
  }
/* (mobilné zariadenia) */
@media (max-width: 600px) {
    .menu {        
        display: flex;        
        top: 0;
        left:0;    
    }
    .menu-top-nav {
        /*position: fixed;*/
        top: 0;
        left: 0;
        width: 100%;

        /*padding: 10px 0;*/
        display: flex;
        height: 70px;      
    }
    .menu-logo {
        display: none;
    }
    .onlybigimg { display: none; }
}
@media (max-width: 450px) {
    .menu-items {  gap: 0rem; }  
    .menu-top-nav {
        justify-content:left;
    }
}

/* Platby - záloha */
.zaloba-container {
    background: var(--white, #fff);
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 480px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.zaloba-container h3 {
    margin-bottom: 1rem;
}
.zaloba-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.zaloba-label {
    color: #666;
    min-width: 140px;
}
.zaloba-hodnota {
    font-weight: 700;
    font-size: 1.1rem;
}
.zaloba-nova {
    color: #2e7d32;
}
.zaloba-mena {
    color: #888;
    font-size: 0.9rem;
}
.zaloba-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}
.zaloba-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 180px;
}
