@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

a {
	text-decoration: none;
}

li {
	list-style: none;
}

:root {
	--poppins: 'Poppins', sans-serif;

	--light: #F9F9F9;
	--blue: #3C91E6;
	--light-blue: #CFE8FF;
	--grey: #eee;
	--dark-grey: #AAAAAA;
	--dark: #342E37;
	--red: #DB504A;
	--yellow: #FFCE26;
	--light-yellow: #FFF2C6;
	--orange: #FD7238;
	--light-orange: #FFE0D3;
}

html {
	overflow-x: hidden;
}

body.dark {
	--light: #0C0C1E;
	--grey: #060714;
	--dark: #FBFBFB;
}

body {
	background: var(--grey);
	overflow-x: hidden;
}


/* SIDEBAR */
#sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	height: 100%;
	background: var(--light);
	z-index: 2000;
	font-family: var(--poppins);
	transition: .3s ease;
	overflow-x: hidden;
	scrollbar-width: none;
}
#sidebar::--webkit-scrollbar {
	display: none;
}
#sidebar.hide {
	width: 60px;
}
#sidebar .brand {
	font-size: 24px;
	font-weight: 700;
	height: 56px;
	display: flex;
	align-items: center;
	color: #9bb7f3;
	position: sticky;
	top: 0;
	left: 0;
	background: var(--light);
	z-index: 500;
	padding-bottom: 20px;
	box-sizing: content-box;
}
#sidebar .brand .bx {
	min-width: 60px;
	display: flex;
	justify-content: center;
}
#sidebar .side-menu {
	width: 100%;
	margin-top: 48px;
}
#sidebar .side-menu li {
	height: 48px;
	background: transparent;
	margin-left: 6px;
	border-radius: 48px 0 0 48px;
	padding: 4px;
}
#sidebar .side-menu li.active {
	background: var(--grey);
	position: relative;
}
#sidebar .side-menu li.active::before {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	top: -40px;
	right: 0;
	box-shadow: 20px 20px 0 var(--grey);
	z-index: -1;
}
#sidebar .side-menu li.active::after {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	bottom: -40px;
	right: 0;
	box-shadow: 20px -20px 0 var(--grey);
	z-index: -1;
}
#sidebar .side-menu li a {
	width: 100%;
	height: 100%;
	background: var(--light);
	display: flex;
	align-items: center;
	border-radius: 48px;
	font-size: 16px;
	color: var(--dark);
	white-space: nowrap;
	overflow-x: hidden;
}
#sidebar .side-menu.top li.active a {
	color: var(--);
}
#sidebar.hide .side-menu li a {
	width: calc(48px - (4px * 2));
	transition: width .3s ease;
}
#sidebar .side-menu li a.logout {
	color: var(--red);
}
#sidebar .side-menu.top li a:hover {
	color: #9bb7f3;
}
#sidebar .side-menu li a .bx {
	min-width: calc(60px  - ((4px + 6px) * 2));
	display: flex;
	justify-content: center;
}
/* SIDEBAR */





/* CONTENT */
#content {
	position: relative;
	width: calc(100% - 280px);
	left: 280px;
	transition: .3s ease;
}
#sidebar.hide ~ #content {
	width: calc(100% - 60px);
	left: 60px;
}




/* NAVBAR */
#content nav {
	height: 56px;
	background: var(--light);
	padding: 0 24px;
	display: flex;
	align-items: center;
	grid-gap: 24px;
	font-family: var(--lato);
	position: sticky;
	top: 0;
	left: 0;
	z-index: 1000;
}
#content nav::before {
	content: '';
	position: absolute;
	width: 40px;
	height: 40px;
	bottom: -40px;
	left: 0;
	border-radius: 50%;
	box-shadow: -20px -20px 0 var(--light);
}
#content nav a {
	color: var(--dark);
}
#content nav .bx.bx-menu {
	cursor: pointer;
	color: var(--dark);
}
#content nav .nav-link {
	font-size: 16px;
	transition: .3s ease;
}
#content nav .nav-link:hover {
	color: var(--blue);
}
#content nav form {
	max-width: 400px;
	width: 100%;
	margin-right: auto;
}
#content nav form .form-input {
	display: flex;
	align-items: center;
	height: 36px;
}
#content nav form .form-input input {
	flex-grow: 1;
	padding: 0 16px;
	height: 100%;
	border: none;
	background: var(--grey);
	border-radius: 36px 0 0 36px;
	outline: none;
	width: 100%;
	color: var(--dark);
}
#content nav form .form-input button {
	width: 36px;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--blue);
	color: var(--light);
	font-size: 18px;
	border: none;
	outline: none;
	border-radius: 0 36px 36px 0;
	cursor: pointer;
}
#content nav .notification {
	font-size: 20px;
	position: relative;
}
#content nav .notification .num {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--light);
	background: var(--red);
	color: var(--light);
	font-weight: 700;
	font-size: 12px;
	display: flex;
	justify-content: center;
	align-items: center;
}
#content nav .profile img {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 50%;
}
#content nav .switch-mode {
	display: block;
	min-width: 50px;
	height: 25px;
	border-radius: 25px;
	background: var(--grey);
	cursor: pointer;
	position: relative;
}
#content nav .switch-mode::before {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	bottom: 2px;
	width: calc(25px - 4px);
	background: var(--blue);
	border-radius: 50%;
	transition: all .3s ease;
}
#content nav #switch-mode:checked + .switch-mode::before {
	left: calc(100% - (25px - 4px) - 2px);
}
/* NAVBAR */





