body{
    margin: 0;
    min-height: 100vh;
    padding: 0;
    font-family: "Geist", sans-serif;
    background: #F6F6F6;
}

[hidden]{
    display: none !important;
}

.admin-container{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.mobile{
    position: fixed;
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    z-index: 11;
    min-height: 60px;
    max-height: 60px;
    box-shadow: 0 0 10px #00000010;
}
.mobile .head{
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    box-sizing: border-box;
    padding-inline: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: white;
    z-index: 2;
}

.mobile button{
    width: 40px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile button img{
    width: 100%;
}

.mobile button:hover{
    opacity: 0.5;
    transform: scale(0.9);
}

.dropdown{
    position: absolute;
    top: 100%;
    right: -100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    overflow-y: scroll;
    height: 90vh;
    box-shadow: 0 0 10px #00000010;
    z-index: 1;
    background: white;
    transition: all 0.5s ease;
}

.dropped{
    right: 0;
}

.mobile .btns{
    position: relative;
    margin-top: 30px;
}

.mobile .btns .logout-btn{
    position: relative;
    width: 100%;
    bottom: 0;
    top: 0;
    left: 20px;
    padding: 10px 20px;
}

.mobile .links{
    position: relative;
    height: fit-content;
}

header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
    max-width: 250px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    font-weight: 600;
    padding: 5px 20px;
    background: white;
    box-shadow: 0 0 10px #00000010;
    gap: 40px;
    z-index: 10;
}

.links{
  width: 100%;
  display: flex;
  margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: start;
} 

.active{
    background: #f1540037;
    color: #F15400 !important;
    padding-left: 45px !important;
    box-shadow: 0 4px 20px #ff6a0015;
}

.drp{
    position: relative;
    width: 100%;
}

.secondary-menu-mobile{
    position: relative;
    height: fit-content;
    z-index: 15;
    display: flex;
    background: rgb(239, 239, 239);
    flex-direction: column;
    box-shadow: 0 8px 20px #00000020;
    padding: 10px;
    border-radius: 10px;
    overflow-y: hidden;
}

.mobile .drp button{
    width: 100%;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

.mobile .drp button:hover{
    width: 100%;
    opacity: 1;
    transform: scale(1) !important; 
}

.links button{
    position: relative;
    text-decoration: none;
    color: inherit;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 10px 0 10px 40px;
    border-radius: 5px;
    background: none;
    border: none;
    text-align: start;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.1s ease;
}

.opened{
    background: #f1540037 !important;
    color: #F15400 !important;
    padding-left: 45px !important;
    box-shadow: 0 4px 20px #ff6a0015 !important;
}

.links button:hover{
    background: #f1540037;
    color: #F15400;
    padding-left: 45px;
    box-shadow: 0 4px 20px #ff6a0015;
}

.secondary-menu{
    position: absolute;
    z-index: 15;
    background: white;
    left: 100%;
    top: 0;
    width: 200px;
    height: fit-content;
    box-shadow: 0 8px 20px #00000020;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 10px;
}

.links a{
    text-decoration: none;
    color: inherit;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 10px 0 10px 40px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.1s ease;
}

.links a:hover{
    background: #f1540037;
    color: #F15400;
    padding-left: 45px;
    box-shadow: 0 4px 20px #ff6a0015;
}

.links span{
  width: 100%;
  box-sizing: border-box;
  padding-left: 40px;
  margin-top: 30px;
  opacity: 0.3;
}

.login-form{
    min-height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-form form{
    font-family: 'Geist', sans-serif;
    background: white;
    width: 400px;
    height: fit-content;
    min-height: 450px;
    box-sizing: border-box;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1), 5px 10px 30px rgba(0, 0, 0, 0.1);
}

.login-form form h2{
    font-size: 2rem;
    font-weight: 500;
    margin-block: 20px;
}

.login-form form .input{
    margin-bottom: 15px;
    
}

.login-form form .input input{
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.login-form form .input input:focus{
    border: 1px solid rgb(230, 94, 66);
}

#remember_me{
    display: inline-block;
}

.login-form form .primary-btn{
    padding: 12px 45px;
    font-weight: 500;
    margin-top: 30px;
}

.logo{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    text-decoration: none;
    color: inherit; 
    margin: 0;
}


.logo img{
    width: 40px;
    height: 40px;
}

.logo p{
  color: #f1ad00ae;
  font-weight: 800;
  text-shadow: 0 0 15px #ffaa0080;
}

.btns{
    display: flex;
    gap: 1em;
}

.primary-btn{
    background: linear-gradient(160deg, #FF9D00, #FF6A00);
    padding: 8px 38px;
    color: #ffffffdf;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    box-shadow: 0 8px 20px #ff80003a;
    cursor: pointer;
    transition: all 0.2s ease;
}
.primary-btn:hover{
    color: white;
    filter: brightness(1.05);
    box-shadow: 0 8px 20px #ff80005d;
}

main{
  width: 100%;
  min-height: 100vh;
  margin-left: 250px;
  box-sizing: border-box;
  padding-inline: 50px;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.main-container{
    position: relative;
    margin: 0 auto 10px;
    background: white;
    min-height: 70vh;
    height: fit-content;
    width: 100%;
    box-shadow: 0 0 10px #00000010;
    box-sizing: border-box;
    border-radius: 10px;
}

.main-nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin: 70px 0 20px;
    height: fit-content;
}

.main-nav span{
    font-weight: 700;
    font-size: 1rem;
    color: #f154008d;
    max-width: 500px;
    overflow: hidden;
    text-transform: uppercase;
    margin: 0;
}

.main-nav h2{
  position: relative;
  font-size: 2.5rem;
  font-weight: 500;
  margin: 0;
  max-width: 500px;
  overflow: hidden;
}

h3{
  position: relative;
  font-weight: 500;
  margin: 0;
}


button{
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
}

.secondary-btn{
    background: gray;
    padding: 8px 38px;
    color: #ffffffd0;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: 600; 
    box-shadow: 0 8px 20px #00000020;
    cursor: pointer;
    border: none;
    outline: none;
    transform: translateY(0);
    transition: all 0.2s;
}

.secondary-btn:hover{
    background: rgb(103, 103, 103);
}


footer{
    width: 100%;
    height: 70px;
    align-items: center;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    display: flex;
    box-sizing: border-box;
    padding: 15px 30px;
    font-weight: 600;
    position: relative;
    background: #F5F5F5;
    box-shadow: 0 0 10px rgb(157, 157, 157);
}

footer p{
    opacity: 0.7;
    margin: 0;
}

.sekce{
    background: white;
    box-shadow: 0 4px 4px #00000010;
    border: 1px solid #e0e0e0;
    padding: 20px 50px 50px;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin: 20px 0;
}


.popup{
    position: fixed;
    bottom: 10px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 300px;
    gap: 10px;
    transform: translateX(150%);
    margin: 10px;
    height: 70px;
    background: white;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(128, 128, 128, 0.6);
    animation: 4s popup ease;
}

.table-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-weight: 500;
    font-family: 'Geist', sans-serif;
}

thead th {
    text-align: left;
    padding: 15px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #00000020;
}

tbody td {
    max-width: 200px;
    overflow: hidden;
    padding: 20px 10px;
    font-size: 14px;
    color: #323232;
    border-bottom: 1px solid #00000020;
    transition: background-color 0.2s ease;
}

.edit-link {
    text-decoration: none;
    color: #828282;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.edit-link:hover {
    color: #F15400;
    text-decoration: underline;
}

th:first-child, td:first-child { padding-left: 25px; }
th:last-child, td:last-child { text-align: right; padding-right: 25px; }

tbody tr{
  border-left: 3px transparent solid;
  box-sizing: border-box;
}

tbody tr:hover {
    background-color: #ff6a0020;
    border-left: 3px solid #F15400;
}

@keyframes popup{
    0%{
        transform: translateX(150%);
    }
    20%{
        transform: translateX(0);
    }
    60%{
        transform: translateX(0);
    }
    90%{
        transform: translateX(150%);
    }
    100%{
        transform: translateX(150%);
    }
}

.popup #icon{
    flex-grow: 1;
    text-align: center;
}

.popup p{
    text-align: center;
    flex-grow: 3;
}

.container-form{
    margin: 0;
    padding: 0;
    display: flex;
    width: fit-content;
    height: fit-content;
}

.logout-btn{
  padding: 15px 50px;
  color: #ff0000;
  width: 100% !important;
  box-shadow: 0 4px 20px #ff000020;
  border-radius: 10px;
  margin-top: 60px;
  text-decoration: none;
  background: #ff000020;
  text-align: center;
  transition: all 0.2s ease;
}

.logout-btn:hover{
  color: white;
  background: #f53636;
  box-shadow: 0 4px 20px #ff0000ad;
}

.dash-container{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
}

main form {
    background: #ffffff;
    box-sizing: border-box;
    padding: 40px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    width: 100%;
    height: 100%;
}

.input{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}


label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-top: 10px;
}

