/*
TODO
Much of the styles here are not used - left over from earlier iterations.
Most styling is controlled by Tailwind classes or inline styles.
The theme colours declared here are used, and some general table styling.
*/

/* Port of Tauranga Theme Colors */
:root {
    /* Theme Colors */
    --pot-moana-blue: #0A357C;
    --pot-moana-blue-70: rgba(10, 53, 124, 0.7);
    --pot-moana-blue-50: rgba(10, 53, 124, 0.5);
    --pot-moana-blue-30: rgba(10, 53, 124, 0.3);

    --pot-whenua-green: #618F6D;
    --pot-whenua-green-70: rgba(97, 143, 109, 0.7);
    --pot-whenua-green-50: rgba(97, 143, 109, 0.5);
    --pot-whenua-green-30: rgba(97, 143, 109, 0.3);

    --pot-seaspray-green: #AFDBBB;
    --pot-seaspray-green-70: rgba(175, 219, 187, 0.7);
    --pot-seaspray-green-50: rgba(175, 219, 187, 0.5);
    --pot-seaspray-green-30: rgba(175, 219, 187, 0.3);

    --pot-seaspray-blue: #DBF0EC;
    --pot-seaspray-blue-70: rgba(219, 240, 236, 0.7);
    --pot-seaspray-blue-50: rgba(219, 240, 236, 0.5);
    --pot-seaspray-blue-30: rgba(219, 240, 236, 0.3);
    
    /* Row Status Colors - Subtle highlighting for visitor states */
    --row-checked-in: #fef3e2; /* Subtle warm orange for checked-in visitors */
    --row-checked-in-hover: #fde6c2; /* Slightly darker on hover */
    --row-checked-out: #f0f9f0; /* Subtle green for checked-out visitors */
    --row-checked-out-hover: #e8f5e8; /* Slightly darker on hover */
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

/* Table alternating rows */
tbody tr {
  background-color: #fdfdfd;
}
tbody tr:hover {
  background-color: #fbfbfb;
}
tbody tr:nth-child(even) {
  background-color: #efefef;
}
tbody tr:nth-child(even):hover {
  background-color: #ebebeb;
}

/* Row status highlighting - overrides alternating colors when visitor has specific status */
tbody tr.row-checked-in {
  background-color: var(--row-checked-in) !important;
}
tbody tr.row-checked-in:hover {
  background-color: var(--row-checked-in-hover) !important;
}
tbody tr.row-checked-out {
  background-color: var(--row-checked-out) !important;
}
tbody tr.row-checked-out:hover {
  background-color: var(--row-checked-out-hover) !important;
}

/* Modern App Styles */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Header Styles */
.app-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.title-section h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #1a365d;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.title-section h2 {
  margin: 4px 0 0 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #4a5568;
}

.status-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* Status Indicators */
.status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status.checking {
  background: #fef5e7;
  color: #c05621;
}

.status.connected {
  background: #c6f6d5;
  color: #22543d;
}

.status.error {
  background: #fed7d7;
  color: #822727;
}

.api-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #718096;
}

.retry-connection {
  padding: 4px 8px;
  background: var(--pot-moana-blue);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
}

.retry-connection:hover {
  background: var(--pot-moana-blue-70);
}

/* Main Content */
.app-main {
  flex: 1;
  padding: 24px;
  display: flex;
  justify-content: center;
}

/* Loading State */
.loading-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: white;
  text-align: center;
  padding: 48px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Connection Error */
.connection-error {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  text-align: center;
}

.connection-error h3 {
  color: #e53e3e;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.connection-error p {
  color: #4a5568;
  margin-bottom: 16px;
  line-height: 1.5;
}

.connection-error ul {
  text-align: left;
  color: #4a5568;
  line-height: 1.6;
  margin: 16px 0;
}

.connection-error code {
  background: #f7fafc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 13px;
}

.connection-error a {
  color: #3182ce;
  text-decoration: none;
}

.connection-error a:hover {
  text-decoration: underline;
}

.retry-button {
  padding: 12px 24px;
  background: var(--pot-moana-blue);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  transition: background-color 0.2s;
}

.retry-button:hover {
  background: var(--pot-moana-blue-70);
}

/* Footer */
.app-footer {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  text-align: center;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.app-footer p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.app-footer a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  transition: all 0.2s;
}