/* MAIN */
#content main {
	width: 100%;
	padding: 36px 24px;
	font-family: var(--poppins);
	max-height: calc(100vh - 56px);
	overflow-y: auto;
}
#content main .head-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	grid-gap: 16px;
	flex-wrap: wrap;
}
#content main .head-title .left h1 {
	font-size: 36px;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--dark);
}
#content main .head-title .left .breadcrumb {
	display: flex;
	align-items: center;
	grid-gap: 16px;
}
#content main .head-title .left .breadcrumb li {
	color: var(--dark);
}
#content main .head-title .left .breadcrumb li a {
	color: var(--dark-grey);
	pointer-events: none;
}
#content main .head-title .left .breadcrumb li a.active {
	color: var(--blue);
	pointer-events: unset;
}
#content main .head-title .btn-download {
	height: 36px;
	padding: 0 16px;
	border-radius: 36px;
	background: var(--blue);
	color: var(--light);
	display: flex;
	justify-content: center;
	align-items: center;
	grid-gap: 10px;
	font-weight: 500;
}




#content main .box-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	grid-gap: 24px;
	margin-top: 36px;
}
#content main .box-info li {
	padding: 24px;
	background: var(--light);
	border-radius: 20px;
	display: flex;
	align-items: center;
	grid-gap: 24px;
}
#content main .box-info li .bx {
	width: 80px;
	height: 80px;
	border-radius: 10px;
	font-size: 36px;
	display: flex;
	justify-content: center;
	align-items: center;
}
#content main .box-info li:nth-child(1) .bx {
	background: #4841a2;
	color: white;
}
#content main .box-info li:nth-child(2) .bx {
	background: #4841a2;
	color: white;
}
#content main .box-info li:nth-child(3) .bx {
	background: #4841a2;
	color: white;
}
#content main .box-info li .text h3 {
	font-size: 24px;
	font-weight: 600;
	color: var(--dark);
}
#content main .box-info li .text p {
	color: var(--dark);	
}





#content main .table-data {
	display: flex;
	flex-wrap: wrap;
	grid-gap: 24px;
	margin-top: 24px;
	width: 100%;
	color: var(--dark);
}
#content main .table-data > div {
	border-radius: 20px;
	background: var(--light);
	padding: 24px;
	overflow-x: auto;
}
#content main .table-data .head {
	display: flex;
	align-items: center;
	grid-gap: 16px;
	margin-bottom: 24px;
}
#content main .table-data .head h3 {
	margin-right: auto;
	font-size: 24px;
	font-weight: 600;
}
#content main .table-data .head .bx {
	cursor: pointer;
}

#content main .table-data .order {
	flex-grow: 1;
	flex-basis: 500px;
}
#content main .table-data .order table {
	width: 100%;
	border-collapse: collapse;
}
#content main .table-data .order table th {
	padding-bottom: 12px;
	font-size: 13px;
	text-align: left;
	border-bottom: 1px solid var(--grey);
}
#content main .table-data .order table td {
	padding: 16px 0;
}
#content main .table-data .order table tr td:first-child {
	display: flex;
	align-items: center;
	grid-gap: 12px;
	padding-left: 6px;
}
#content main .table-data .order table td img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}
#content main .table-data .order table tbody tr:hover {
	background: var(--grey);
}
#content main .table-data .order table tr td .status {
	font-size: 10px;
	padding: 6px 16px;
	color: var(--light);
	border-radius: 20px;
	font-weight: 700;
}
#content main .table-data .order table tr td .status.completed {
	background: var(--blue);
}
#content main .table-data .order table tr td .status.process {
	background: var(--yellow);
}
#content main .table-data .order table tr td .status.pending {
	background: var(--orange);
}


