:root {
  --primary-color: #2780e3;
  --bg-dark: #373a3c;
}

body {
  background-color: #f8f9fa;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s;
}

/* Social Provider Colors */
.btn-facebook {
  background-color: #3b5998 !important;
  border-color: #3b5998 !important;
  color: #fff !important;
}
.btn-facebook:hover {
  background-color: #2d4373 !important;
  filter: brightness(90%);
}

.btn-google,
a.google-btn {
  background-color: #fff !important;
  border: 1px solid #2780e3 !important;
  color: #2780e3 !important;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  padding: 0.5rem 1rem;
}
.btn-google:hover,
a.google-btn:hover {
  background-color: #2780e3 !important;
  color: #fff !important;
}

.btn-outline-facebook {
  color: #3b5998 !important;
  border-color: #3b5998 !important;
}
.btn-outline-facebook:hover {
  background-color: #3b5998 !important;
  color: #fff !important;
}

.btn-outline-google {
  color: #db4437 !important;
  border-color: #db4437 !important;
}
.btn-outline-google:hover {
  background-color: #db4437 !important;
  color: #fff !important;
}
.wide-container {
  width: 100%;
  padding-right: 2rem;
  padding-left: 2rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 992px) {
  .wide-container {
    max-width: 98%;
  }
}

@media (min-width: 1400px) {
  .wide-container {
    max-width: 92%; /* Don't let it get too wide on ultrawide screens */
  }
}

@media (max-width: 576px) {
  .wide-container {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  transition: all 0.2s ease-in-out;
}

.card-hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.table {
  background-color: #fff;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 0.9rem;
}

.table thead th {
  background-color: #fcfcfc;
  border-bottom: 1px solid #eee !important;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: #888;
  padding: 0.75rem 1rem;
  font-weight: 700;
  vertical-align: middle;
}

.table thead th:last-child {
  text-align: right;
}

.table tbody tr {
  background-color: #fff;
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background-color: #f8faff !important;
  transform: none;
  box-shadow: none;
}

.table td {
  border: none;
  border-bottom: 1px solid #f1f1f1;
  padding: 0.6rem 1rem;
  vertical-align: middle;
  color: #444;
}

.table td:first-child {
  border-left: none;
  border-radius: 0;
  font-weight: 600;
  color: var(--primary-color);
}

.table td:last-child {
  border-right: none;
  border-radius: 0;
  text-align: right;
}

/* Action Icons */
.table td a {
  display: inline-block;
  padding: 0.25rem;
  line-height: 1;
}

.table td a i {
  color: #ccc;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.table td a:hover i.fa-pen {
  color: var(--primary-color);
}
.table td a:hover i.fa-trash-can {
  color: #e74c3c;
}
.table td a:hover i.fa-plus-circle {
  color: var(--primary-color);
}

/* Responsive Tables - Card Style */
@media (max-width: 767.98px) {
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table {
    border-spacing: 0;
  }

  .table thead {
    display: none;
  }

  .table tbody tr {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
  }

  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    border: none;
    border-bottom: 1px solid #f9f9f9;
    text-align: right;
  }

  .table td:first-child {
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    justify-content: center;
    border-radius: 0;
  }

  .table td:last-child {
    border-bottom: none;
    background-color: #fff;
    justify-content: center;
    padding: 1rem;
  }

  .table td::before {
    content: attr(data-label);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    color: #999;
    margin-right: 1rem;
    text-align: left;
  }

  /* Hide label for the first and last column in mobile card view */
  .table td:first-child::before,
  .table td:last-child::before {
    display: none;
  }
}

.search-form .form-control {
  border-radius: 2rem 0 0 2rem !important;
  width: 250px;
  transition: width 0.3s;
}

.search-form .form-control:focus {
  width: 350px;
  background-color: #2b2e30 !important;
  box-shadow: none;
}

.search-form .btn {
  border-radius: 0 2rem 2rem 0 !important;
  padding-left: 1rem;
  padding-right: 1.25rem;
}

.btn {
  border-radius: 2rem !important;
  font-weight: 500;
  padding: 0.375rem 1.5rem;
  transition: all 0.2s;
}

.btn-primary {
  box-shadow: 0 2px 4px rgba(39, 128, 227, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(39, 128, 227, 0.3);
}

/* Pagination styling */
.pagination {
  margin-top: 1rem;
}

.page-link {
  border: none;
  color: var(--bg-dark);
  margin: 0 2px;
  border-radius: 0.25rem !important;
}

.page-item.active .page-link {
  background-color: var(--primary-color);
}

/* Alert styling */
.alert {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Utilities */
.opacity-50 {
  opacity: 0.5;
}
.opacity-25 {
  opacity: 0.25;
}