.required:after {
    content: "*";
    color: #F15400;
    margin-left: 2px;
}

.info{
    background: rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    padding: 10px 20px;
    border-radius: 5px;
}


input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fcfcfc;
    box-shadow: 0 4px 4px #00000010;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #F15400;
    box-shadow: 0 4px 4px #f1540030;
}

input[type="file"] {
    border: 2px dashed #e0e0e0;
    background: transparent;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    position: relative;
    padding: 92px;
}

.image-input{
    box-sizing: border-box;
    padding: 50px 50px !important;
    height: 50px;
    width: 100%;
    margin-top: 10px;
    border: 2px dashed #9a9a9a !important;
}

.image-container div{
    position: relative;
    background: #00000010;
    padding: 10px;
    margin: 5px 0 10px;
    border-radius: 10px;
}

.image-container div img{
    position: absolute;
    height: 50%;
    right: 20px;
    top: 70px;
    max-width: 60px;
    object-fit: cover;
}

.image-container div button{
    background: #ff000020;
    cursor: pointer;
    color: #ff0000;
    font-weight: 600;
    border: none;
    padding: 6px 20px;
    border-radius: 5px;
}

.image-container div button:hover{
    background: #ff000040;
}

input[type="file"]:focus{
    border-color: #F15400;
}

