.mailu-logo {
  opacity: .8
}

.bg-mailu-logo {
  background-color: #ccfd54 !important;
}

.bg-mailu-logo .img-circle {
  border-radius: 0%;
}

.bg-mailu-logo .font-weight-light {
  color: #000;
}

.div-circle {
  background-color: #fff;
  /*border-radius:50%;*/
  height: 2.1rem;
  opacity: .8;
  position: relative;
  width: 2.1rem
}

.div-circle>i {
  display: block;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%)
}

.pre-config {
  word-wrap: anywhere;
  border-radius: 4px;
  margin: 0;
  padding: 9px;
  white-space: pre-wrap
}

.card {
  border-radius: 0;
}

legend {
  font-size: inherit
}

fieldset:disabled :not(legend) label {
  opacity: .5
}

fieldset:disabled .form-control:disabled {
  color: gray
}

.sidebar .nav-link p i {
  transition: margin-left .3s linear, opacity .3s ease, visibility .3s ease
}

[class*="sidebar-dark-"] {
  background-color: #7c57fc;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  color: #000;
}

.input-group-text {
  margin-right: 1em;
}

.mailu-version {
  font-size: 60%;
  line-height: 0;
}

.card-primary.card-outline {
  border-top: 5px solid #ccfd54;
}

.btn.btn-primary {
  background-color: #ccfd54;
  border-color: #e1ff97;
  color: #131220;
}

.btn.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #ccfd55;
  border-color: #ccfd54;
  color: #000;
}

/*ul.nav-sidebar li:nth-last-child(2) {display:none;}*/
.fa-bars:before {
  content: "";
  color: #7c57fc;
}

.pre-config {
  word-wrap: anywhere;
  border-radius: 13px;
  margin: 0px;
  padding: 15px;
  white-space: pre-wrap;
}

.bg-light,
.bg-light>a {
  color: #7b7b7b !important;
}

.bg-light {
  background-color: #f8f8f8 !important;
}

.border {
  border: 1px solid #dee2e600 !important;
}

.table-bordered,
.table-bordered td,
.table-bordered th {
  border: 1px solid #f3f3f3;
}

a {
  color: #7c57fc;
}

footer {
  display: none;
}

/* RTL/LTR float utilities - higher specificity to override Bootstrap */
.float-end {
  float: right !important;
}

.float-start {
  float: left !important;
}

html[dir="rtl"] .float-end {
  float: left !important;
}

html[dir="rtl"] .float-start {
  float: right !important;
}

/* Navigation margin fix - higher specificity */
nav.main-header ul:nth-child(2) {
  margin-left: auto !important;
}

html[dir="rtl"] nav.main-header ul:nth-child(2) {
  margin-right: auto !important;
  margin-left: unset !important;
}

/* Sidebar section headers - green color for better contrast */
.sidebar .nav-header.text-primary {
  color: #ccfd54 !important;
}

/* =====================================================
   Mobile-Friendly Table Action Buttons
   ===================================================== */

/* Base action link styling */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Action button colors */
.action-btn.btn-edit {
  color: #007bff;
  background: rgba(0, 123, 255, 0.1);
}

.action-btn.btn-edit:hover {
  background: rgba(0, 123, 255, 0.2);
  color: #0056b3;
}

.action-btn.btn-delete {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.action-btn.btn-delete:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #a71d2a;
}

.action-btn.btn-settings {
  color: #6c757d;
  background: rgba(108, 117, 125, 0.1);
}

.action-btn.btn-settings:hover {
  background: rgba(108, 117, 125, 0.2);
  color: #495057;
}

.action-btn.btn-view {
  color: #17a2b8;
  background: rgba(23, 162, 184, 0.1);
}

.action-btn.btn-view:hover {
  background: rgba(23, 162, 184, 0.2);
  color: #117a8b;
}

