body {
    overflow-x: hidden;
}
.dashboard_section {
    background: #f5f7fb;
}
a {
    text-decoration: none !important;
}
.navbar {
    margin-top:10px;
}
.table-responsive .table {
    white-space: nowrap;
    font-weight: 300;
    font-size: 14px;
}
.Disposition_area {
    white-space: normal;
    width: 200px;
    display: block;
}
.sidebar {
    background: linear-gradient(180deg, #4361ee 0%, #3f37c9 100%);
    color: white;
    height: 100vh;
    position: sticky;
    top: 0px;
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    margin-left: -250px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 6px;
    margin: 5px 0;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.main-content {
    padding: 0px;
    transition: all 0.3s;
}

.main-content.expanded {
    margin-left: 0;
}

.dashboard-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.quick-action {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quick-action i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4361ee;
}

.recent-transaction {
    border-left: 4px solid #4361ee;
    padding-left: 15px;
}

.status-success {
    color: #28a745;
}

.status-pending {
    color: #ffc107;
}

.status-failed {
    color: #dc3545;
}

.navbar-custom {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4361ee;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4361ee;
    cursor: pointer;
    margin-right: 15px;
}

.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    cursor: pointer;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.sidebar-toggle {
    display: none;
}
/*--------------transation history--------------*/
/* Profile Page Specific Styles */
.profile-avatar-lg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 auto;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-avatar-lg ~ .btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form Styles */
.form-control[readonly] {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  cursor: not-allowed;
}

.form-control:not([readonly]):focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

/* Switch Styles */
.form-switch .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-switch .form-check-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

/* Badge Styles */
.badge {
  font-size: 0.7rem;
  padding: 0.35rem 0.65rem;
}

/* Border and Card Enhancements */
.border {
  border-color: #e9ecef !important;
}

.card-header {
  border-bottom: 1px solid #e9ecef;
}

/* Modal Styles */
.modal-header {
  border-bottom: 1px solid #e9ecef;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-avatar-lg {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }
  
  .card-header .d-flex {
    flex-direction: column;
    gap: 1rem;
    align-items: start !important;
  }
  
  .text-end {
    text-align: left !important;
  }
  
  .text-end .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Animation for edit mode */
.form-control {
  transition: all 0.3s ease;
}

/* Hover effects */
.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Statistics card enhancements */
.card-body .d-flex {
  padding: 0.5rem 0;
}

.card-body .d-flex:not(:last-child) {
  border-bottom: 1px solid #f8f9fa;
}

/* Help and Support Page Specific Styles */
.help-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

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

.help-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto;
}

/* Search Box */
.search-box {
  max-width: 600px;
  margin: 0 auto;
}

.search-box .input-group {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.search-box .form-control {
  border: none;
  padding: 15px 25px;
  font-size: 1.1rem;
}

.search-box .btn {
  border: none;
  padding: 15px 30px;
  border-radius: 0 50px 50px 0;
}

/* Accordion Styles */
.accordion-button {
  font-weight: 600;
  padding: 1rem 1.25rem;
  background-color: white;
  border: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary);
}

.accordion-body {
  padding: 1rem 1.25rem;
  background-color: #f8f9fa;
}

.accordion-item {
  border: 1px solid #e9ecef;
  margin-bottom: 10px;
  border-radius: 8px !important;
  overflow: hidden;
}

/* Support Channels */
.channel-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f8f9fa;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.support-channel {
  padding: 15px 0;
}

.support-channel:not(:last-child) {
  border-bottom: 1px solid #e9ecef;
}

/* Resource Items */
.resource-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f8f9fa;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 2px;
}

.resource-item {
  padding: 15px 0;
}

.resource-item:not(:last-child) {
  border-bottom: 1px solid #e9ecef;
}

/* System Status */
.system-status .status-item {
  padding: 10px 0;
}

.system-status .status-item:not(:last-child) {
  border-bottom: 1px solid #f8f9fa;
}

/* Live Chat Styles */
.chat-container {
  height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.message {
  display: flex;
  margin-bottom: 1rem;
}

.message.support-message {
  justify-content: flex-start;
}

.message.user-message {
  justify-content: flex-end;
}

.message-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 0 10px;
}

.message-content {
  max-width: 70%;
  background: white;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
  background: var(--primary);
  color: white;
}

.message-text {
  margin-bottom: 5px;
}

.message-time {
  font-size: 0.75rem;
  color: #6c757d;
  text-align: right;
}

.user-message .message-time {
  color: rgba(255, 255, 255, 0.8);
}

.chat-input {
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
}

/* Form Styles */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

/* Badge Styles */
.badge {
  font-size: 0.7rem;
  padding: 0.35rem 0.65rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .help-icon {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }
  
  .search-box .form-control {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .search-box .btn {
    padding: 12px 25px;
  }
  
  .channel-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .message-content {
    max-width: 85%;
  }
}

/* Button Styles */
.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

/* Card Enhancements */
.card-header {
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.5rem;
}


@media (max-width: 992px) {
    .sidebar {
        margin-left: -100%;
        position: absolute;
        top: 0;
        height: 100%;
        display: block;
        overflow: auto;
    }
    .sidebar-toggle {
        display: block;
    }
    .sidebar.mobile-open {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .close-sidebar {
        display: block;
    }
    
    .overlay.active {
        display: block;
    }
}
@media (max-width: 768px) {
    .sidebar {
        margin-left: -100%;
        position: absolute;
        top: 0;
        height: 100%;
        display: block;
        overflow: auto;
    }
    .sidebar-toggle {
        display: block;
    }
    .sidebar.mobile-open {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .close-sidebar {
        display: block;
    }
    
    .overlay.active {
        display: block;
    }
}