/* login.scss */
/* General Styles */
.container {
  max-width: 1200px; /* Set max width for larger screens */
  margin: 0 auto; /* Center container */
  padding: 20px; /* Add padding around the container */
}

.card {
  background-color: #fff; /* White background for card */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.card-header {
  padding: 20px; /* Padding inside the header */
  display: flex; /* Flex display for alignment */
  align-items: center; /* Center items vertically */
  justify-content: space-between; /* Space between title and logo */
  background-color: #193a62 !important;
}

.card-title {
  font-size: 24px; /* Increase title font size */
  font-weight: bold;
}

.card-logo {
  max-height: 50px; /* Limit logo height */
}

/* Form Styles */
.form-group {
  margin-bottom: 20px; /* Space between form fields */
}

.text-input {
  width: 100%; /* Full width */
  padding: 10px; /* Padding for input */
  border: 1px solid #ccc; /* Border color */
  border-radius: 4px; /* Rounded input edges */
}

.text-error {
  border-color: red; /* Red border for error state */
}

.label-error {
  color: red; /* Red text for error labels */
}

.error-msg {
  color: red; /* Error message color */
  font-size: 12px; /* Smaller font for error messages */
}

/* Button Styles */
.button {
  padding: 10px 20px; /* Padding inside button */
  border: none; /* Remove border */
  border-radius: 4px; /* Rounded button edges */
  cursor: pointer; /* Change cursor to pointer */
}

.btn-primary {
  background-color: #007bff; /* Primary button color */
  color: #fff; /* Button text color */
}

.button__container {
  margin-top: 20px; /* Space above buttons */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .card {
    padding: 15px; /* Reduce card padding on smaller screens */
  }
  .card-title {
    font-size: 20px; /* Smaller title on mobile */
  }
}
.note-msg {
  color: red;
}

.form-helper-text {
  margin-top: 10px;
  font-size: 12px;
  color: red;
  font-weight: 500;
}

.login-btn {
  background-color: #193a62;
}

/* Layout */
.dashboard-container {
  display: flex;
  flex-direction: row;
}

/* Navbar */
.navbar {
  padding: 1rem;
  z-index: 101;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background-color: #343a40;
  padding-top: 1rem;
  z-index: 100;
  overflow-y: auto;
}

.sidebar nav .nav-link {
  color: #fff;
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

.sidebar nav .nav-link:hover,
.sidebar nav .nav-link.active {
  background-color: #495057;
}

/* Main Content */
.main-content {
  margin-left: 240px;
  padding: 2rem;
  flex: 1;
}

.content-area {
  margin-top: 50px;
}

/* Widgets */
.card {
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border: none;
}

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.display-6 {
  font-size: 2rem;
  font-weight: 600;
  color: #495057;
}

/* Logout */
.logout {
  color: white;
  cursor: pointer;
}

/* Popup */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-actions button {
  margin: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    position: static;
    height: auto;
    width: 100%;
  }
  .main-content {
    margin-left: 0;
  }
  .navbar .navbar-toggler {
    margin-right: 1rem;
  }
  .navbar-brand img {
    max-height: 24px;
  }
}
.accordion-button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
}

.accordion-content {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 20px;
  background-color: #f9f9f9;
  margin-top: 10px;
}

.upload-confirm-button {
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
}

.popup-message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.popup-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.popup-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Layout */
.dashboard-container {
  display: flex;
  flex-direction: row;
  height: 100vh; /* Ensures the container takes full viewport height */
}

/* Sidebar */
.sidebar-space {
  width: 240px;
}

.main-content {
  margin-left: 240px;
  padding: 2rem;
  flex: 1;
  overflow-y: auto; /* Ensures content is scrollable if it overflows */
}

.content-area {
  margin-top: 50px;
}

/* Widgets */
.card {
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border: none;
  height: 100%; /* Ensures the card takes up all available height in the column */
}

.card-body {
  padding: 2rem; /* Adds padding for better spacing inside cards */
  text-align: center; /* Centers text inside the card */
}

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.display-6 {
  font-size: 2rem;
  font-weight: 600;
  color: #495057;
}

