/* General Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

h1 {
    color: rgb(56, 56, 56);
    font-size: 24px;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 10px 320px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.navbar a {
    position: relative;
    left: 120px;
    margin: 0 15px;
}

.nav-link {
    text-decoration: none;
    color: #5f6a7d;
    font-weight: 600;
    font-size: 20px;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.nav-icon {
    font-size: 25px;
    margin-right: 10px;
    color: #5f6a7d;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Header Button Styling */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.add-group {
    background-color: #007bff;
    color: #ffffff;
}

.actions .btn {
    margin-left: 10px;
}

.actions .import {
    background-color: #28a745;
    color: #ffffff;
}

.actions .export {
    background-color: #ffc107;
    color: #ffffff;
}

.actions .upgrade {
    background-color: #dc3545;
    color: #ffffff;
}

/* Group Styling */
.group {
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.group-title {
    font-weight: bold;
    font-size: 16px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

thead th {
    text-align: left;
    background: #f4f4f4;
    color: #5f6a7d;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

tbody td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

/* Form Input and Select */
input,
select {
    width: 95%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Add Product Button */
.add-product {
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

label {
    margin-top: 10px;
    display: block;
}

/* Cargo Breakdown Table */
.cargo-breakdown table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.cargo-breakdown th, .cargo-breakdown td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.cargo-breakdown td {
    font-size: 14px;
}

.cargo-breakdown td:nth-child(2) {
    width: 50px;
    height: 20px;
}

/* Visualization */
.visualization {
    margin: 10px 0;
    padding: 20px;
    border: 2px dashed #ccc;
    text-align: center;
    font-size: 16px;
    color: #666;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Navigation Button */
.navigate-btn {
    position: absolute;
    left: 720px;
    bottom: 80px;
    background-color: #047085;
    color: #fff;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Sidebar Styling */
.sidebar {
    width: 230px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f5f5f5;
    height: 100%;
    padding-top: 20px;
    border-right: 2px solid #ddd;
}

.nav-link {
    display: block;
    color: #333;
    padding: 15px;
    text-decoration: none;
    font-size: 15px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.nav-link:hover {
    background-color: #e0e0e0;
    padding-left: 20px;
}

.nav-link.active {
    background-color: #3d3d3d;
    color: white;
}

.nav-icon {
    margin-right: 10px;
}

/* Content Container */
.container {
    margin-left: 250px;
    padding: 20px;
}

/* Header Button Styling */
.btn {
    background-color: #008CBA;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #005f73;
}

/* General Nav Link Styles */
.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    background: #015b6d;
    border-bottom: 2px solid #d2ff1d;
    color: #fff;
}

.nav-link:hover .nav-icon {
    color: #fff;
}

.nav-link.active {
    background: #0195b3;
    color: #fff;
    border-bottom: 2px solid #d2ff1d;
}

.nav-link.active .nav-icon {
    color: #fff;
}
select.unit-selector {
    width: 80px; /* Adjust width to fit within table header */
    padding: 4px;
    font-size: 14px;
  }
  