textarea {
    min-height: 200px;
    resize: none;
}

input[type="submit"] {
    border: none;
    font-family: 'Geist' sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 38px;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s;
    grid-column: 1;
    width: fit-content;
    margin-right: 20px;
}

input[type="submit"]:hover {
    color: white;
    transform: translateY(-2px);
}

.file{
    position: relative;
}

.file img{
    position: absolute;
    z-index: 10;
    width: 100px;
    top: 30%;
    right: 40px;
}

.delete-btn{
    position: absolute;
    bottom: 60px;
    right: 60px;
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 20px #ff000020;
    text-decoration: none;
    background: linear-gradient(160deg,rgb(230, 94, 66), rgb(200, 7, 7));
    text-align: center;
    transition: all 0.2s ease;
    font-size: 1em;
    border-radius: 5px;
    font-weight: 600;
    transform: translateY(0);
    padding: 8px 38px;
    border: none;
    cursor: pointer;
}

.delete-btn:hover{
  color: white;
  box-shadow: 0 4px 20px #ff000052;
  transform: translateY(-2px);
}

ul{
    padding: 0;
    margin: 0;
    width: 100%;
    list-style: none;
    border-top: 1px solid #00000020;
}

li{
    width: 100%;
    padding: 0;
}

li label{
    width: 100%;
    display: flex;
    align-items: center;
    padding: 16px 0;
    margin: 0;
    box-sizing: border-box;
    border-bottom: 1px solid #00000020;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
    gap: 0;
    overflow: hidden;
    position: relative;
}

li label:hover{
    background: rgba(0, 0, 0, 0.1);
}

#check{
    transform: translateX(-40px);
}

input[type="checkbox"]{
    display: none;
}

input[type="checkbox"]:checked + label{
    background: rgba(13, 255, 0, 0.2);
    padding-left: 50px;
}

.admin-links {
    position: relative;
    display: flex;
    justify-content: end;
    margin: 20px 0;
}

.admin-links nav {
    display: inline-flex !important;
    align-items: center;
    background: #ffffff;
    padding: 8px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.admin-links nav > div:first-child {
    display: none !important;
}

.admin-links nav > div:last-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
}


.admin-links p {
    display: inline-flex;
    gap: 5px;
    margin: 0;
    font-size: 14px;
    color: #666;
}

