body {
    font-family: 'Poppins', sans-serif;
    color: #000;
    font-weight: 400;
    background: #FAFAFA;
}

a:visited {
    color: #0000ee;
}

h1 {
    font-size: 1.3rem;
    font-weight: 400;
}

.description {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #666666;
}

.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-container h1 {
    margin-bottom: 24px;
}

.login {
    width: 350px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: self-start;
    flex-direction: column;
    padding: 26px;
}

main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 30px 50px 20px 50px;
    /*margin-bottom: 5px;*/
}

nav div {
    display: flex;
    align-items: center;
}

.admin-body {
    display: flex;
    padding: 0 40px;
    gap: 36px;
}

.menu {
    width: 330px;
    background-color: #ffffff;
    color: #333;
    border-radius: 15px;
    height: fit-content;
}

.content {
    flex: 1;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 16px;
    margin-bottom: 50px;
}

.menu ul li {
    padding: 16px 24px;
    border-bottom: 1px solid #ECECEC;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 15px;
    font-size: 14px;
    color: black !important;
}

.menu ul li:last-child {
    border-bottom: none;
}

.menu ul li:hover, .menu ul li.active-menu {
    /*border-radius: 15px;*/
    background-color: #EFEFEF;
}


.project-body {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    padding: 0 40px;
}

.project-body div {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 24px;
    cursor: pointer;
    /*max-width: 200px;*/
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.project-body div i{
    font-size: 70px;
    color: #22b09e;
    margin-bottom: 15px;
}

.project-body div:hover {
    background: #99999910;
    /*box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);*/
}

.tree-body {
    padding: 0 40px;
}

.search-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 40px;
    height: 70vh;
    margin-top: 80px;
}

.super-head {
    font-size: 66px;
    font-weight: 500;
    font-family: 'Krona One', sans-serif;
}

.search {
    position: relative;
}

.search-input {
    width: 650px;
    height: 50px;
    border: 2px solid #b4b4b4;
    padding: 0 20px 0 10px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    /*background: #ECECEC;*/
    gap: 10px;
    margin: 20px 0 0 0;
    border-radius: 10px;
}

.search-input input {
    border: 0;
    background: transparent;
}

.search-input--admin {
    width: auto;
    margin-top: 0;
    margin-bottom: 20px;
    border-radius: 15px !important;
}

.search-input-expanded {
    /*width: 100%;*/
    width: auto;
    margin: 0;
}

.search-input input:focus, .search-input select:focus {
    outline: 0;
}

.search-input input, .search-input select {
    margin: 0;
    font-size: 15px;
}

.search-input select {
    margin: 0;
    width: 200px;
}

.highlight {
    padding: 4px 6px;
    background: #eeeeee;
    border-radius: 4px;
    margin-bottom: 4px;
    display: inline-block;
}

.highlight-appno {
    background: #54f4ff;
    border-radius: 4px;
    padding: 2px 6px;
}

.results-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 50px;
}

.search-results {
    width: 100%;
    background: #FFFFFF;
    border-radius: 15px;

    border: 2px solid #b4b4b4;
    /*padding: 16px;*/
    cursor: pointer;
}

.search-results table {
    margin: 16px;
    width: -webkit-fill-available;
}


.uploads-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
    height: 70vh;
    margin-top: 50px;
}

.uploads {
    display: flex;
    flex-direction: column;
    width: 900px;
    gap: 30px;
}

