/* Reset and basics */
* {
    box-sizing: border-box;
}

html {
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #FBF9F1;
    display: flex;
    flex-direction: column;
}  

.head {
    background-color: black;
    font-weight: bold;
    margin-bottom: 1px;
    padding: 10px 0;
    text-align: center;
    color: white;
}

a:link, a:visited { 
    color: black; 
}

a:hover { 
    color: #00b8ff; 
}


/* ----------- BUTTONS ------------ */
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    max-width: 200px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: auto;
    overflow: hidden; 
    text-overflow: ellipsis;
    white-space: nowrap; 
}

.button:hover {
    background-color: #0056b3;
}

.send-quote-btn {
    background-color: #17a2b8;
}

.send-quote-btn:hover {
    background-color: #117a8b;
}

.delete-btn {
    background-color: #dc3545;
}

.delete-btn:hover {
    background-color: #bd2130;
}

.toggle-btn {
    background-color: #28a745;
}

.toggle-btn.hide-mode {
    background-color: #dc3545;
}

.toggle-btn:hover {
    opacity: 0.9;
}

.button:disabled:hover {
    background-color: #eee;
    cursor: not-allowed;
}

input[type="checkbox"].custom-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #007bff; 
    cursor: pointer;
    margin-right: 8px; 
}

/* ----------- HEADER BAR ------------ */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* ----------- CONTAINERS ------------ */
.container {
    display: flex;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 10px auto;
    padding: 10px;
    flex-wrap: wrap;
}

.column {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.column-25 {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 25%;
}

.column-33 {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 33%;
}

.column-50 {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 50%;
}

.column-75 {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 75%;
}

.column h3,
.column-25 h3,
.column-33 h3,
.column-50 h3,
.column-75 h3 {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.column h4,
.column-25 h4,
.column-33 h4,
.column-50 h4, 
.column-75 h4 {
    margin: 5px 0 15px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.footer { 
    background-color: #e5e5e5;
    font-size: 0.8em;
    padding: 10px;
    text-align: center;
    margin-top: auto;
}

.full-width-column {
    flex: 0 0 100%; 
    width: 100%; 
}

/* ----------- FORM STYLING ------------ */
.form-group {
    margin-bottom: 5px;
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 10px; 
}

.form-group input {
    flex: 1; 
}

.form-group button {
    flex: 0 0 auto;    
    white-space: nowrap;
}

.form-group label {
    display: inline-block;     
    text-align: right;    
    margin-bottom: 0;       
    flex-shrink: 0;       
    font-size: 0.9em;
}

.input-button-wrap {
    display: flex;
    width: 100%;
}

.input-button-wrap input {
    flex: 1;
}

.input-button-wrap button {
    white-space: nowrap;
    flex-shrink: 0; 
}

.input-button-wrap a {
    padding: 10px;  
    display: block; 
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 150px;
}

.search-bar {
    text-align: center;
}

label {
    display: block;
    margin-bottom: 4px;
    color: #333;
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
input[type="search"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 6px 8px;
    min-width: 100px;
}

input[readonly],
textarea[readonly] {
    background-color: #f5f5f5; 
    color: #6c757d;         
    border: #ced4da 1px solid;
}

img {
    width: 100%;
    height: auto;
    margin-bottom: 2px;
}

.no-min-width {
    min-width: 0;
    flex: none;  
    width: auto;          
}

.small-font { 
    font-size: 0.8em; 
}

/* ----------- 2 SUB-COLUMNS ------------ */
.sub-columns {
    display: flex;
    gap: 20px;
}

.sub-col {
    flex: 1;
    min-width: 200px;
}

.account-shipping-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.account-shipping-buttons .button {
    background-color: #6c757d;
}

.account-shipping-buttons .button:hover {
    background-color: #5a6268;
}

/* ----------- 3D CANVAS ------------ */

#canvas3D {
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

#checkboxContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.checkbox-row input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-row label {
    white-space: nowrap;
}

/* ----------- ACTIONS ------------ */
.actions {
    display: flex;
    justify-content: center; 
    align-items: center;      
    gap: 10px;                
    margin: 0px auto;       
    width: 100%;          
}

.actions button {
    white-space: nowrap;    
    overflow: hidden;        
    text-overflow: ellipsis;   
    height: auto;            
}

.success-box { 
    background-color: #99ccff; 
    border: solid 1px black; 
    margin: 5px; 
    padding: 5px; 
}

.warning-box { 
    background-color: Yellow; 
    border: solid 1px black; 
    margin: 5px; 
    padding: 5px; 
}

/* ----------- MESSAGES / ALERTS ------------ */
.alert {
    margin: 0 auto;
    padding: 8px;
    border: solid 1px #000000;
    background-color: #99ccff;
    max-width: 1200px; 
    width: 100%;
    box-sizing: border-box;
    text-align: center; 
  }

/* ----------- TABLES ------------ */

.report-table {
    background-color: white;
    border-collapse: collapse;
    width: 100%;
}

.report-table td, 
.report-table th {
    border: 1px solid white;
    padding: 5px;
}

.report-table th {
    background-color: #ccc;
    position: sticky;
    top: 0;
    z-index: 1;
}

.report-table tr:nth-child(odd) {
    background-color: #eee;
}

.scrollable-table { 
    height: 60vh; 
    overflow-y: auto; 
    font-size: 0.9em;
}

.scrollable-table-small { 
    height: 15vh; 
    overflow-y: auto; 
    font-size: 0.9em;
}

/* ----------- NAVIGATION BAR (MODERNIZED) ------------ */
nav.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: #e5e5e5;
    padding: 5px 15px;
  }
  
  nav.topnav .nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  nav.topnav .nav-links a {
    color: black;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
  nav.topnav .nav-links a:hover {
    background-color: #00b8ff;
    color: white;
  }
  
  nav.topnav .menuButtonActive {
    background-color: #00b8ff;
    color: white !important;
  }
  
  nav.topnav .nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  
  nav.topnav .logout-btn {
    background-color: #dc3545;
    color: white;
  }
  
  nav.topnav .logout-btn:hover {
    background-color: #bd2130;
  }
  
  nav.topnav .icon {
    display: none;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
  }
  
  @media only screen and (max-width: 768px) {
    nav.topnav {
      flex-direction: column;
      align-items: flex-start;
    }
  
    nav.topnav .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
    }
  
    nav.topnav.responsive .nav-links {
      display: flex;
    }
  
    nav.topnav .nav-actions {
      width: 100%;
      justify-content: flex-end;
    }
  
    nav.topnav .icon {
      display: block;
      cursor: pointer;
    }
  
    nav.topnav .nav-actions .button.delete-btn {
      display: none;
    }
  
    nav.topnav.responsive .nav-actions .button.delete-btn {
      display: inline-block;
    }

    .column,
    .column-25,
    .column-33,
    .column-50,
    .column-75 {
        width: 100%;
    }

    .form-group {
        grid-template-columns: 90px 1fr;
    }

    .hide-column {
        display: none;
    }

    .img-column {
        min-width: 75px;
    }

    .report-table th, 
    .report-table td {
        max-width: 50px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-bar input[type="search"] {
        margin: 0 0 8px 0;
    }

    .search-bar .button {
        margin: 0 0 8px 0;
        max-width: none;
        width: 100%;
    }

    .sub-columns {
        flex-direction: column;
    }
}  