.admin-links nav div:last-child > span,
.admin-links nav div:last-child div:last-child {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

.admin-links p span.font-medium {
    font-weight: 700;
    color: #333;
}

.admin-links nav > div:last-child > div:last-child {
    display: flex;
    gap: 2px;
}

.admin-links nav > div:last-child > div:nth-child(2){
    display: inline-flex !important;
}

.admin-links button, 
.admin-links span[aria-current="page"] span,
.admin-links span[aria-disabled="true"] span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #f0f0f0;
    background: #fff;
    cursor: pointer;
    color: #999;
    margin: 0 2px;
}

.admin-links span[aria-current="page"] span {
    background-color: #F15400 !important;
    color: white !important;
    border-color: #F15400;
}

.admin-links span[aria-disabled="true"] span {
    background-color: #f9f9f9;
    color: #ccc;
    cursor: default;
}

.admin-links button:hover {
    background: #f154001a;
    color: #F15400;
    border-color: #f1540037;
}

.admin-links button {
    outline: none;
    padding: 0;
}

.admin-links svg {
    width: 18px;
    height: 18px;
}

.search{
    margin: 20px 0 0 20px;
}

input[type="search"]{
    padding: 10px 25px;
    font-weight: 400;
    font-family: 'Geist', sans-serif;
    background: white;
    margin-bottom: 0;
    max-width: 320px;
    border: 1px solid #00000030;
    color: #000000a4;
    font-size: 1rem;
    border-radius: 5px;
}

.order-dash{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 20px;
    gap: 20px;
}

.order-dash .box{
    box-shadow: 3px 3px 8px #00000030;
    box-sizing: border-box;
    border-radius: 10px;
    padding: 5px 20px;
    height: 180px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: space-between;
    transition: all 0.2S ease;
}

.order-dash .box:hover{
    filter: brightness(0.97);
}

.order-dash .box b{
    opacity: 0.6;
    font-weight: 400;
    font-size: 4rem;
}

.order-dash .box #icon{
    opacity: 0.4;
    height: 100px;
    width: 100px;
    margin: 35px 20px 0 0 ;
}

#box1{
    color: rgb(20, 20, 82);
    background: rgb(236, 236, 249);
}

#box2{
    color: rgb(82, 20, 20);
    background: rgb(249, 236, 236);
}

#box3{
    color: rgb(80, 82, 20);
    background: rgb(249, 248, 236);
}

#box4{
    color: rgb(20, 82, 20);
    background: rgb(236, 249, 236);
}

@media(max-width: 1200px){
    main{
        margin-inline: 0;
        padding: 0;
    }  
    .main-container{
        border-radius: 0;
    }
    .main-nav{
        padding-inline: 30px;
        flex-wrap: wrap;
        gap: 10px;
    }

    header{
        display: none;
    }

    .mobile{
        display: flex;
    }

    main form{
        grid-template-columns: 1fr;
    }

    input[type="file"]{
        padding-inline: 10px;
        width: 100%;
    }
}

@media(max-width: 800px){
    .table-container{
        padding: 0;
    } 
    .main-container{
        overflow-x: scroll;
        padding: 0;
    }
    table td, table th{
        font-size: 0.8rem;
    }
    .admin-links{
        transform: scale(0.8);
        display: flex;
        justify-content: center;
    }

    .admin-links nav > div:last-child > div:first-child{
        display: none;
    }

    main form{
        padding: 10px;
    }

    .main-nav h2{
        font-size: 1.5rem;
    }

    .sekce{
        box-sizing: border-box;
        padding-inline: 20px;
    }

    .container-form{
        box-sizing: border-box;
        padding: 10px;
        justify-content: center;
        width: 100%;
    }

    .container-form:has(.logout-btn){
        width: fit-content;
    }

    .delete-btn{
        position: relative;
        margin: 0;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;    
    }

    .order-dash .box{
        height: 100px;
        gap: 0;
    }

    .order-dash .box p{
        margin-bottom: 5px;
    }

    .order-dash .box b{
        font-size: 2rem;
    }

    .order-dash .box #icon{
        margin: 20px 0;
        width: 50px;
        height: 50px;
    }
}