/* Base styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow: hidden; /* Prevent body scroll */
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.top-bar {
    background-color: #2C3344;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.sidebar {
    width: 60px; /* Reduced width for sidebar icons only */
    background-color: #2C3344;
    color: white;
    transition: width 0.3s;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    padding-top: 50px; /* Space for top bar */
    overflow: hidden; /* Hide scroll for sidebar */
}

.sidebar.expanded {
    width: 160px; /* Expanded width for sidebar with text */
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap; /* Prevent text wrap */
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item i {
    font-size: 11px; /* Adjusted font size for icons */
    margin-right: 10px; /* Adjust margin for icons */
}

.menu-item .text {
    display: none; /* Initially hide text */
    overflow: hidden;
    text-overflow: ellipsis; /* Prevent text overflow */
    font-size: 11px; /* Adjusted font size for menu text */

}

.sidebar.expanded .menu-item .text {
    display: inline; /* Show text when expanded */
}

.content {
    flex: 1;
    padding: 70px 20px 20px; /* Space for top bar */
    margin-left: 60px; /* Initial margin for sidebar width */
    background-color: #f4f4f4;
    overflow-y: auto; /* Handle overflow for long content */
    transition: margin-left 0.3s;
}

/* Adjust content margin when sidebar is expanded */
.sidebar.expanded ~ .content {
    margin-left: 160px; /* Adjust content margin to expanded sidebar width */
}
 
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 600px;
    width: 100%;
    text-align: left;
}

.card h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #2C3344;
    text-align: center;
}

.tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

.tips li i {
    font-size: 20px; /* Icon size */
    margin-right: 10px;
    color: #2C3344;
}
 
.basket-search-form {
    display: flex;
    flex-direction: column;
}

.basket-search-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #2C3344;
}

.basket-search-form input,
.basket-search-form select {
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.basket-search-form button {
    padding: 10px;
    background-color: #2C3344;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.basket-search-form button i {
    margin-right: 8px; /* Space between icon and text */
}

.basket-search-form button:hover {
    background-color: #1E2430;
}

.message {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.photo-search-form {
    display: flex;
    flex-direction: column;
}

.photo-search-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #2C3344;
}

.photo-search-form input,
.photo-search-form select {
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.photo-search-form button {
    padding: 10px;
    background-color: #2C3344;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.photo-search-form button i {
    margin-right: 8px; /* Space between icon and text */
}

.photo-search-form button:hover {
    background-color: #1E2430;
}

.message {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.message i {
    margin-right: 5px; /* Space between icon and text */
}
.deposit-search-form {
    display: flex;
    flex-direction: column;
}

.deposit-search-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #2C3344;
}

.deposit-search-form input,
.deposit-search-form select {
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.deposit-search-form button {
    padding: 10px;
    background-color: #2C3344;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.deposit-search-form button i {
    margin-right: 8px; /* Space between icon and text */
}

.deposit-search-form button:hover {
    background-color: #1E2430;
}
.context-search-form {
    display: flex;
    flex-direction: column;
}
.context-search-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #2C3344;
}

.context-search-form input,
.context-search-form select {
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.context-search-form button {
    padding: 10px;
    background-color: #2C3344;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.context-search-form button i {
    margin-right: 8px; /* Space between icon and text */
}

.context-search-form button:hover {
    background-color: #1E2430;
}
.object-search-form {
    display: flex;
    flex-direction: column;
}

.object-search-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #2C3344;
}

.object-search-form input,
.object-search-form select {
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.object-search-form button {
    padding: 10px;
    background-color: #2C3344;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.object-search-form button i {
    margin-right: 8px; /* Space between icon and text */
}

.object-search-form button:hover {
    background-color: #1E2430;
}

.message {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.object-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group label {
    flex: 1;
    font-weight: bold;
    color: #2C3344;
    text-transform: lowercase;
    font-size: 14px;
    margin-right: 10px;
}

.form-group select,
.form-group input {
    flex: 2;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.object-search-form button {
    padding: 10px;
    background-color: #2C3344;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-transform: lowercase;
}

.object-search-form button:hover {
    background-color: #2C3344;
}
.lot-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group label {
    flex: 1;
    font-weight: bold;
    color: #2C3344;
    text-transform: lowercase;
    font-size: 14px;
    margin-right: 10px;
}

.form-group select,
.form-group input {
    flex: 2;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.main-button {
    padding: 10px;
    background-color: #2C3344;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-transform: lowercase;
}

.main-button:hover {
    background-color: #1B222E;
}

.message {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.extra-button {
    margin-top: 20px;
    text-align: center;
}

.secondary-button {
    padding: 10px;
    background-color: #2C3344;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-transform: lowercase;
    width: 100%;
}

.secondary-button:hover {
    background-color: #1B222E;
}

.secondary-message {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}
.notebook-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.notebook-search-form label {
    font-weight: bold;
    color: #2C3344;
    text-transform: capitalize;
    font-size: 14px;
}

.notebook-search-form select,
.notebook-search-form input {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    width: 100%;
}

.notebook-search-form button {
    padding: 10px;
    background-color: #2C3344;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notebook-search-form button:hover {
    background-color: #2C3344;
}
.inventory-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.inventory-search-form label {
    font-weight: bold;
    color: #2C3344;
    text-transform: capitalize;
    font-size: 14px;
}

.inventory-search-form select,
.inventory-search-form input {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    width: 100%;
}

.inventory-search-form button {
    padding: 10px;
    background-color: #2C3344;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inventory-search-form button:hover {
    background-color: #2C3344;
}
.area-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.area-search-form label {
    font-weight: bold;
    color: #2C3344;
    text-transform: capitalize;
    font-size: 14px;
}

.area-search-form select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    width: 100%;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-group button {
    padding: 10px;
    background-color: #2C3344;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 8px;
}

.button-group button:hover {
    background-color: #2C3344;
}
/* Media Queries */
@media (max-width: 768px) {
    .container {
        position: relative;
    }

    .top-bar {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }

    .menu-toggle {
        position: absolute;
        left: 10px;
    }

    .sidebar {
        width: 160px; /* Width of sidebar */
        transform: translateX(-100%);
        visibility: hidden;
        height: 100vh; /* Full viewport height */
    }

    .sidebar.expanded {
        transform: translateX(0);
        visibility: visible;
    }

    .sidebar.expanded ~ .content {
        margin-left: 160px; /* Adjust content margin */
    }

    .content {
        padding-top: 60px; /* Adjust padding for top bar */
        margin-left: 0; /* Initial margin */
    }

    .menu-item i {
        font-size: 24px; /* Increase font size for icons on mobile */
        margin-right: 10px; /* Adjust margin for icons on mobile */
    }
}