#content main .table-data .todo {
	flex-grow: 1;
	flex-basis: 300px;
}
#content main .table-data .todo .todo-list {
	width: 100%;
}
#content main .table-data .todo .todo-list li {
	width: 100%;
	margin-bottom: 16px;
	background: var(--grey);
	border-radius: 10px;
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#content main .table-data .todo .todo-list li .bx {
	cursor: pointer;
}
#content main .table-data .todo .todo-list li.completed {
	border-left: 10px solid var(--blue);
}
#content main .table-data .todo .todo-list li.not-completed {
	border-left: 10px solid var(--orange);
}
#content main .table-data .todo .todo-list li:last-child {
	margin-bottom: 0;
}
/* MAIN */
/* CONTENT */


@media screen and (max-width: 768px) {
	#sidebar {
		width: 200px;
	}

	#content {
		width: calc(100% - 60px);
		left: 200px;
	}

	#content nav .nav-link {
		display: none;
	}
}






@media screen and (max-width: 576px) {
	#content nav form .form-input input {
		display: none;
	}

	#content nav form .form-input button {
		width: auto;
		height: auto;
		background: transparent;
		border-radius: none;
		color: var(--dark);
	}

	#content nav form.show .form-input input {
		display: block;
		width: 100%;
	}
	#content nav form.show .form-input button {
		width: 36px;
		height: 100%;
		border-radius: 0 36px 36px 0;
		color: var(--light);
		background: var(--red);
	}

	#content nav form.show ~ .notification,
	#content nav form.show ~ .profile {
		display: none;
	}

	#content main .box-info {
		grid-template-columns: 1fr;
	}

	#content main .table-data .head {
		min-width: 420px;
	}
	#content main .table-data .order table {
		min-width: 420px;
	}
	#content main .table-data .todo .todo-list {
		min-width: 420px;
	}
}

 .main-content {
        margin-left: auto;
        flex-grow: 1;
        padding: 20px;
        overflow-x: auto;
    }

    .table thead th {
        color: black;
    }

    .pagination .active .page-link {
        background-color: #FBA01D;
        color: white;
        border-color: #FBA01D;
    }

    .pagination .page-link {
        color: #0D3558;
    }

    .pagination .page-link:hover {
        background-color: #FBA01D;
        color: white;
    }

    .button-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .gradient-button {
        background: linear-gradient(135deg, #FFB703, #FB8500);
        border: none;
        border-radius: 8px;
        padding: 12px 24px;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gradient-button a {
        color: white;
        font-size: 16px;
        font-weight: bold;
        text-decoration: none;
    }

    .search-input {
        width: 100%;
        max-width: 200px;
        height: 40px;
        border-radius: 5px;
        border: 1px solid #ccc;
        padding: 5px 10px;
    }

    .d-flex {
        flex-wrap: wrap;
        gap: 10px;
    }

    .breadcrumb {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
        margin-bottom: 1rem;
    }

    .breadcrumb li {
        display: flex;
        align-items: center;
        color: #555;
    }

    @media (max-width: 1024px) {
        .main-content {
            padding: 10px;
        }

        .gradient-button {
            padding: 10px 18px;
        }
    }

    @media (max-width: 768px) {
        .d-flex {
            flex-direction: column;
            align-items: stretch;
        }

        .gradient-button {
            width: 100%;
            justify-content: center;
        }

        .search-input {
            width: 100%;
        }

        .table {
            font-size: 14px;
        }
    }

    @media (max-width: 480px) {
        .gradient-button {
            padding: 10px;
        }

        .search-input {
            height: 36px;
        }
    }


.table-responsive {
    overflow-x: auto;
}

/* Action icons alignment and spacing */
@media (max-width: 576px) {
    .table th, .table td {
        white-space: nowrap;
        font-size: 13px;
    }

    .table td select {
        max-width: 100px;
        font-size: 12px;
    }

    .pagination .page-link {
        font-size: 14px;
        padding: 6px 10px;
    }

    .table td .bx {
        font-size: 20px !important;
    }

    .pagination li.d-sm-block {
        display: none !important;
    }
}

	/* Table Wrapper for horizontal scroll on mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Action icons container */
.action-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Each link acts as a floating circular button */
.action-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Floating hover effect */
.action-icons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25);
}

/* Icon styles */
.action-icons i {
  font-size: 22px;
  transition: color 0.3s ease;
}

/* Color codes per action */
.action-icons a[title="View"] i {
  color: #17c711;
}

.action-icons a[title="Edit"] i {
  color: #f3c96e;
}

.action-icons a[title="Archive"] i {
  color: #6c757d;
}

.action-icons a[title="Delete"] i {
  color: #e74c3c;
}

/* Subtle glow effect on hover */
.action-icons a[title="View"]:hover {
  box-shadow: 0 6px 16px rgba(23, 199, 17, 0.4);
}

.action-icons a[title="Edit"]:hover {
  box-shadow: 0 6px 16px rgba(243, 201, 110, 0.4);
}

