/* Hide mobile view by default */
body {
    background-color: #f8f9fa;
    /*font-family: 'Inter', 'Roboto', 'Fira Sans', sans-serif;*/
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px!important;
}
@media (max-width: 768px) {
    .desktop-view {
        display: none;
    }
    .mobile-view {
        display: inline;
    }
    /* Add other CSS rules for mobile devices here */
  }
  
  /* Tablets (landscape mode) */
  @media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .desktop-view {
        display: none;
    }
    .mobile-view {
        display: inline;
    }
    /* Add other CSS rules for tablets in landscape mode here */
  }
  
  /* Tablets (portrait mode) */
  @media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .desktop-view {
        display: none;
    }
    .mobile-view {
        display: inline ;
    }
    /* Add other CSS rules for tablets in portrait mode here */
  }
  
  /* Laptops and Desktops */
  @media (min-width: 1025px) and (max-width: 1280px) {
    .desktop-view {
        display: inline;
    }
    .mobile-view {
        display: none;
    }
    /* Add other CSS rules for desktops here */
  }
  
  /* Large screens */
  @media (min-width: 1281px) {
    .desktop-view {
        display: inline;
    }
    .mobile-view {
        display: none;
    }
    /* Add other CSS rules for large screens here */
  }

  .user-status-switch {
    cursor: pointer;
    width: 3em;
    height: 1.5em;
}

.user-status-switch:checked {
    background-color: #198754;
    border-color: #198754;
}

.user-status-switch:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}
.end-trial-animate {
    animation: end-trial-pulse 1.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes end-trial-pulse {
    0% { transform: scale(1) rotate(-5deg); filter: brightness(1); }
    20% { transform: scale(1.15) rotate(5deg); filter: brightness(1.2); }
    40% { transform: scale(1) rotate(-5deg); filter: brightness(1); }
    60% { transform: scale(1.1) rotate(5deg); filter: brightness(1.15); }
    80% { transform: scale(1) rotate(-5deg); filter: brightness(1); }
    100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}

/* Side Panel Styles (Right Side) */
.side-panel {
    position: fixed;
    top: 0;
    right: -400px; /* Start off-screen to the right */
    width: 400px; /* Default width */
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent entire panel from scrolling */
}

@media (max-width: 768px) {
  .side-panel {
      height: calc(100vh - env(safe-area-inset-bottom));
  }
}

.side-panel.open {
    right: 0;
}

.side-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.side-panel-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.side-panel-content {
    padding: 1rem;
    flex: 1; /* Take remaining space */
    overflow-y: auto; /* Allow content to scroll */
    overflow-x: hidden; /* Prevent horizontal scroll */
    zoom: 0.95;
}

.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.side-panel-overlay.show {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .side-panel {
        width: 100%;
        right: -100%;
    }
}


 /* Log-specific styles */
 .log-container {
    max-width: 700px;
    margin: 0.5rem auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 1rem 1rem;
}
.log-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 1px;
}