.app-footer a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Item List Styles */
.item-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.item-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.item-list-header h2 {
  margin: 0;
  color: #1a365d;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.count {
  font-size: 0.9rem;
  color: #718096;
  font-weight: normal;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  padding: 8px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  min-width: 250px;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.refresh-button {
  padding: 8px 16px;
  background: #3182ce;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.refresh-button:hover:not(:disabled) {
  background: #2c5aa0;
}

.refresh-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Table Styles */
.item-table {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 2fr 2.5fr 1.5fr 1fr 1fr;
  gap: 16px;
  padding: 16px 20px;
  background: #f7fafc;
  font-weight: 600;
  color: #2d3748;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 2fr 2.5fr 1.5fr 1fr 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s;
  align-items: center;
}

.table-row:hover {
  background: #f7fafc;
}

.table-row:last-child {
  border-bottom: none;
}

.item-name strong {
  color: #2d3748;
}

.item-company {
  color: #4a5568;
}

.item-email {
  color: #4a5568;
  font-size: 14px;
}

.item-arrival {
  color: #4a5568;
  font-size: 14px;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-signedin {
  background: #c6f6d5;
  color: #22543d;
}

.status-signedout {
  background: #fed7d7;
  color: #822727;
}

.status-cancelled {
  background: #e2e8f0;
  color: #4a5568;
}

/* Action Buttons */
.sign-out-button {
  padding: 6px 12px;
  background: #e53e3e;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.sign-out-button:hover {
  background: #c53030;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
}

.pagination-button {
  padding: 8px 16px;
  background: #3182ce;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.pagination-button:hover:not(:disabled) {
  background: #2c5aa0;
}

.pagination-button:disabled {
  background: #e2e8f0;
  color: #a0aec0;
  cursor: not-allowed;
}

.pagination-info {
  color: #4a5568;
  font-size: 14px;
}

/* Loading and Error States */
.loading, .error, .empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #4a5568;
}

.loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #3182ce;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.error h3 {
  color: #e53e3e;
  margin-bottom: 8px;
}

.empty-state h3 {
  color: #2d3748;
  margin-bottom: 8px;
}