.action-icons a[title="Archive"]:hover {
  box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.action-icons a[title="Delete"]:hover {
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}


@media (max-width: 768px) {
	
  .table thead {
      display: none;
  }

  .table tbody tr {
      display: block;
      background: #fff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      border-radius: 10px;
      margin-bottom: 20px;
      padding: 15px;
  }

  .table td {
      display: flex;
      flex-direction: column; /* Stack vertically for better responsiveness */
      align-items: flex-start; /* Align everything to the left */
      padding: 8px 10px;
      border: none;
      font-size: 14px;
  }

  .table td::before {
      content: attr(data-label);
      font-weight: 600;
      color: #333;
      margin-bottom: 5px;
  }

  .table td select {
      max-width: 120px;
      font-size: 13px;
  }

 .action-icons {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 5px;
  }

  .action-icons a {
    width: 38px;
    height: 38px;
  }

  .action-icons i {
    font-size: 18px;
  }

  .table td[data-label="Description"] .desc-text {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: normal;
      word-wrap: break-word;
      width: 100%;
  }

  .table td[data-label="Description"].expanded .desc-text {
      display: block;
      max-height: none;
  }

  .table td[data-label="Description"] .read-more-toggle {
      display: inline-block;
      margin-top: 5px;
      font-size: 13px;
      color: #007bff;
      cursor: pointer;
  }
}

.status-dropdown {
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Green for Active (Pending in your logic) */
.status-active {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-approved {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}


/* Red for Disabled (Rejected in your logic) */
.status-expired {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-green {
    background: #e6f4ea;
    color: #1a7f36;
    font-weight: 600;
}

/* RED (Expired, Cancellation Request Pending, Cancelled) */
.status-red {
    background: #ffecec;
    color: #d11a1a;
    font-weight: 600;
}

/* ORANGE (Checked Out) */
.status-orange {
    background: #fff3e0;
    color: #e67e22;
    font-weight: 600;
}

/* YELLOW (Checked In) */
.status-yellow {
    background: #fffce0;
    color: #c9a600;
    font-weight: 600;
}

.ticket-card {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(135deg, #facc15, #fb923c); /* Default General */
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  color: #fff;
  font-size: 1.1rem;
}

.ticket-content {
  z-index: 1;
}

.ticket-notch {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 40px;
  background: #fff;
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 50%;
}

.left-notch {
  left: -10px;
}

.right-notch {
  right: -10px;
}

.ticket-card.special {
  background: linear-gradient(135deg, #3b82f6, #06b6d4); /* Blue-teal gradient */
}

.business-checkbox {
  width: 18px;
  height: 18px;
}

/* Fixes long business names */
.card-body label {
  word-break: break-word;
}

.business-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #ffc107; /* Yellow border */
  border-radius: 4px;         /* Rounded corners */
  background-color: white;
  cursor: pointer;
  appearance: none; /* Remove default OS checkbox */
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  transition: all 0.2s ease;
  position: relative;
}

/* When checked: show yellow background and tick */
.business-checkbox:checked {
  background-color: #ffc107;
  border-color: #ffc107;
}

.business-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

th.sortable {
  cursor: pointer;
  font-weight: 500;
  position: relative;
  text-align: left;
}

.sort-indicator {
  float: right;
  font-size: 10px;
  color: #ccc; /* light by default */
  margin-left: 5px;
  font-weight: normal;
}

/* Active sort direction styles */
th.sortable {
  cursor: pointer;
  font-weight: 500;
  position: relative;
  text-align: left;
}

.sort-indicator {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: 8px;
  font-size: 10px;
  color: #ccc;
}

.sort-indicator .up,
.sort-indicator .down {
  line-height: 10px;
}

th.sortable.asc .sort-indicator .up {
  color: #333;
  font-weight: bold;
}

th.sortable.desc .sort-indicator .down {
  color: #333;
  font-weight: bold;
}

 .airbnb-table-container {
        background-color: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.05);

    }

    .airbnb-table-title {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 16px;
        color: #333;
    }

    .airbnb-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .airbnb-table thead {
        background-color: #f9f9f9;
        border-bottom: 2px solid #ddd;
    }

    .airbnb-table th {
        padding: 12px;
        font-size: 14px;
        font-weight: 600;
        color: #555;
        text-align: left;
    }

    .airbnb-table td {
        padding: 14px 12px;
        font-size: 14px;
        color: #444;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }

    .airbnb-table tbody tr:last-child td {
        border-bottom: none;
    }

    .airbnb-table i {
        font-size: 20px;
        cursor: pointer;
        transition: color 0.2s ease;
    }

    .airbnb-table i:hover {
        opacity: 0.8;
    }

    .airbnb-table .action-approve {
        color: #4CAF50;
    }

    .airbnb-table .action-deny {
        color: #f44336;
    }

    @media (max-width: 768px) {
        .airbnb-table th, .airbnb-table td {
            font-size: 13px;
        }

        .airbnb-table-container {
            padding: 16px;
        }
    }