/* /common/menus/guest_menu.css */

:root { font-size: 16px; }

.mc-menu-ngo,
.mc-menu-guest,
.mc-menu-company,
.mc-menu-individual {
    background-color: #184e77;
    padding: 15px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    font-family: 'Arial', sans-serif;
}

.page-container {
    padding-top: 90px;
}

.mc-menu-wrapper {
    width: 100%;
}

.mc-menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.mc-menu-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    position: static;
}

.mc-menu-brand img {
    max-height: 50px;
}

.mc-menu-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.mc-menu-toggle {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
}

.mc-menu-toggle svg path {
    stroke: #ffffff;
}

.mc-menu-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.mc-menu-item:last-child {
    margin-right: 0;
}

.mc-lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.mc-menu-link {
    color: #ffffff;
    padding: 10px 15px;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    outline: none;
}

.mc-menu-link:hover {
    color: #00bfff;
    background-color: rgba(255, 255, 255, 0.1);
}

.mc-lang-toggle {
    background: none;
    border: none;
    color: #ffffff;
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    text-decoration: none;
    outline: none;
}

.mc-lang-toggle .fa-globe {
    margin-right: 5px;
}

.mc-lang-toggle:hover {
    color: #00bfff;
    background-color: rgba(255, 255, 255, 0.1);
}

.mc-lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #184e77;
    list-style: none;
    margin: 0;
    padding: 5px 0;
    z-index: 1000;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    max-width: 100%;
    max-height: 300px;
    overflow-y: scroll;
}

.mc-lang-menu::-webkit-scrollbar {
    width: 8px;
}

.mc-lang-menu::-webkit-scrollbar-track {
    background: #184e77;
    border-radius: 4px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9900;
    justify-content: center;
    align-items: center;
  }
  
  .overlay .spinner {
    width: 3rem;
    height: 3rem;
    border-width: 6px;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Loading Overlay */
  .loading-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9990;
    justify-content: center;
    align-items: center;
  }
  
  .loading-text {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
  }

.mc-lang-menu::-webkit-scrollbar-thumb {
    background: #00bfff;
    border-radius: 4px;
}

.mc-lang-menu::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}

.mc-lang-menu.active {
    display: block;
}

.mc-lang-item {
    margin: 0;
}

.mc-lang-item form {
    margin: 0;
}

.mc-lang-link {
    color: #ffffff;
    padding: 8px 15px;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: block;
    outline: none;
}

.mc-lang-link:hover {
    color: #00bfff;
    background-color: rgba(255, 255, 255, 0.1);
}

.mc-lang-more, .mc-lang-less {
    display: block;
}

.mc-lang-secondary {
    display: none;
}

.mc-menu-collapsed .mc-menu-list.active {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: auto;
    min-width: 200px;
    background-color: #184e77;
    padding: 15px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.mc-menu-collapsed .mc-menu-item {
    text-align: right;
    margin: 0;
    padding-right: 15px;
}

.mc-menu-collapsed .mc-menu-link {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-end;
}

.mc-menu-collapsed .mc-lang-switcher {
    text-align: right;
    padding-right: 15px;
}

.mc-menu-collapsed .mc-lang-menu {
    right: 15px;
    left: auto;
}

/* Image Preview Modal Styles */
.image-preview-modal {
    position: fixed; /* Change from absolute to fixed */
    top: 0; /* Change from 80px to 0 */
    left: 0;
    width: 100%;
    height: 100vh; /* Change from calc(100% - 80px) to 100vh */
    background: rgba(0, 0, 0, 0.8);
    z-index: 9900;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.image-preview-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: pointer;
}

/* Message Modal Styles */
.message-modal {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.8);
    z-index: 9900;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.message-modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
    text-align: center;
}

.message-modal-buttons {
    margin-top: 10px;
}

.message-modal-buttons button {
    margin: 0 5px;
}

/* Confirmation Modal Styles */
.confirm-modal {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.8);
    z-index: 9900;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.confirm-modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
    text-align: center;
}

.confirm-modal-buttons {
    margin-top: 10px;
}

.confirm-modal-buttons button {
    margin: 0 5px;
}

/* Buttons */
.btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: #2563eb;
  }
  
  .btn-primary:disabled {
    background-color: #a3bffa;
    cursor: not-allowed;
  }
  
  .btn-link {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: underline;
  }
  
  .btn-link:hover {
    color: #2563eb;
  }
  
  .btn-close-white {
    filter: invert(1);
  }
  
  .btn-secondary {
    background-color: #6b7280;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  .btn-secondary:hover {
    background-color: #4b5563;
  }
  
  .btn-secondary:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
  }
  
  /* Alerts */
  .alert-danger,
  .alert-success {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
  }
  
  .alert-success {
    background-color: #d1fae5;
    color: #065f46;
  }
  
  /* Spinner */
  .spinner {
    display: none;
    border: 4px solid #ffffff;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    animation: spin 1s linear infinite;
  }