.log-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.log-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.log-item:last-child {
    border-bottom: none;
}
.log-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.log-content {
    flex: 1;
}
.log-meta {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 0.2rem;
}
.log-activity-type {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2em 0.7em;
    border-radius: 12px;
    background: #f1f3f4;
    color: #007bff;
    margin-right: 0.5em;
    text-transform: capitalize;
}
.log-description {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 0.2rem;
}
.log-old-new {
    font-size: 0.95rem;
    color: #555;
}
.log-timestamp {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.2rem;
}
@media (max-width: 600px) {
    .log-container {
        padding: 1rem 0.3rem;
    }
    .log-title {
        font-size: 1.3rem;
    }
    .log-avatar {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/*end of log styles*/

.help-container {
    display: flex;
    min-height: 80vh;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
  }
  .help-sidebar {
    width: 320px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 2rem 1rem 2rem 2rem;
    position: sticky;
    top: 0;
    height: calc(100vh - 4rem);
    overflow-y: auto;
    flex-shrink: 0;
  }
  .help-sidebar::-webkit-scrollbar {
    width: 6px;
  }
  .help-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
  }
  .help-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
  .help-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
  @media (max-width: 900px) {
    .help-container { 
      flex-direction: column; 
    }
    .help-sidebar { 
      width: 100%; 
      border-right: none; 
      border-bottom: 1px solid #e5e7eb; 
      padding: 1rem; 
      height: auto;
      position: relative;
    }
  }
  .help-category {
    margin-bottom: 1.5rem;
  }
  .help-category-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
  }
  .help-category-title:hover { 
    color: #2563eb;
    background: #f1f5f9;
  }
  .help-category-title::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.2s;
  }
  .help-category.collapsed .help-category-title::after {
    transform: rotate(-90deg);
  }
  .help-subcategories {
    margin-top: 0.5rem;
    margin-left: 1rem;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
  }
  .help-category.collapsed .help-subcategories {
    max-height: 0;
    margin-top: 0;
  }
  .help-subcategory {
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    color: #334155;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    background: #f1f5f9;
    margin-right: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .help-subcategory:hover {
    background: #e2e8f0;
  }
  .help-details {
    flex: 1;
    padding: 2.5rem 2rem;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }
  .help-details::-webkit-scrollbar {
    width: 6px;
  }
  .help-details::-webkit-scrollbar-track {
    background: #f1f5f9;
  }
  .help-details::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
  }
  .help-details::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
  @media (max-width: 900px) {
    .help-details { 
      padding: 1.5rem 1rem;
    }
  }
  .help-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.2rem;
  }
  .help-media {
    width: 100%;
    max-width: 480px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #fff;
    overflow: hidden;
  }
  .help-description {
    font-size: 1.15rem;
    color: #334155;
    line-height: 1.7;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    width: 100%;
    margin-top: 0.5rem;
  }
  .help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 1rem;
    position: relative;
  }
  .back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #1e293b;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    z-index: 1;
  }
  .back-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #2563eb;
  }
  .back-button svg {
    width: 16px;
    height: 16px;
  }

  /*filter column*/
  .status-filter-dropdown {
    max-height: 350px;
    overflow-y: auto;
    margin-right: 20px;
    min-width: 200px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 9999;
}
.status-filter-dropdown .form-check {
    margin-bottom: 8px;
}
.status-filter-dropdown .form-check:last-child {
    margin-bottom: 0;
}
#statusFilterIcon.active {
    color: #0d6efd;
    font-weight: bold;
    border-bottom: 2px solid #0d6efd;
    animation: filterPulse 1.2s infinite alternate;
}
@keyframes filterPulse {
    0% {
        color: #0d6efd;
        border-bottom-color: #0d6efd;
        background-color: transparent;
    }
    50% {
        color: yellow;
        border-bottom-color: yellow;
        background-color: yellow;
    }
    100% {
        color: #0d6efd;
        border-bottom-color: #0d6efd;
        background-color: transparent;
    }
}
.clear-filters-btn-link {
    background: none;
    border: none;
    color: #0d6efd;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.80rem;
    padding: 0 0 0 8px;
    float: right;
    margin-top: 0;
}
.clear-filters-btn-link:disabled {
    color: #aaa;
    text-decoration: none;
    cursor: default;
}
.no-results-message {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    margin: 24px 0;
    display: none;
}

/*filter-orders-sidebar.html*/
.filter-glo-container {
  padding: 1rem;
}

.filter-glo-form {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 25px rgba(0,0,0,0.07);
  margin-bottom: 1.5rem;
}

/* --- Control Alignment & Sizing --- */
.filter-glo-form .row {
  --control-height: 40px; /* Unified height for controls */
}

.filter-glo-form .form-select-sm,
.filter-glo-form .btn-sm {
  height: var(--control-height);
  border-radius: 8px; /* Rounded corners */
  transition: all 0.3s ease;
}

.filter-glo-form .form-select-sm {
  border: 2px solid #dee2e6;
}

