/* Updated table styling for Category and Description columns */
#categories-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1em; /* Increase font size */
    table-layout: fixed; /* Ensures that widths are respected */
}

#categories-table th, #categories-table td {
    padding: 12px; /* Add more padding to cells for better spacing */
    text-align: left;
}

#categories-table th:nth-child(1), 
#categories-table td:nth-child(1) {
    width: 20%; /* Set Category column to 20% of the table width */
}

#categories-table th:nth-child(2), 
#categories-table td:nth-child(2) {
    width: 40%; /* Set Description column to 40% of the table width, which is double the Category column */
}

#categories-table th {
    background-color: #f472b6; /* A pink background to match existing header style */
    color: white;
}

#categories-table td {
    background-color: #e6f7ff; /* Light blue background for rows */
}


/* Input and Button Styling */
input[type="radio"],
input[type="checkbox"] {
    transform: scale(1.5); /* Make checkboxes and radio buttons larger */
    margin-right: 10px; /* Add spacing between checkboxes/radios and labels */
}

/* Text Inputs */
td[contenteditable="true"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px; /* Rounded corners for text fields */
    background-color: #f9f9f9;
}

/* Buttons */
button {
    background-color: #ff8c00; /* Bright orange color to match the theme */
    color: white;
    font-size: 1.1em; /* Increase button font size */
    padding: 10px 20px; /* More padding to make buttons larger */
    border: none;
    border-radius: 5px; /* Rounded corners for buttons */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff6f00; /* Darken button color on hover */
}

/* Add Category button styling */
button#add-category {
    font-weight: bold;
}

/* Table Rows */
tr:hover {
    background-color: #dff0ff; /* Light blue highlight on row hover */
}

/* Delete button specifically */
.delete-category-button {
    background-color: #e63946; /* Distinctive red color */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-category-button:hover {
    background-color: #d62828; /* Darker red for hover */
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 30px;
    padding: 30px;
}

.container {
    max-width: 1600px;
    margin: 10px auto 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding-left: 20px;  /* Added left padding */
    padding-right: 20px; /* Added right padding */
}

header {
    text-align: center;
    margin-top: 10px;      /* NEW: reduce top space */
    margin-bottom: 20px;
    padding: 0 20px;
    border-bottom: 1px solid #eee;  /* Optional visual anchor */
}

header .logo {
    max-height: 80px; /* NEW: limit vertical space */
    width: auto;      /* Override % width */
    height: auto;
    object-fit: contain;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding-left: 20px;  /* Added left padding */
    padding-right: 20px; /* Added right padding */
}

.form-container {
    display: flex;
    gap: 20px;
    margin: 0;
    padding-left: 20px;  /* Added left padding */
    padding-right: 20px; /* Added right padding */
}