/* Responsive Widgets */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Adds space between the widgets */
}

.col-md-6,
.col-lg-3 {
  flex: 1 1 calc(33.33% - 20px); /* Makes sure widgets are flexible but spaced */
  min-width: 250px; /* Prevents them from getting too small */
}

/* Full Page Widgets */
.main-content .row {
  margin-bottom: 2rem;
}

.card {
  height: 250px; /* Ensures all widgets have the same height */
}

.card-title {
  font-size: 1.1rem;
}

.display-6 {
  font-size: 2.2rem;
  color: #007bff; /* Adds color to the number to make it stand out */
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding: 1rem; /* Reduces padding on smaller screens */
  }
  .col-md-6, .col-lg-3 {
    flex: 1 1 100%; /* Stacks the widgets vertically on smaller screens */
  }
  .card-body {
    padding: 1rem; /* Reduces padding inside the card */
  }
  .display-6 {
    font-size: 1.8rem; /* Adjusts font size for better readability */
  }
}
/* Styling for the Company container */
.company-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure it takes up the full height of the screen */
  width: -webkit-fill-available;
}

.main-content {
  flex: 1; /* Allow this to fill the remaining space */
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.content-area {
  flex: 1;
}

.company-list-table {
  width: 100%;
  margin-top: 2rem;
  /* Ensure the table spans the full width of the container */
  /* Popup Styles */
}
.company-list-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.company-list-table table th, .company-list-table table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
  word-wrap: break-word; /* Ensure text fits within cells */
}
.company-list-table table th {
  background-color: #f4f4f4;
  font-weight: bold;
}
.company-list-table table td img {
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}
.company-list-table table .btn-action {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.company-list-table table .btn-action:hover {
  background-color: #0056b3;
}
.company-list-table table tr.no-companies {
  text-align: center;
}
.company-list-table table tr.no-companies td {
  background-color: #f9f9f9;
  font-style: italic;
}
.company-list-table .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}
.company-list-table .pagination button {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  margin: 0 5px;
  cursor: pointer;
}
.company-list-table .pagination button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.company-list-table .pagination button:hover:not(:disabled) {
  background-color: #0056b3;
}
.company-list-table .pagination span {
  margin: 0 1rem;
  font-size: 1rem;
}
.company-list-table .popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.company-list-table .popup .popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.company-list-table .popup .popup-content h3 {
  margin-bottom: 1rem;
}
.company-list-table .popup .popup-content input[type=file] {
  margin-bottom: 1rem;
}
.company-list-table .popup .popup-content .popup-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.company-list-table .popup .popup-content .popup-actions button {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
}
.company-list-table .popup .popup-content .popup-actions button:hover {
  background-color: #0056b3;
}
.company-list-table .popup .popup-content .popup-actions button.cancel {
  background-color: #ccc;
}

.quote-list-container {
  padding: 20px;
  font-family: Arial, sans-serif;
}

.filter {
  margin-bottom: 20px;
}

.filter-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.styled-table th, .styled-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

.styled-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.styled-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.styled-table tr:hover {
  background-color: #f1f1f1;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.btn-action {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #0073e6;
}

.dots {
  font-weight: bold;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 100px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu button {
  width: 100%;
  padding: 10px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.pagination-btn {
  padding: 8px 16px;
  font-size: 14px;
  background-color: #0073e6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.pagination-btn:disabled {
  background-color: #ddd;
  cursor: not-allowed;
}

.user-list-container {
  padding: 20px;
  font-family: Arial, sans-serif;
}

.filter {
  margin-bottom: 20px;
}

.filter-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.styled-table th, .styled-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

.styled-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.styled-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.styled-table tr:hover {
  background-color: #f1f1f1;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.btn-action {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #0073e6;
}

.dots {
  font-weight: bold;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 100px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu button {
  width: 100%;
  padding: 10px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.pagination-btn {
  padding: 8px 16px;
  font-size: 14px;
  background-color: #0073e6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.pagination-btn:disabled {
  background-color: #ddd;
  cursor: not-allowed;
}
