/* Custom CSS for Tours Reservation System */

/* Override some AdminLTE styles */
.content-wrapper {
  background-color: #f4f6f9;
}

.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* Global Styles */
:root {
  --primary-color: #4e73df;
  --primary-dark: #2e59d9;
  --secondary-color: #1cc88a;
  --danger-color: #e74a3b;
  --warning-color: #f6c23e;
  --info-color: #36b9cc;
  --dark-color: #5a5c69;
  --light-color: #f8f9fc;
  --card-border-radius: 0.35rem;
  --transition-speed: 0.3s;
}

body {
  font-family: "Nunito", sans-serif;
  background-color: #f8f9fc;
  color: #5a5c69;
}

/* Navbar Styling */
.navbar {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: white !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: all var(--transition-speed);
}

.navbar-nav .nav-link:hover {
  color: white !important;
  transform: translateY(-2px);
}

.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  border-radius: var(--card-border-radius);
}

.navbar-nav .dropdown-item {
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all var(--transition-speed);
}

.navbar-nav .dropdown-item:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

/* Card Styling */
/*.card {
  border: none;
  border-radius: var(--card-border-radius);
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
  transition: all var(--transition-speed);
  margin-bottom: 1.5rem;
}*/

/*.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.15);
}*/

/* Custom card styles */
.card-header {
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  padding: 0.75rem 1.25rem;
}

.card-header .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/*.card-header {
  background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  color: white;
  font-weight: 700;
  border: none;
  padding: 1rem 1.25rem;
  border-top-left-radius: var(--card-border-radius) !important;
  border-top-right-radius: var(--card-border-radius) !important;
}*/

.card-body {
  padding: 1.5rem;
}

/* Button Styling */
.btn {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: all var(--transition-speed);
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-success {
  background: linear-gradient(to right, var(--secondary-color), #13a673);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(to right, #13a673, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-danger {
  background: linear-gradient(to right, var(--danger-color), #d52a1a);
  border: none;
}

.btn-danger:hover {
  background: linear-gradient(to right, #d52a1a, var(--danger-color));
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Custom button styles */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.765625rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

.btn-group-sm > .btn,
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.76563rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

/* Table Styling */
.table {
  border-radius: var(--card-border-radius);
  overflow: hidden;
}

/*.table thead th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border-bottom: none;
  padding: 1rem;
}*/

/* Custom table styles */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table thead th {
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  vertical-align: bottom;
}

.table thead th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  border-bottom: none;
  padding: 1rem;
}

.table tbody tr {
  transition: all var(--transition-speed);
}

.table tbody tr:hover {
  background-color: rgba(78, 115, 223, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(78, 115, 223, 0.03);
}

/* Form Styling */
.form-control {
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d3e2;
  transition: all var(--transition-speed);
}

.form-control:focus {
  border-color: #3490dc;
  box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
}

/* Badge Styling */
/*.badge {
  font-weight: 600;
  padding: 0.35em 0.65em;
  border-radius: 0.25rem;
}*/

/* Custom badge styles */
.badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow
    0.15s ease-in-out;
}

.badge {
  font-weight: 600;
  padding: 0.35em 0.65em;
  border-radius: 0.25rem;
}

.badge-success {
  background-color: var(--secondary-color);
}

.badge-danger {
  background-color: var(--danger-color);
}

.badge-warning {
  background-color: var(--warning-color);
  color: #212529;
}

.badge-info {
  background-color: var(--info-color);
}

/* Custom info-box styles */
.info-box {
  transition: all 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Custom small-box styles */
.small-box {
  transition: all 0.3s ease;
}

.small-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.15);
}

.small-box > .small-box-footer {
  background-color: rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 3px 0;
  position: relative;
  text-align: center;
  text-decoration: none;
  z-index: 10;
}

/* Dashboard Cards */
.dashboard-card {
  border-left: 0.25rem solid var(--primary-color);
  border-radius: var(--card-border-radius);
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
  transition: all var(--transition-speed);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.15);
}

.dashboard-card.card-primary {
  border-left-color: var(--primary-color);
}

.dashboard-card.card-success {
  border-left-color: var(--secondary-color);
}

.dashboard-card.card-danger {
  border-left-color: var(--danger-color);
}

.dashboard-card.card-warning {
  border-left-color: var(--warning-color);
}

.dashboard-card.card-info {
  border-left-color: var(--info-color);
}

.dashboard-card .card-body {
  padding: 1.25rem;
}

.dashboard-card .card-title {
  text-transform: uppercase;
  color: var(--dark-color);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dashboard-card .card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
}

/* Tour Cards */
/*.tour-card {
  border: none;
  border-radius: var(--card-border-radius);
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
  transition: all var(--transition-speed);
  margin-bottom: 1.5rem;
  overflow: hidden;
}*/

/* Tour card styles */
.tour-card {
  border: none;
  border-radius: 0.25rem;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

/*.tour-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.15);
}*/

.tour-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.15);
}

/*.tour-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: all var(--transition-speed);
}*/

.tour-card img {
  transition: all 0.3s ease;
}

/*.tour-card:hover .card-img-top {
  transform: scale(1.05);
}*/

.tour-card:hover img {
  transform: scale(1.05);
}

.tour-card .card-body {
  padding: 1.5rem;
}

.tour-card .card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tour-card .card-text {
  color: var(--dark-color);
}

.tour-card .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

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

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

.pagination .page-link {
  color: var(--primary-color);
  padding: 0.5rem 0.75rem;
  transition: all var(--transition-speed);
}

.pagination .page-link:hover {
  background-color: var(--light-color);
  transform: translateY(-2px);
}
/* Fix pagination arrow sizes */
.pagination .page-link svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  font-size: 14px;
  padding: 0.5rem 0.75rem;
}

