/* Modern Design Styles */
* {
    box-sizing: border-box;
  }
  
  body {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      "Helvetica Neue", Arial, sans-serif;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Header Styles */
  .headTop {
    background: white;
    border-radius: 15px;
    padding: 25px !important;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .headTop img {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .headTop hr {
    border-color: #e9ecef;
    margin-top: 20px;
  }
  
  /* Language Switcher */
  .btn-group .btn-primary {
    background: linear-gradient(135deg, #0275d8 0%, #0056b3 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .btn-group .btn-primary:hover,
  .btn-group .btn-primary.active {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 12px rgba(2, 117, 216, 0.3);
  }
  
  /* Header Links Section */
  .header {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    text-decoration: none;
    color: inherit;
  }
  
  .flex-center:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }
  
  .flex-center img {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
  }
  
  .flex-center:hover img {
    transform: scale(1.1);
  }
  
  .flex-center p,
  .flex-center a {
    margin: 0;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-size: 14px;
  }
  
  .flex-center:hover p,
  .flex-center:hover a {
    color: #0275d8;
  }
  
  .flex-center:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
  }
  
  .z-depth-2 {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
  }
  
  .z-depth-3 {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
  }
  
  /* Card Styles */
  .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
  }
  
  .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }
  
  .card-header {
    background: linear-gradient(135deg, #0275d8ba 0%, #0056b3a3 100%);
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 12px 12px 0 0 !important;
  }
  
  .card-header h5,
  .card-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
  }
  
  .card-header .card-title {
    margin: 0;
    font-weight: 600;
    font-size: 24px;
    color: white;
  }
  
  .card-header a {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: block;
  }
  
  .card-header a:hover {
    text-decoration: none;
    opacity: 0.9;
    transform: translateX(5px);
    color: white;
  }
  
  /* Modal Styles */
  .modal-dialog {
    max-height: 90vh;
    margin: 5vh auto;
  }
  
  .modal-content {
    border-radius: 15px !important;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .modal-header {
    background: linear-gradient(135deg, #0275d8 0%, #0056b3 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 20px 30px;
    border-bottom: none;
    flex-shrink: 0;
  }
  
  .modal-header .close {
    color: white;
    opacity: 0.9;
    font-size: 28px;
    font-weight: 300;
  }
  
  .modal-header .close:hover {
    opacity: 1;
  }
  
  .modal-title {
    font-weight: 600;
    font-size: 24px;
  }
  
  .modal-body {
    padding: 20px !important;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
    flex: 1 1 auto;
  }
  
  .modal-body p {
    margin-bottom: 12px !important;
  }
  
  .modal-body h6 {
    margin-top: 12px !important;
    margin-bottom: 8px !important;
  }
  
  .modal-body .text-muted {
    margin-bottom: 12px !important;
  }
  
  .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 30px;
    flex-shrink: 0;
    border-radius: 0 0 25px 25px;
  }
  
  .modal-footer .btn {
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
  }
  
  /* Form Styles */
  .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 8px 12px !important;
    transition: all 0.3s ease;
    margin-bottom: 4px !important;
  }
  
  .form-control:focus {
    border-color: #0275d8;
    box-shadow: 0 0 0 0.2rem rgba(2, 117, 216, 0.25);
  }
  
  .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px !important;
  }
  
  /* Reduce spacing between form rows */
  .row.g-3 {
    margin-bottom: 0 !important;
  }
  
  .row.g-3.mb-3 {
    margin-bottom: 8px !important;
  }
  
  .row.g-3.mb-4 {
    margin-bottom: 12px !important;
  }
  
  .mb-3 {
    margin-bottom: 8px !important;
  }
  
  .mb-4 {
    margin-bottom: 12px !important;
  }
  
  .mt-3 {
    margin-top: 8px !important;
  }
  
  .mt-4 {
    margin-top: 12px !important;
  }
  
  /* Important Notice Alert */
  .alert-warning {
    border-left: 4px solid #ffc107 !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3) !important;
    margin-bottom: 20px !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
  }
  
  .alert-warning strong {
    color: #856404;
    font-size: 16px;
  }
  
  .alert-warning .close {
    color: #856404;
    opacity: 0.8;
  }
  
  .alert-warning .close:hover {
    opacity: 1;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #0275d8 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 117, 216, 0.3);
  }
  
  .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 117, 216, 0.4);
  }
  
  .btn-secondary {
    background: #6c757d;
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
  }
  
  /* Custom class for padding on card blocks */
  .card-block-custom {
    padding: 25px;
    background: #f8f9fa;
  }
  
  /* Accordion Updates Link */
  .card-header[role="tab"]:not(.card-header) {
    background: linear-gradient(135deg, #0275d8 0%, #0056b3 100%);
  }
  
  /* Response Div */
  #wacResponseEN,
  #wacResponseFR {
    border-radius: 8px;
    font-weight: 500;
  }
  
  /* Table Styles */
  .table {
    border-radius: 8px;
    overflow: hidden;
  }
  
  .table thead {
    background: linear-gradient(135deg, #0275d8 0%, #0056b3 100%);
    color: white;
  }
  
  .table thead th {
    border: none;
    font-weight: 600;
  }
  
  .table tbody tr {
    transition: background 0.3s ease;
  }
  
  .table tbody tr:hover {
    background: #f8f9fa;
  }
  
  /* Custom Scrollbar for Modal */
  .modal-body::-webkit-scrollbar {
    width: 8px;
  }
  
  .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .modal-body::-webkit-scrollbar-thumb {
    background: #0275d8;
    border-radius: 10px;
  }
  
  .modal-body::-webkit-scrollbar-thumb:hover {
    background: #025aa5;
  }
  
  
  /* Responsive */
  @media (max-width: 768px) {
    .container {
      padding: 10px;
    }
  
    .headTop {
      padding: 15px !important;
      margin-bottom: 20px;
      border-radius: 10px;
    }
  
    .headTop img {
      margin-bottom: 10px;
    }
  
    .btn-group {
      width: 100%;
      display: flex;
    }
  
    .btn-group .btn {
      flex: 1;
    }
  
    /* Header Links - Stack on mobile */
    .header {
      margin-bottom: 15px;
    }
  
    .flex-center {
      padding: 18px 10px;
      margin-bottom: 15px;
      border-radius: 10px;
    }
  
    .flex-center img {
      height: 40px;
      width: auto;
      margin-bottom: 8px;
    }
  
    .flex-center p,
    .flex-center a {
      font-size: 12px;
    }
  
  
    /* Modal Responsive */
    .modal-dialog {
      max-height: 95vh;
      margin: 2.5vh 10px;
      width: calc(100% - 20px);
    }
  
    .modal-content {
      max-height: 95vh;
      border-radius: 12px;
    }
  
    .modal-header {
      padding: 15px 20px;
      border-radius: 12px 12px 0 0;
    }
  
    .modal-title {
      font-size: 20px;
    }
  
    .modal-body {
      padding: 15px;
      max-height: calc(95vh - 120px);
    }
  
    .modal-footer {
      padding: 15px;
      flex-direction: column;
    }
  
    .modal-footer .btn {
      width: 100%;
      margin-bottom: 10px;
    }
  
    .modal-footer .btn:last-child {
      margin-bottom: 0;
    }
  
    /* Form Responsive */
    .form-control {
      padding: 10px 12px;
      font-size: 16px;
      /* Prevents zoom on iOS */
    }
  
    .form-label {
      font-size: 14px;
      margin-bottom: 6px;
    }
  
    .btn-primary {
      padding: 12px 20px;
      font-size: 16px;
      width: 100%;
    }
  
    /* Form Rows - Stack columns on mobile */
    .row {
      margin-left: -8px;
      margin-right: -8px;
    }
  
    .row > [class*="col-"] {
      padding-left: 8px;
      padding-right: 8px;
    }
  
    /* Ensure all form columns stack on mobile */
    .col-md-6,
    .col-md-4,
    .col-md-12 {
      width: 100%;
      margin-bottom: 15px;
    }
  
    .mb-3,
    .mb-6,
    .mb-12 {
      margin-bottom: 15px !important;
    }
  
    /* Card Responsive */
    .card {
      margin-bottom: 15px;
      border-radius: 10px;
    }
  
    .card-header {
      padding: 15px 20px;
      border-radius: 10px 10px 0 0 !important;
    }
  
    .card-header h5 {
      font-size: 16px;
    }
  
    .card-block-custom {
      padding: 15px;
    }
  
    /* Table Responsive */
    .table {
      font-size: 14px;
    }
  
    .table thead th {
      padding: 10px 8px;
      font-size: 13px;
    }
  
    .table tbody td {
      padding: 10px 8px;
    }
  
    /* Text Responsive */
    h6.text-secondary {
      font-size: 14px;
      margin-bottom: 15px;
    }
  
    .text-secondary.small {
      font-size: 12px;
    }
  }
  
  /* Extra Small Devices */
  @media (max-width: 576px) {
    .container {
      padding: 8px;
    }
  
    .headTop {
      padding: 12px !important;
    }
  
  
    .modal-dialog {
      margin: 1vh 5px;
      width: calc(100% - 10px);
    }
  
    .modal-header {
      padding: 12px 15px;
    }
  
    .modal-title {
      font-size: 18px;
    }
  
    .modal-body {
      padding: 12px;
    }
  
    .modal-footer {
      padding: 12px;
    }
  
    .flex-center {
      padding: 15px 8px;
    }
  
    .flex-center img {
      height: 35px;
    }
  
    .flex-center p,
    .flex-center a {
      font-size: 11px;
    }
  }
  
  /* Animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
  
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .card {
    animation: fadeIn 0.5s ease-out;
  }
  
  /* Text Secondary */
  .text-secondary {
    color: #6c757d !important;
    font-weight: 500;
  }
  
  h6.text-secondary {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
  }
  
  /* Popup Modal Styles */
  .popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 10000;
  }
  
  .popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 350px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: all 0.3s ease-out;
    z-index: 10001;
  }
  
  .popup-content.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  
  .popup-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
  }
  
  .popup-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
  }
  
  .popup-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
  }
  
  .popup-close:hover {
    background: #e9ecef;
    color: #333;
  }
  
  .popup-body {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
  }
  
  .popup-footer {
    padding: 15px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  /* Reduce spacing between form fields */
  .row.g-3.mb-3 {
    margin-bottom: 8px !important;
  }
  
  .row.g-3.mb-4 {
    margin-bottom: 8px !important;
  }
  
  /* WAC Important Notice Hover Effect */
  .wac-important-notice {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  .wac-important-notice:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  }
  
  /* Hide number input spinner */
  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
  }
  
  input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
  }
  