.filter-glo-form .form-select-sm:focus {
  border-color: #8ab4f8; /* Softer blue border on focus */
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.filter-glo-form .btn-sm {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Custom Switch Button --- */
.filter-glo-switch {
  position: relative;
  display: flex;
  background: #e9ecef;
  border-radius: 8px; /* Match other controls */
  padding: 4px;
  border: 1px solid #dee2e6;
  height: var(--control-height);
}

.filter-glo-switch input[type="radio"] {
  display: none;
}

.filter-glo-switch label {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  padding: 0 16px;
  line-height: calc(var(--control-height) - 10px); /* Vertical center */
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  border-radius: 6px; /* Inner radius */
  transition: color 0.3s ease;
  white-space: nowrap;
}

.filter-glo-switch .filter-glo-switch-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: white;
  border-radius: 6px; /* Inner radius */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.filter-glo-switch input#filterTypeMonth:checked ~ .filter-glo-switch-slider {
  transform: translateX(0);
}

.filter-glo-switch input#filterTypeYear:checked ~ .filter-glo-switch-slider {
  transform: translateX(100%);
}

.filter-glo-switch input#filterTypeMonth:checked + label,
.filter-glo-switch input#filterTypeYear:checked + label {
  color: #0d6efd;
}

.filter-glo-results {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 25px rgba(0,0,0,0.07);
}

.filter-glo-aggregate {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 0;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  overflow: hidden;
}

.filter-glo-aggregate .col-6 {
  padding: 1.25rem 0.5rem;
}

.filter-glo-aggregate .border-end {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.filter-glo-aggregate-value { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.filter-glo-aggregate-label { font-size: 0.9rem; opacity: 0.9; }

/* --- Table Styles --- */
.filter-glo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  font-size: 0.8rem;
  margin-bottom: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.filter-glo-table thead th {
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e9ecef;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.filter-glo-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
  color: #222;
}

.filter-glo-table tbody tr:last-child td {
  border-bottom: none;
}

.filter-glo-table tbody tr:hover {
  background: #f6fafd;
  transition: background 0.2s;
}

/* Tablesort header indicators */
.filter-glo-table thead th[role=columnheader]:not(.no-sort) {
  cursor: pointer;
}

.filter-glo-table thead th[role=columnheader]:not(.no-sort)::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: #404040 transparent;
  opacity: 0.4;
  vertical-align: middle;
  user-select: none;
}

.filter-glo-table thead th[aria-sort="ascending"]:not(.no-sort)::after {
  border-width: 0 5px 5px;
}

.filter-glo-table thead th[role=columnheader]:not(.no-sort):focus::after,
.filter-glo-table thead th[role=columnheader]:not(.no-sort):hover::after {
  opacity: 0.9;
}

/* --- No Results Message --- */
.filter-glo-no-results {
  text-align: center;
  color: #888;
  margin-top: 2rem;
  padding: 2rem 0;
}

.filter-glo-no-results i {
  font-size: 2.5rem;
  color: #b0b0b0;
  margin-bottom: 0.5rem;
}

/* --- Responsive Table --- */
@media (max-width: 900px) {
  .filter-glo-table thead {
    display: none;
  }
  .filter-glo-table, .filter-glo-table tbody, .filter-glo-table tr, .filter-glo-table td {
    display: block;
    width: 100%;
  }
  .filter-glo-table tr {
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    background: #fff;
    padding: 0.5rem 0;
  }
  .filter-glo-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #f1f3f4;
  }
  .filter-glo-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    top: 0.7rem;
    font-weight: 600;
    color: #888;
    text-align: left;
    white-space: nowrap;
  }
}

/* --- Scrollbar for Table --- */
.filter-glo-results .table-responsive {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 10px;
}

.filter-glo-results .table-responsive::-webkit-scrollbar {
  width: 8px;
  background: #f1f3f4;
  border-radius: 8px;
}
.filter-glo-results .table-responsive::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 8px;
}

/* --- Miscellaneous --- */
.filter-glo-aggregate-value {
  letter-spacing: 1px;
}

