/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* Reset and global styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue',
                 sans-serif;
    background-color: #f6f8fa;
    color: #333;
    height: 100%;
  }
  
  a {
    color: #0070f3;
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }
  
  button {
    cursor: pointer;
    background: #0070f3;
    color: #fff;
    border: none;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: background 0.2s;
  }
  button:disabled {
    cursor: not-allowed;
    background: gray;
    color: #fff;
  }

  button:hover:not(:disabled) {
    background: #005bb5;
  }
  
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 1rem;
  }
  .header h1 {
    font-size: 1.5rem;
  }
  .header nav a {
    margin-left: 1rem;
    color: #0070f3;
  }
  
  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
  }
  
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
  }
  
  .hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    max-width: 600px;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: #555;
  }
  
  /* Table-based partial allocation styling */
  
  .so-container {
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    padding: 1.5rem;
    margin: 1rem auto;
  }
  
  .input-block {
    margin-bottom: 1rem;
  }
  
  .input-label {
    font-weight: 600;
    margin-right: 0.5rem;
  }
  
  .input-select {
    padding: 0.3rem 0.5rem;
    min-width: 220px;
    font-size: 0.95rem;
  }
  
  .boxes-container {
    border-top: 1px solid #aaa;
    margin-top: 1rem;
    padding-top: 1rem;
  }
  
  .add-box-btn {
    margin-bottom: 1rem;
  }
  
  .box-card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }
  
  .box-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .box-type-select {
    margin-left: 0.4rem;
    padding: 0.3rem 0.4rem;
    font-size: 0.9rem;
  }
  
  .remove-box-btn {
    background: #dc3545;
    margin-left: 1rem;
  }
  
  .items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.9rem;
  }
  
  .items-table th {
    background: #f1f1f1;
    text-align: left;
    padding: 0.5rem;
  }
  
  .items-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
  }
  
  .qty-input {
    width: 60px;
    padding: 0.2rem;
    font-size: 0.9rem;
  }
  
  .submit-area {
    margin-top: 1rem;
    text-align: right;
  }
  
  .submit-btn {
    background: #28a745;
    /* margin-top: 1rem; */
  }
  

  /* You can put this in a global stylesheet or somewhere your app can see it */

/* The translucent background covering the entire screen */
.modal-overlay {
  position: fixed;        /* remove from normal flow and fix in place */
  top: 0;                
  left: 0;
  width: 100vw;          /* make it full screen */
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* translucent dark background */
  display: flex;         /* so we can center modal-content easily */
  justify-content: center;
  align-items: center;
  z-index: 9999;         /* ensures it’s on top of everything else */
}

/* The actual modal box */
.modal-content {
  background-color: #fff;
  padding: 1rem;
  border-radius: 4px;
  max-width: 500px;
  width: 90%;
  /* optional: min-height, box-shadow, etc. */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Overlay background */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 240, 240, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Processing box */
.loadingBox {
  background: #fff;
  padding: 20px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  font-weight: 500;
  color: #333;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Spinner animation */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073e6;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px auto;
}

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