.action-btn.btn-users {
  color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.action-btn.btn-users:hover {
  background: rgba(40, 167, 69, 0.2);
  color: #1e7e34;
}

.action-btn.btn-alias {
  color: #fd7e14;
  background: rgba(253, 126, 20, 0.1);
}

.action-btn.btn-alias:hover {
  background: rgba(253, 126, 20, 0.2);
  color: #dc6502;
}

.action-btn.btn-managers {
  color: #6f42c1;
  background: rgba(111, 66, 193, 0.1);
}

.action-btn.btn-managers:hover {
  background: rgba(111, 66, 193, 0.2);
  color: #5a32a3;
}

.action-btn.btn-alt {
  color: #e83e8c;
  background: rgba(232, 62, 140, 0.1);
}

.action-btn.btn-alt:hover {
  background: rgba(232, 62, 140, 0.2);
  color: #c21766;
}

.action-btn.btn-reply {
  color: #20c997;
  background: rgba(32, 201, 151, 0.1);
}

.action-btn.btn-reply:hover {
  background: rgba(32, 201, 151, 0.2);
  color: #17a085;
}

.action-btn.btn-fetch {
  color: #6610f2;
  background: rgba(102, 16, 242, 0.1);
}

.action-btn.btn-fetch:hover {
  background: rgba(102, 16, 242, 0.2);
  color: #510bc4;
}

/* Hide text labels on desktop */
.action-btn .action-text {
  display: none;
}

/* Mobile styles - show text labels */
@media (max-width: 991.98px) {
  .action-cell {
    flex-direction: column;
    gap: 0.4rem;
  }

  .action-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: 100%;
    justify-content: flex-start;
  }

  .action-btn .action-text {
    display: inline;
  }

  .action-btn i {
    width: 1.2em;
    text-align: center;
  }

  /* Better table layout on mobile */
  .table-responsive table {
    font-size: 0.85rem;
  }

  /* Hide less important columns on mobile */
  .hide-mobile {
    display: none !important;
  }
}

/* =====================================================
   Breadcrumb Navigation Styling
   ===================================================== */
.navbar-nav .nav-item .breadcrumb-container {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  background: transparent;
}

.navbar-nav .nav-link.breadcrumb-link {
  padding: 0.5rem 0.75rem;
  color: #7c57fc;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.navbar-nav .nav-link.breadcrumb-link:hover {
  background: rgba(124, 87, 252, 0.1);
  color: #5a32a3;
}

.navbar-nav .breadcrumb-link.active {
  color: #495057;
  font-weight: 600;
  cursor: default;
}

.navbar-nav .breadcrumb-separator {
  color: #dee2e6;
  margin: 0 0.25rem;
  font-size: 0.75rem;
}

/* RTL breadcrumb support */
html[dir="rtl"] .navbar-nav .breadcrumb-separator {
  transform: scaleX(-1);
}

html[dir="rtl"] .navbar-nav .nav-link.breadcrumb-link {
  text-align: right;
}

html[dir="rtl"] .navbar-nav .nav-item {
  direction: rtl;
}

/* =====================================================
   Enhanced Form Input Styling
   ===================================================== */
.form-control {
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #7c57fc;
  box-shadow: 0 0 0 0.2rem rgba(124, 87, 252, 0.15);
}

.input-group {
  border-radius: 6px;
  overflow: hidden;
}

.input-group-text {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  color: #6c757d;
  font-weight: 500;
}

/* Select field styling */
select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237c57fc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

/* Card enhancements */
.card {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 2px solid #7c57fc;
  border-radius: 8px 8px 0 0 !important;
}

.card-title {
  color: #2c3e50;
  font-weight: 600;
  margin: 0;
}

/* Button enhancements */
.btn {
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.btn-primary {
  background: linear-gradient(135deg, #ccfd54 0%, #e1ff97 100%);
  border: none;
  color: #131220;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b8e940 0%, #ccfd54 100%);
  color: #000;
}

/* Quota input group styling */
.form-row .col-lg-6:first-child .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.form-row .col-lg-6:last-child select.form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}

/* Responsive breadcrumbs */
@media (max-width: 768px) {
  .navbar-nav .breadcrumb-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  .navbar-nav .breadcrumb-separator {
    font-size: 0.65rem;
  }
}
