body {

    background: var(--bg-color);
    color: var(--color2);
}

.dashboard-container {
    margin-left: clamp(200px, 15%, 300px);
    padding: 20px;
}

.header-table {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.header-table h2 {
    font-size: 24px;
    color: var(--color2);
}

.equipment-count {
    font-size: 16px;
    color: #666;
    margin-left: 10px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.search-input {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    width: 200px;
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--bg-color);
    color: var(--color2);
    outline: none;
}

.search-input:focus {
    border-color: #ce030351;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
    background-color: var(--color1);
}

.new-equipment {
    background: var(--color-hover);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.inventory-header h2 {
    font-size: 24px;
    color: var(--color2);
}

.inventory-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--color-hover);
    color: white;
}

.inventory-list {
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: auto;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

.inventory-table th, .inventory-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    white-space: nowrap; 
}

.inventory-table th {
    background: var(--menu-bg);
    color: var(--color2);
    font-weight: 600;
}

.inventory-table td {
    color: #333;
}

.inventory-table tbody tr:hover {
    background: var(--popup-hover);
}

.inventory-table .actions i {
    cursor: pointer;
    margin-right: 10px;
    color: var(--icon-color);
    transition: var(--transition);
}

.inventory-table .actions i:hover {
    color: var(--color-hover);
}

.equipment-list h3 {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.equipment-list h3 input {
    margin-right: 10px;
}

.equipment-list h3 span {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--color-hover);
}

.equipment-table {
    width: 100%;
    border-collapse: collapse;
    /* box-shadow: var(--popup-shadow); */
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}
.equipment-list {
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: auto;
}

.equipment-table th, .equipment-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    white-space: nowrap; 
   
}
.equipment-table th {
    background: var(--menu-bg);
    color: var(--color2);
    font-weight: 600;
}

.equipment-table td {
    color: #333;
}

.equipment-table tbody tr:hover {
    background: var(--popup-hover);
}

.equipment-table .equipment-id {
    font-weight: 600;
    color: var(--color-hover);
}

.equipment-table .status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status.active {
    background: rgba(0, 200, 83, 0.1);
    color: #00c853;
}

.status.inactive {
    background: #fbe9e7;
    color: #d84315;
}

.status.maintenance {
    background: #fff3e0;
    color: #ff8f00;
}

.status.overdue {
    background: #f8d7da;
    color: #721c24;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}

.status.requisition {
    background: #e0f7fa;
    color: #00796b;
}

.status.approval {
    background: #fff3e0;
    color: #ff8f00;
}

.status.ordered {
    background: #ffe0b2;
    color: #e65100;
}

.equipment-table .actions i {
    cursor: pointer;
    margin-right: 10px;
    color: var(--icon-color);
    transition: var(--transition);
}

.equipment-table .actions i:hover {
    color: var(--color-hover);
}

.equipment-details {
    display: none;
    background: #f9f9f9;
}

.equipment-details.show {
    display: table-row;
}

.details-content {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.details-content p {
    margin: 5px 0;
    color: #333;
}

.details-content .task {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.details-content .due-text {
    color: #cc0000;
}

.toggle-details {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    color: #666;
    transition: color 0.3s ease;
}

.toggle-details:hover {
    color: var(--color-hover);
}

.login-role {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
}

.login-role.owner {
    background: #d1c4e9;
    color: #673ab7;
}

.login-role.admin {
    background: #bbdefb;
    color: #2196f3;
}

.login-role.operator {
    background: #c8e6c9;
    color: #4caf50;
}

.login-role.standard {
    background: #ffcdd2;
    color: #f44336;
}

.head{
    display: flex;
    gap: 10px;
    align-items: center;
}
.head i{
    font-size: 1.2em;
    color: grey;
}

.filter-popup {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    width: 280px;
    position: fixed;
    left: 15%;
    top: 63px;
    height: calc(100vh - 80px);
    padding: 10px;
    padding-bottom: 80px;
    display: none;
    transition: all 0.3s ease;
}

.filter-popup h3 {
    font-size: 1.25em;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.locations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 70px;
}

.locations-list > li {
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.locations-list > li:hover {
    background: #f8f9fa;
    border-radius: 6px;
}

.location-name {
    font-size: 0.8em;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.location-name:hover {
    color: #d1191f;
    background: rgba(0, 123, 255, 0.05);
}

.location-name.toggle::after {
    content: '▾';
    font-size: 1em;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.location-name.toggle.collapsed::after {
    transform: rotate(-90deg);
}

.sub-locations {
    list-style: none;
    padding-left: 28px;
    margin-top: 6px;
    margin-bottom: 6px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-locations li {
    font-size: 0.9em;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.sub-locations li:hover {
    background: rgba(0, 123, 255, 0.05);
    color: var(--color-hover);
}

.sub-locations .count {
    font-size: 0.8em;
    color: #adb5bd;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
}

.bottom-popup-filter {
    position: fixed;
    bottom: 0;
    left: 15%;
    width: 270px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 25%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.add-location-btn {
    width: 100%;
    padding: 12px;
    background: var(--color-hover);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.add-location-btn:hover {
    background: #d1191f;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.add-location-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.add-location-btn i {
    font-size: 1.2em;
}

.location-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.location-title i {
    cursor: pointer;
    font-size: 1.5em;
}
.actions {
    display: flex;
    justify-content: center;
}
.actions i {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--icon-color);
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.actions-popup {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 6px;
    width: 250px;
    z-index: 1000;
    top: 80px;
    right: 50px;
}

.actions-popup ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.actions-popup ul li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1em;
    color: #333;
    transition: background 0.2s;
}

.actions-popup ul li:hover {
    background: #f0f0f0;
}

.actions-popup hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 8px 0;
}