/* Replace SVG arrows with text */
.pagination .page-item:first-child .page-link svg,
.pagination .page-item:last-child .page-link svg {
  display: none;
}

.pagination .page-item:first-child .page-link::before {
  content: "‹";
  font-size: 18px;
  line-height: 1;
}

.pagination .page-item:last-child .page-link::before {
  content: "›";
  font-size: 18px;
  line-height: 1;
}

/* Footer */
.footer {
  background-color: white;
  padding: 1.5rem 0;
  box-shadow: 0 -0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
  margin-top: 3rem;
}

.footer p {
  margin-bottom: 0;
  color: var(--dark-color);
}

/* Custom list group styles */
.list-group-item {
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  margin-bottom: -1px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Custom sidebar styles */
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
  background-color: #007bff;
  color: #fff;
}

/* Animations */
/*.fade-in {
  animation: fadeIn 0.5s ease-out;
}*/

/* Custom animations */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-header {
    padding: 0.75rem 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .btn {
    padding: 0.375rem 0.75rem;
  }
}

/* Custom responsive styles */
@media (max-width: 767.98px) {
  .small-box {
    text-align: center;
  }

  .small-box .icon {
    display: none;
  }

  .small-box p {
    font-size: 12px;
  }
}

/* Custom styles for Laravel Tours */

/* Override primary color */
.btn-primary,
.bg-primary,
.badge-primary,
.alert-primary,
.bg-gradient-primary {
  background-color: #3490dc !important;
  border-color: #3490dc !important;
}

.text-primary {
  color: #3490dc !important;
}

/* Override success color */
.btn-success,
.bg-success,
.badge-success,
.alert-success,
.bg-gradient-success {
  background-color: #38c172 !important;
  border-color: #38c172 !important;
}

.text-success {
  color: #38c172 !important;
}

/* Override info color */
.btn-info,
.bg-info,
.badge-info,
.alert-info,
.bg-gradient-info {
  background-color: #6cb2eb !important;
  border-color: #6cb2eb !important;
}

.text-info {
  color: #6cb2eb !important;
}

/* Override warning color */
.btn-warning,
.bg-warning,
.badge-warning,
.alert-warning,
.bg-gradient-warning {
  background-color: #ffed4a !important;
  border-color: #ffed4a !important;
}

.text-warning {
  color: #ffed4a !important;
}

/* Override danger color */
.btn-danger,
.bg-danger,
.badge-danger,
.alert-danger,
.bg-gradient-danger {
  background-color: #e3342f !important;
  border-color: #e3342f !important;
}

.text-danger {
  color: #e3342f !important;
}

/* Custom table styles */
.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Custom sidebar styles */
.sidebar-dark-primary {
  background-color: #343a40;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
  background-color: #3490dc;
}

/* Custom navbar styles */
.navbar-light {
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
}

/* Custom alert styles */
.alert {
  border-radius: 0.25rem;
}

/* Custom pagination styles */
.pagination {
  margin-bottom: 0;
}

.page-item.active .page-link {
  background-color: #3490dc;
  border-color: #3490dc;
}

.page-link {
  color: #3490dc;
}

.page-link:hover {
  color: #1d68a7;
}

/* Custom breadcrumb styles */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0;
}

/* Custom animations */
.nav-link,
.btn,
.info-box {
  transition: all 0.3s ease;
}

/* Custom responsive styles */
@media (max-width: 767.98px) {
  .content-header h1 {
    font-size: 1.5rem;
  }
}