.dropper {
    width: 100%;
    height: 200px;
    border: 4px dashed #666;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}


.object-body {
    /*display: flex;*/
    /*flex-direction: column;*/
    margin: 0 40px;
    background: #ffffff;
    border-radius: 15px;
    padding: 32px;
}

.object-title {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
}

.object-sub-title {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

.object-value {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.object-nav {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin: 0 40px 20px 40px;
}

.object-nav p {
    font-size: 18px;
    font-weight: 600;
    color: #999999;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 12px 15px;
    cursor: pointer;
}

.object-nav p:not(.active):hover {
    color: #666666;
}

.object-nav .active {
    color: #093fef;
}

.fa-sort {
    margin: -2px 0 0 5px;
}

.row-body {
    display: flex;
    flex-direction: column;
    /*gap: 15px;*/
    text-align: center;
    margin-top: 15px;
}

.input-box {
    width: 100%;
    text-align: left;
}

/*.input-box input{*/
/*    !*width: 97%;*!*/
/*    !*border: 2px solid #999999;*!*/
/*    !*font-family: inherit;*!*/
/*    !*border-radius: 4px;*!*/
/*    !*height: 22px;*!*/
/*    !*padding: 0 5px;*!*/
/*    !*font-size: 12px;*!*/
/*    !*color: #000000;*!*/
/*    !*background-color: white;*!*/
/*}*/
/*.label-text{*/
/*    font-size: 15px;*/
/*    font-weight: 600;*/
/*    color: #999;*/
/*    margin: 0 0 8px 0;*/
/*}*/
.submit-button {
    border: 0;
    border-radius: 5px;
    padding: 12px 16px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 400;
    width: 100%;
    /*max-width: 150px;*/
    cursor: pointer;
    background: #707070;
}

.secondary-button {
    border: 2px solid #707070;
    border-radius: 5px;
    padding: 12px 16px;
    font-size: 0.8rem;
    color: #000;
    font-weight: 400;
    width: 100%;
    /*max-width: 150px;*/
    cursor: pointer;
    background: #FFFFFF;
}

.error {
    color: #ff2e2e;
    font-size: 12px;
    margin-bottom: 3px;
}

.link-text {
    color: #0000ee;
    cursor: pointer;
}


.admin-main-content {
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 30px;
    -webkit-box-shadow: 0px 7px 20px 2px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0px 7px 20px 2px rgba(0, 0, 0, 0.05);
    box-shadow: 0px 7px 20px 2px rgba(0, 0, 0, 0.05);
}

.admin-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.go-back-button {
    margin-bottom: 30px;
    font-size: 13px;
    color: #868686;
    width: fit-content;
}

.go-back-button a {
    color: #868686;
}

.go-back-button:hover {
    color: #000;
    cursor: pointer;
}

.fa-arrow-left {
    margin: 0 10px 0 0;
    height: 16px;
}

.delete {
    color: #d70000;
    cursor: pointer;
}

.fa-trash {
    color: #d70000;
    height: 20px;
}

.popup-confirmation {
    text-align: center;
    padding-top: 130px;
}

.popup-confirmation .popup-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-confirmation .popup-buttons {
    width: 100%;
}

.popup-confirmation form {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.delete-popup {
    padding-top: 150px;
}

/* Nomenclature Management Styles */
.nomenclature-management {
    margin: 20px 0;
}

.nomenclature-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #f5f5f5;
    color: #333;
}

.tab-button.active {
    color: #2196F3;
    border-bottom-color: #2196F3;
    background-color: #f8f9fa;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
}

.add-item-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.add-item-form input {
    flex: 1;
    min-width: 200px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.add-item-form input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.add-item-form button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.add-item-form button:hover {
    background: #1976D2;
}

.nomenclature-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nomenclature-table th {
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
    font-size: 14px;
}

.nomenclature-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.nomenclature-table tr:hover {
    background-color: #f8f9fa;
}

.nomenclature-table tr:last-child td {
    border-bottom: none;
}

.btn-edit {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 8px;
    transition: background-color 0.3s ease;
}

.btn-edit:hover {
    background: #45a049;
}

.btn-delete {
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.btn-delete:hover {
    background: #da190b;
}

.btn-small {
    background: #2196F3;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background: #1976D2;
}

/* Responsive design for nomenclature tables */
@media (max-width: 768px) {
    .add-item-form {
        flex-direction: column;
        align-items: stretch;
    }

    .add-item-form input {
        min-width: 100%;
        margin-bottom: 10px;
    }

    .nomenclature-table {
        font-size: 12px;
    }

    .nomenclature-table th,
    .nomenclature-table td {
        padding: 8px;
    }

    .tab-button {
        padding: 10px 16px;
        font-size: 12px;
    }
}