/* Table Responsive Utilities */
.table-container {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

.table-container table {
  table-layout: fixed;
  width: 100%;
  min-width: 800px; /* Minimum width to prevent column squashing */
}

.table-container th,
.table-container td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-container th.no-ellipsis,
.table-container td.no-ellipsis {
  text-overflow: clip;
}

.table-container .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile responsive table adjustments */
@media (max-width: 1024px) {
  .table-container table {
    min-width: 1000px; /* Wider on tablets */
  }
}

@media (max-width: 768px) {
  .table-container table {
    min-width: 800px; /* Maintain readability on mobile */
  }

  .table-container th,
  .table-container td {
    padding: 8px 6px; /* Reduced padding on mobile */
    font-size: 12px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .app-header {
    padding: 12px 16px;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .status-section {
    align-items: center;
  }

  .title-section h1 {
    font-size: 1.5rem;
  }

  .title-section h2 {
    font-size: 1rem;
  }

  .app-main {
    padding: 16px;
  }

  .app-footer {
    flex-direction: column;
    gap: 12px;
  }

  .item-list-header {
    flex-direction: column;
    align-items: stretch;
  }

  .controls {
    justify-content: stretch;
  }

  .search-input {
    min-width: auto;
    flex: 1;
  }

  .table-header, .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-header {
    display: none; /* Hide header on mobile */
  }

  .table-row {
    padding: 16px;
    display: block;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .table-row > div {
    margin-bottom: 8px;
  }

  .table-row > div:last-child {
    margin-bottom: 0;
  }

  .item-name::before { content: "Name: "; font-weight: 600; }
  .item-company::before { content: "Category: "; font-weight: 600; }
  .item-email::before { content: "Description: "; font-weight: 600; }
  .item-arrival::before { content: "Created: "; font-weight: 600; }
  .item-status::before { content: "Status: "; font-weight: 600; }
  .item-actions::before { content: "Actions: "; font-weight: 600; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .status.connected {
    background: #22543d;
    color: white;
  }

  .status.error {
    background: #822727;
    color: white;
  }

  .status.checking {
    background: #c05621;
    color: white;
  }
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: var(--pot-moana-blue);
    border-color: var(--pot-moana-blue-70);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* Card Components */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
}

.card-body {
    padding: 24px;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-input:invalid {
    border-color: #e53e3e;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--pot-moana-blue);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--pot-moana-blue-70);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover:not(:disabled) {
    background: #cbd5e0;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c53030;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.badge-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.badge-danger {
    background: #fed7d7;
    color: #822727;
}

/* Status Indicators */
.status-checking {
    color: #c05621;
}

.status-connected {
    color: #22543d;
}

.status-error {
    color: #822727;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glass Morphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Background Gradients */
.bg-gradient-app {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    min-height: 100vh;
}

/* Text Utilities */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Navigation Theme Styles */
.nav-link-primary {
    color: #374151 !important; /* Dark gray text for good contrast */
}

.nav-link-primary:hover {
    background-color: var(--pot-seaspray-green-70) !important;
    color: #111827 !important; /* Darker on hover */
}

.nav-link-primary.active {
    background-color: var(--pot-moana-blue) !important;
    color: white !important;
}

/* Color Utilities */
.text-secondary-900 {
    color: #1a365d;
}

.text-secondary-600 {
    color: #4a5568;
}

.text-primary-600 {
    color: #3182ce;
}

/* Layout Utilities */
.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.flex {
    display: flex;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.pt-4 {
    padding-top: 1rem;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.h-5 {
    height: 1.25rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.block {
    display: block;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-red-600 {
    color: #dc2626;
}

.text-indigo-600 {
    color: #4f46e5;
}

.focus\:ring-indigo-500:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

.border-gray-300 {
    border-color: #d1d5db;
}

.rounded {
    border-radius: 0.25rem;
}

.min-h-\[100px\] {
    min-height: 100px;
}

.resize-y {
    resize: vertical;
}

.opacity-50 {
    opacity: 0.5;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.w-full {
    width: 100%;
}

/* Table column width utilities */
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-28 { width: 7rem; }
.w-32 { width: 8rem; }
.w-36 { width: 9rem; }
.w-40 { width: 10rem; }
.w-44 { width: 11rem; }
.w-48 { width: 12rem; }

/* Min-width for proper table layout */
.min-w-max {
    min-width: max-content;
}

.table-fixed {
    table-layout: fixed;
}

/* Text truncation utilities */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-left {
    text-align: left;
}

/* Additional Layout Classes */
.justify-between {
    justify-content: space-between;
}

.max-w-7xl {
    max-width: 80rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.h-16 {
    height: 4rem;
}

.shrink-0 {
    flex-shrink: 0;
}

.size-8 {
    width: 2rem;
    height: 2rem;
}

.size-6 {
    width: 1.5rem;
    height: 1.5rem;
}

.hidden {
    display: none;
}

.md\:block {
    display: block;
}

.ml-10 {
    margin-left: 2.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-6 {
    margin-left: 1.5rem;
}

.md\:ml-6 {
    margin-left: 1.5rem;
}

.items-baseline {
    align-items: baseline;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-x-6 > * + * {
    margin-left: 1.5rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.right-0 {
    right: 0;
}

.z-10 {
    z-index: 10;
}

.mt-2 {
    margin-top: 0.5rem;
}

.w-48 {
    width: 12rem;
}

.origin-top-right {
    transform-origin: top right;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-full {
    border-radius: 9999px;
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.bg-indigo-500 {
    background-color: #6366f1;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.p-1 {
    padding: 0.25rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.text-white {
    color: #ffffff;
}

.text-gray-400 {
    color: #9ca3af;
}

.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\:bg-gray-700:hover {
    background-color: #374151;
}

.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px;
}

.focus\:ring-white:focus {
    box-shadow: 0 0 0 2px #ffffff;
}

.focus\:ring-offset-2:focus {
    box-shadow: 0 0 0 2px transparent, 0 0 0 4px;
}

.focus\:ring-offset-gray-800:focus {
    box-shadow: 0 0 0 2px #1f2937, 0 0 0 4px;
}

.max-w-xs {
    max-width: 20rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.-mr-2 {
    margin-right: -0.5rem;
}

.md\:hidden {
    display: none;
}

.min-h-full {
    min-height: 100%;
}

.inline-flex {
    display: inline-flex;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.-inset-1\.5 {
    top: -0.375rem;
    right: -0.375rem;
    bottom: -0.375rem;
    left: -0.375rem;
}

.ring-1 {
    box-shadow: 0 0 0 1px;
}

.ring-black\/5 {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .md\:block {
        display: block;
    }

    .md\:hidden {
        display: none;
    }

    .md\:ml-6 {
        margin-left: 1.5rem;
    }
}

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