.filter-glo-aggregate-label {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/*end of filter-orders-sidebar.html*/
  
/*invoice-side-panel.html*/
.invoice-side-panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.invoice-side-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  border-radius: 8px 8px 0 0;
  margin-bottom: 1rem;
}

.invoice-side-header h4 {
  margin: 0;
  font-weight: 600;
}

.invoice-side-content {
  display: flex;
  flex: 1;
  gap: 1.5rem;
  height: calc(100vh - 200px);
}

.invoice-side-pdf-column {
  flex: 3;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.invoice-side-details-column {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.invoice-side-pdf-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.invoice-side-pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.invoice-side-pdf-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.invoice-side-pdf-actions {
  position: absolute;
  top: 10px;
  right: 25px;
  z-index: 10;
}

.invoice-side-pdf-actions .btn {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s;
}

.invoice-side-pdf-actions .btn:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.invoice-side-order-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.invoice-side-detail-section {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
}

.invoice-side-detail-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.invoice-side-detail-section h6 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invoice-side-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
}

.invoice-side-detail-item:last-child {
  margin-bottom: 0;
}

.invoice-side-detail-label {
  font-weight: 500;
  color: #6c757d;
  font-size: 0.8rem;
}

.invoice-side-detail-value {
  font-weight: 600;
  color: #212529;
  text-align: right;
  font-size: 0.8rem;
}

.invoice-side-status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.invoice-side-status-not-started { background: #e9ecef; color: #6c757d; }
.invoice-side-status-in-progress { background: #fff3cd; color: #856404; }
.invoice-side-status-ready { background: #d1ecf1; color: #0c5460; }
.invoice-side-status-completed { background: #d4edda; color: #155724; }
.invoice-side-status-issue { background: #f8d7da; color: #721c24; }

.invoice-side-priority-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.invoice-side-priority-high { background: #f8d7da; color: #721c24; }
.invoice-side-priority-medium { background: #fff3cd; color: #856404; }
.invoice-side-priority-low { background: #d4edda; color: #155724; }

.invoice-side-value-highlight {
  font-size: 1.1rem;
  font-weight: 700;
  color: #28a745;
}

.invoice-side-notes-section {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.invoice-side-notes-content {
  font-style: italic;
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .invoice-side-content {
      flex-direction: column;
      height: auto;
  }
  
  .invoice-side-pdf-column {
      height: 400px;
  }
  
  .invoice-side-details-column {
      max-height: 400px;
  }
}
/*end of invoice-side-panel.html*/

/*code to sole the stylling for the select fiELD ON SAFARI*/
select {
  appearance: none;         /* Standard */
  -webkit-appearance: none; /* Safari/Chrome */
  -moz-appearance: none;    /* Firefox */
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon fill='%23999' points='70,100 100,60 40,60'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

/*task dashboard*/

.task-full-badge {
  font-size: 0.75rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-full-badge.hidden {
  display: none !important;
}

#task-dashboard-btn {
  transition: all 0.3s ease;
}

#task-dashboard-btn:hover {
  transform: scale(1.1);
}

#task-dashboard-btn .fas {
  font-size: 1.2rem;
}

/* Enterprise Plus Side Panel Styles */
.writing-mode-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1.2;
  word-spacing: 0.2em;
}

.enterprise-plus-side-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(135deg, #ec4899, #be185d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0.5rem;
  z-index: 10;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.enterprise-plus-arrow {
  position: absolute;
  top: 1rem;
  left: -3rem;
  color: #2563eb;
  animation: arrow-pulse 2s infinite;
  z-index: 20;
  background: #fbbf24;
  border-radius: 50%;
  padding: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 4rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes arrow-pulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}

.enterprise-plus-side-panel-standalone {
  width: 80px;
  background: linear-gradient(135deg, #ec4899, #be185d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0.5rem;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  position: relative;
}

/*end of enterprise plus side panel styles*/

/* Custom Gradient Button Styles */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-gradient:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.btn-gradient:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-gradient:disabled {
    background: linear-gradient(135deg, #a8b5e8 0%, #b8a5c4 100%);
    color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Button Size Variants */
.btn-gradient.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-gradient.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 16px;
}

/* Button with Icon */
.btn-gradient .fas,
.btn-gradient .far,
.btn-gradient .fab {
    margin-right: 0.5rem;
}

.btn-gradient.btn-icon-only {
    padding: 0.75rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-gradient.btn-icon-only .fas,
.btn-gradient.btn-icon-only .far,
.btn-gradient.btn-icon-only .fab {
    margin-right: 0;
}

/* Loading State */
.btn-gradient.loading {
    position: relative;
    color: transparent;
}

.btn-gradient.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-gradient {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .btn-gradient.btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .btn-gradient.btn-lg {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
        border-radius: 12px;
    }
}

/* client form styles*/
.client-form-container {
  max-width: 100%;
  margin: 0 auto;
}

.client-form-floating {
  position: relative;
}

.client-form-floating .form-control {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
  font-size: 1rem;
  font-weight: 500;
}

.client-form-floating .form-select {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
  font-size: 1rem;
  font-weight: 500;
  appearance: none;
  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='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.25rem;
}

.client-form-floating label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.client-form-floating .form-control:focus ~ label,
.client-form-floating .form-control:not(:placeholder-shown) ~ label,
.client-form-floating .form-select:focus ~ label,
.client-form-floating .form-select:not([value=""]) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.client-form-floating .form-select:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.client-form-floating .form-select:not([value=""]):not([value="0"]) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.client-form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #fff;
  min-height: calc(3.5rem + 2px);
}

.client-form-checkbox input[type="radio"] {
  margin: 0;
}

.client-form-checkbox label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.client-form-textarea {
  min-height: 100px;
  padding-top: 1.625rem !important;
}

.client-form-floating .client-form-textarea:focus ~ label,
.client-form-floating .client-form-textarea:not(:placeholder-shown) ~ label,
.client-form-floating .client-form-textarea:not([value=""]) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.client-form-optional {
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 400;
}

.client-form-required {
  color: #dc3545;
}

@media (max-width: 768px) {
  .client-form-floating .form-control,
  .client-form-floating .form-select {
      height: calc(2.5rem + 2px);
  }
  
  .client-form-checkbox {
      min-height: calc(2.5rem + 2px);
      padding: 0.5rem 0.75rem;
  }
}

/*end of client form styles*/

/* Dashboard Action Column Styles - Using Bootstrap Dropdown */


/* Enhanced dropdown styling */
.dashboard-action-column .dropdown-menu {
  /* Enhanced shadow for better visual depth */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  
  /* Add space between first column and dropdown */
  margin-left: 10px!important;
  
 
  
  /* Smaller, more compact items */
  font-size: 0.8rem;
  padding: 4px 0;
}

.dashboard-action-column .dropdown-item {
    /* Smaller padding for more compact look */
    padding: 8px 17px;
    font-size: 0.8rem;
    line-height: 1.3;
    
    /* Better hover effects - ANIMATIONS COMMENTED OUT */
    /* transition: all 0.2s ease; */
}

.dashboard-action-column .dropdown-item:hover {
    background-color: #f8f9fa;
    /* transform: translateX(2px); */
}

.dashboard-action-column .dropdown-header {
    /* Compact header styling */
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.dashboard-action-column .dropdown-divider {
    margin: 4px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-action-column {
        min-width: 120px;
        max-width: 120px;
    }
    
    .dashboard-action-column .dropdown-menu {
        font-size: 0.75rem;
    }
    
    .dashboard-action-column .dropdown-item {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* Ensure SweetAlert2 appears above Bootstrap modals */
/* Bootstrap modals typically use z-index: 1055 */
/* Edit Task Modal uses z-index: 2000 */
.swal2-container {
    z-index: 10000 !important;
}

.swal2-backdrop-show {
    z-index: 9999 !important;
}

/* Permission denied SweetAlert styling */
.permission-denied-popup {
    z-index: 10001 !important;
}

.permission-denied-title {
    font-weight: 600;
    color: #dc3545;
}

.permission-denied-content {
    font-size: 1rem;
    line-height: 1.5;
}