.form-container h2 {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"], input[type="email"], select, input[type="number"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

input[type="radio"] {
    margin-right: 10px;
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #f59e0b, #f59e0b); /* Gradient from orange to pink */
    color: white;
    border: 2px solid transparent; /* Transparent border to create space for the cyan border on hover */
    border-radius: 4px;
    font-size: x-large;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

button:hover {
    background: #38D9D2; /* Cyan from logo */
    border-color: #38D9D2; /* Cyan border on hover */
}

.capability, .sub-capability {
    margin-bottom: 10px;
}

.sub-capabilities {
    padding-left: 20px;
    margin-bottom: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    padding-left: 20px;  /* Added left padding */
    padding-right: 20px; /* Added right padding */
}

.table th, .table td {
    padding: 10px;
    text-align: left;
}

.table th {
    background-color: #f472b6; /* Pink from logo */
    color: white;
}

.table td:nth-child(even) {
    background-color: #f2f2f2;
}

.table td:first-child {
    background-color: #e6f7ff;
    min-width: 250px;
}

.nav-link {
    color: #333;
    padding: 10px;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    background-color: #e6f7ff;
    border-left: 3px solid #f472b6; /* Pink from logo */
}

.btn {
    margin-top: 10px;
}

.form-control {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-item {
        display: inline-block;
    }

    .nav-link {
        padding: 5px;
    }
}

.welcome {
    text-align: center;
    margin-top: 50px;
    padding-left: 20px;  /* Added left padding */
    padding-right: 20px; /* Added right padding */
}

.welcome h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.welcome p {
    font-size: 1.2em;
}

/* New styles added */

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.hidden {
    display: none;
}

.form-container {
    display: flex;
    gap: 20px;
    padding-left: 20px;  /* Added left padding */
    padding-right: 20px; /* Added right padding */
}

.functional-areas,
.capabilities,
.sub-capabilities {
    flex: 1;
}

.table th,
.table td a {
    color: #333;
}

.table th,
.table td {
    text-align: center;
}

.btn-primary {
    background: linear-gradient(to right, #f472b6, #f472b6); /* Gradient from orange to pink */
}

.btn-danger {
    background-color: #ff9900;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875em;
}

h2 {
    color: #f472b6; /* Pink from logo */
}

.capability-row {
    background-color: #f9f9f9;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.sub-capabilities-row {
    background-color: #f1f1f1;
    border-bottom: 2px solid #ccc;
    padding-left: 20px;
}

.sub-capabilities-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.sub-capability-row {
    background-color: #e9e9e9;
}

.sub-capability-row td {
    padding-left: 40px;
}

.sub-capabilities-row:last-child {
    border-bottom: 2px solid #999;
}

.logo-container {
    text-align: center;
    margin: 20px 0;
    padding-left: 20px;  /* Added left padding */
    padding-right: 20px; /* Added right padding */
}

.logo {
    width: 150px;
    height: auto;
}

.clickable-row:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

/* Additional styles for index.html */

.organization-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.organization-card, .product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
}

.organization-logo, .product-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.organization-name, .product-name {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.assessment-tick {
    color: green;
    font-size: 1.5em;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f472b6; /* Pink from logo */
    color: white;
}

.table tr {
    transition: background-color 0.2s;
}

/* Apply hover effect to all columns except Attributes and Actions */
.table tr:hover td:not(:nth-child(5)):not(:nth-child(6)) {
    background-color: #f5f5f5; /* Light grey on hover */
    transition: background-color 0.3s ease;
}


/* Specific styles for functional areas and capabilities */
.clickable-row:hover {
    background-color: #e6f7ff;
}

/* Selected row styling */
.table tr.selected-row {
    background-color: #e6f7ff; /* Light blue background for selected row */
    font-weight: bold; /* Bold text for better visibility */
}

/* Ensure selected-row styling applies to all columns */
.table tr.selected-row td {
    background-color: #e6f7ff !important; /* Apply light blue background to all columns */
    transition: background-color 0.3s ease;
}

/* Exclude Attributes and Actions columns from the selected row styling */
.table tr.selected-row td:nth-child(5),
.table tr.selected-row td:nth-child(6) {
    background-color: transparent !important; /* Keep Attributes and Actions unchanged */
}

.row-highlight {
    background-color: #e6f7ff; /* Light blue highlight for focus */
    transition: background-color 0.3s ease; /* Smooth transition for better UX */
}

.breadcrumb {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: #38D9D2; /* Teal color from the logo */
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 10px;
}

.admin-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}

.admin-btn {
    background: linear-gradient(to right, #f59e0b, #f59e0b); /* Gradient from orange to pink */
    color: white;
    border: 2px solid transparent; /* Transparent border to create space for the cyan border on hover */
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.admin-btn:hover {
    background: #38D9D2; /* Cyan from logo */
    border-color: #38D9D2; /* Cyan border on hover */
}

.btn-sm.add-user-btn {
    width: auto; /* Reduce size of Add User button */
    padding: 10px 20px; /* Adjust padding for Add User button */
}

/* Styles for the login page */
/* Styles for the login page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 100px); /* Adjust height to account for header/footer */
    background-color: #f7f7f7;
}

.login-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form h2 {
    margin-bottom: 20px;
    color: #f472b6;
}

.login-form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.login-form .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.login-form .btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to right, #f59e0b, #f59e0b);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.login-form .btn:hover {
    background: #38D9D2;
}

.login-form .btn-secondary {
    background-color: #6c757d;
    margin-top: 20px;
}

.login-form .btn-secondary:hover {
    background-color: #565e64;
}

.visible {
    display: table-row;
}
.hidden {
    display: none !important;
}

.tabs {
    margin-top: 20px;
}
.product-card, .organization-card {
    position: relative;
    text-align: center;
}
.assessment-tick {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: green;
}

.nav-tabs {
    border-bottom: 1px solid #ddd;
}

.nav-tabs li {
    display: inline-block;
    margin-bottom: -1px;
}

.nav-tabs li a {
    color: #555;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
}

.nav-tabs li a:hover,
.nav-tabs li.active a {
    background-color: #f472b6;
    color: #fff;
    border-color: #ddd #ddd transparent;
}

.tab-content {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 0 4px 4px 4px;
    background-color: #fff;
}

.filter-dropdowns {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.filter-dropdowns div {
    flex: 1;
}

.filter-dropdowns label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
/* Navbar styling */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  position: relative;
}

.navbar .logo {
  display: block;
  height: auto;
  width: 240px;
}

.hamburger {
  cursor: pointer;
  font-size: 48px;
  background: none;
  border: none;
  color: black;
  position: absolute;
  top: 10px;
  right: 20px;
}

/* Dropdown menu */
.dropdown {
  display: none;
  position: absolute;
  right: 20px;
  top: 60px;
  background-color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
}

.dropdown a:hover {
  background-color: #f472b6;
  color: white;
}

/* Large button styles */
.extra-large-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.btn-large {
  position: relative;
  display: inline-block;
  padding: 20px;
  font-size: 18px;
  background-color: #38d9d2;
  color: white;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-large:hover {
  background-color: #f59e0b;
}

.icon {
  height: 250px;
  vertical-align: middle;
}

/* Product and vendor grids */
.product-grid, .vendor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.product-card, .organization-card {
  width: 100%;
  text-align: center;
}

.product-logo, .organization-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-name, .organization-name {
  margin-top: 10px;
  font-size: 16px;
}

.score-summary-horizontal {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}
/* New styles for attribute and score boxes */
.attribute-box {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.attribute-box label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: large;
}

.attribute-value {
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    font-size: x-large;
}

.score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f1f1f1;
    margin-bottom: 15px;
}

.score-container label {
    font-weight: bold;
    font-size: larger;
    margin-bottom: 10px;
    color: #333;
}

.score-container .chart {
    width: 150px;
    height: 150px;
}
