/* General Styles */
body {
    overflow-x: hidden;
    background-color: #f5f7fa;
    font-family: Arial, sans-serif;
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    width: 250px;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: width 0.3s ease-in-out;
}

.sidebar.collapsed {
    width: 80px;
}

/* Sidebar Links */
.sidebar .nav-link {
    font-size: 1rem;
    padding: 10px 20px;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.sidebar .nav-link.active {
    color: #AA8038;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #d4a350;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #aa8038;
}

/* Main Content Styles */
.main-content {
    margin-left: 250px;
    padding: 20px;
    width: calc(100% - 250px);
    transition: margin-left 0.3s ease-in-out;
}

.main-content.expanded {
    margin-left: 80px;
    width: calc(100% - 80px);
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: fixed;
        height: auto;
        bottom: 0;
        left: 0;
    }

    .sidebar.collapsed {
        height: 60px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .toggle-btn {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1051;
    }
}

/* Buttons */
.btn {
    background-color: #AA8038 !important;
    color: #FFFFFF !important;
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #d4a350;
}

/* Header and Dashboard Styles */
h1 {
    color: #AA8038;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: bold;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    margin-bottom: 20px;
}

.card h5, .card .number, .card span {
    color: #AA8038;
    text-align: center;
}

.card h5 {
    font-size: 1.5rem;
    font-weight: bold;
}

.card .number {
    font-size: 2.5rem;
    font-weight: bold;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto; /* Enable horizontal scrolling */
}

table {
    font-size: 12px;
    table-layout: auto; /* Dynamic column sizing */
    margin: 0 auto;
    border-collapse: collapse; /* Cleaner table borders */
}

th, td {
    padding: 8px;
    word-wrap: break-word;
    white-space: nowrap; /* Prevent wrapping unless necessary */
    text-overflow: ellipsis; /* Truncate text with ellipsis */
    overflow: hidden; /* Hide overflowing text */
}

th {
    background-color: #AA8038;
    color: #ffffff;
    text-align: left;
}

td {
    text-align: left;
}

td:last-child {
    text-align: center;
}

/* Borders for Table */
.table-bordered {
    border: 1px solid #ddd;
}

.table-bordered th, .table-bordered td {
    border: 1px solid #ddd;
}

/* DataTables Styles */
.dataTables_wrapper .dataTables_filter {
    text-align: right;
}

.dataTables_wrapper .dataTables_length {
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_info {
    margin-top: 10px;
}

.paginate_button {
    margin: 0 5px;
}

.paginate_button.active {
    background-color: #AA8038 !important;
    color: #fff !important;
    border-radius: 5px;
}

/* Responsive Table Styles */
@media (max-width: 768px) {
    table {
        font-size: 10px;
    }

    th, td {
        padding: 6px;
        white-space: normal; /* Allow wrapping for small screens */
    }
}

/* Filter Row Responsiveness */
@media (max-width: 768px) {
    #filterRow .col-md-2, #filterRow .col-md-1 {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Nav Tabs */
.nav-tabs .nav-link.active {
    background-color: #AA8038;
    color: white !important;
}

.nav-tabs .nav-link {
    color: #AA8038;
}

/* Modals */
.modal-dialog {
    max-width: 800px;
}

.modal-content {
    border-radius: 10px;
}

.modal-header {
    background-color: #AA8038;
    color: #ffffff;
}

/* Toggle Button */
.toggle-btn {
    background-color: #AA8038;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1001;
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

/* Task Panel */
.task-panel {
    width: 300px;
    background-color: white;
    border-left: 1px solid #d4a350;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    right: -300px;
    top: 0;
    bottom: 0;
    z-index: 1050;
    transition: right 0.3s ease-in-out;
}

.task-panel.show {
    right: 0;
}

/* User Avatar */
.user-img {
    width: 100px;
    height: 100px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

/* Additional Enhancements */
.badge {
    background-color: #AA8038;
}

.integrations h5, .integrations p {
    margin-bottom: 0;
}

.fa-2x {
    font-size: 1.5rem;
}

   /* Pulse Animation */
.animate-pulse {
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
    .transition-all {
  transition: all 0.3s ease;
}

.btn:hover.transition-all {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
        /* Force the intl-tel-input container to use full width */
.iti {
  width: 100% !important;
}

/* Ensure the actual text input also takes 100% width */
.iti input[type="tel"] {
  width: 100% !important;
}
  /* Custom style for square modals */
  .square-modal {
      max-width: 300px !important; /* Sets the width of the modal */
  }
  .square-modal .modal-content {
      border-radius: 5% !important; /* Remove rounded corners */
      height: 300px !important; /* Sets the height to match width for a square */
  }
  /* Center the modal body content both horizontally and vertically */
  .square-modal .modal-body {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
      border:0px !important;
  }
