/*This is custom style*/

/* Import Tajawal font */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* Import custom Trox font for website name */
@font-face {
  font-family: 'Trox';
  src: url('../fonts/alfont_com_Trox-R.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Set Tajawal as default font for all elements */
* {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Ensure body and html use Tajawal */
html, body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.c-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.c-tooltip .c-tooltiptext {
  visibility: hidden;
  width: 300px;

  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.c-tooltip .c-tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.c-tooltip:hover .c-tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* thead {
  background-color: midnightblue;
    color: whitesmoke;
    vertical-align: middle;
} */

.btn-dark{
  background-color: #073d74 !important;
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loader-progress-bar {
  width: 200px;
  height: 4px;
  background: #f3f3f3;
  border-radius: 2px;
  margin: 10px auto;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: #3498db;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.loading-text {
  color: #333;
  font-size: 16px;
  margin-top: 10px;
}

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

.pagination{
  --bs-pagination-font-size: 0.8rem !important;
}

.border-bottom {
border-bottom: var(--bs-border-width) var(--bs-border-style) #e9e9ef !important;
}
:root {
  --bs-border-color: #e9e9ef;
}

.select2-search__field{
  width: 100% !important;
  height: 25px!important;
}  
.select2-container--default .select2-selection--single{
  height: 36px!important;
}

/* .card-body .table {
  width: 105%!important;
  margin: -1.21rem;   This negates the card-body padding
  
  width: calc(100% + 2.5rem);
} */

/* Custom Range Slider Styles */
.progress-range-wrapper {
    width: 100%;
    padding: 8px 0;
}

.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    outline: none;
    /* Force LTR direction for slider even in RTL layouts */
    direction: ltr !important;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.custom-range::-webkit-slider-thumb:active {
    transform: scale(1.25);
}

/* Firefox */
.custom-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-range::-moz-range-thumb:hover {
    transform: scale(1.15);
}

.custom-range::-moz-range-thumb:active {
    transform: scale(1.25);
}

/* Remove default Firefox track */
.custom-range::-moz-range-track {
    background: transparent;
    border: none;
    height: 10px;
}

thead{
  background: #D8DEE6 !important;
  color: black !important;
}
/* Light mode table hover */
body:not([data-layout-mode="dark"]) tr:hover {
  background: #D8DEE6 !important;
  color: black !important;
}

/* Dark mode table hover - override for all tables */
body[data-layout-mode="dark"] tr:hover {
  background: #30373f !important;
  color: #ecedee !important;
}

body[data-layout-mode="dark"] tr:hover td,
body[data-layout-mode="dark"] tr:hover th {
  color: #ecedee !important;
}

body[data-layout-mode="dark"] tr:hover a {
  color: #74b9ff !important;
}

body[data-layout-mode="dark"] tr:hover span,
body[data-layout-mode="dark"] tr:hover i {
  color: #ecedee !important;
}

/* for save button */
.btn-icon {
  background: transparent;
  border: none;
  padding: 5px;
  border-radius: 10%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  /*background-color: rgba(36, 74, 117, 0.1);*/
}

.btn-icon:active {
  transform: scale(0.95);
}

/* CSS Variables Override */
:root {
    --bs-primary: #1798c4 !important;
    --bs-primary-rgb: 23, 152, 196 !important;
    
    /* Enhanced Color Palette */
    --primary-gradient: linear-gradient(135deg, #1798c4 0%, #0d7aa7 100%);
    --secondary-gradient: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    --success-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --light-bg: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
    
    /* Shadow Variables */
    --shadow-light: 0 4px 15px rgba(23, 152, 196, 0.05);
    --shadow-medium: 0 8px 25px rgba(23, 152, 196, 0.1);
    --shadow-heavy: 0 12px 35px rgba(23, 152, 196, 0.15);
    
    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 15px;
    --border-radius-xl: 25px;
}

/* Light Mode Header Styling */
#page-topbar .header-item {
    color: #495057 !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page-topbar .header-item:hover {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}

#page-topbar .header-item i {
    color: #6c757d !important;
}

#page-topbar .header-item:hover i {
    color: #495057 !important;
}

/* Light Mode Dropdown Styling */
.dropdown-menu {
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Light Mode Toggle Button */
#mode-setting-btn {
    background-color: transparent !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#mode-setting-btn:hover {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

#mode-setting-btn i {
    color: #495057 !important;
    font-size: 18px !important;
}

#mode-setting-btn:hover i {
    color: #212529 !important;
}

/* Dark Mode Header Styling */
[data-topbar="dark"] #page-topbar .header-item {
    color: #adb5bd !important;
    border: 1px solid transparent !important;
}

[data-topbar="dark"] #page-topbar .header-item:hover {
    background-color: #3a4553 !important;
    border-color: #495057 !important;
    color: #ffffff !important;
}

[data-topbar="dark"] #page-topbar .header-item i {
    color: #adb5bd !important;
}

[data-topbar="dark"] #page-topbar .header-item:hover i {
    color: #ffffff !important;
}

/* Dark Mode Language Dropdown */
[data-topbar="dark"] .dropdown-menu {
    background-color: #2a3042 !important;
    border: 1px solid #495057 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3) !important;
}

[data-topbar="dark"] .dropdown-item {
    color: #adb5bd !important;
}

[data-topbar="dark"] .dropdown-item:hover {
    background-color: #3a4553 !important;
    color: #ffffff !important;
}

/* Dark Mode Toggle Button */
[data-topbar="dark"] #mode-setting-btn {
    background-color: transparent !important;
    border: 1px solid #495057 !important;
    color: #adb5bd !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

[data-topbar="dark"] #mode-setting-btn:hover {
    background-color: #3a4553 !important;
    color: #ffffff !important;
}

[data-topbar="dark"] #mode-setting-btn i {
    color: #adb5bd !important;
    font-size: 18px !important;
}

[data-topbar="dark"] #mode-setting-btn:hover i {
    color: #ffffff !important;
}

/* Feather Icons in Toggle Button */
#mode-setting-btn [data-feather] {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2 !important;
}

/* Ensure icons are visible and clickable */
.layout-mode-dark,
.layout-mode-light {
    pointer-events: none;
    display: inline-block;
}

body[data-layout-mode="dark"] .layout-mode-dark {
    display: none !important;
}

body[data-layout-mode="dark"] .layout-mode-light {
    display: inline-block !important;
}

body:not([data-layout-mode="dark"]) .layout-mode-light {
    display: none !important;
}

body:not([data-layout-mode="dark"]) .layout-mode-dark {
    display: inline-block !important;
}

.logo span.logo-sm  {
  display: block;
  height: 40px!important;
}

/* ========================================
   WEBSITE NAME STYLING
   ======================================== */

/* Website Name with Custom Font */
.website-name {
  font-family: 'Trox', sans-serif;
  font-size: 1.5rem;
  font-weight: normal;
  margin-left: 15px;
  margin-right: 15px;
  --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

/* RTL adjustment */
[dir="rtl"] .website-name {
  margin-left: 15px;
  margin-right: 15px;
}

/* Dark Mode - Website Name */
[data-topbar="dark"] .website-name {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

body[data-layout-mode="dark"] .website-name {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

/* Responsive - Hide on smaller screens */
@media (max-width: 768px) {
  .website-name {
    display: none;
  }
}

/* ========================================
   ENHANCED GLOBAL STYLING SYSTEM
   ======================================== */

/* Enhanced Page Containers */
.enhanced-container {
    background: var(--light-bg);
    min-height: 100vh;
    padding: 20px 0;
}

/* Enhanced Card System */
.enhanced-card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    background: #ffffff;
    overflow: hidden;
}

.enhanced-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* Enhanced Card Headers */
.enhanced-card-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 25px;
    margin: -1.25rem -1.25rem 1.5rem -1.25rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.enhanced-card-header.secondary {
    background: var(--secondary-gradient);
}

.enhanced-card-header.success {
    background: var(--success-gradient);
}

.enhanced-card-header h5,
.enhanced-card-header h6 {
    margin: 0;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.enhanced-card-header h5 {
    font-size: 1.3rem;
}

.enhanced-card-header h6 {
    font-size: 1.1rem;
}

.enhanced-card-header .header-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

/* Enhanced Button System */
.enhanced-btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: var(--border-radius-xl) !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(23, 152, 196, 0.3) !important;
}

.enhanced-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(23, 152, 196, 0.4) !important;
    color: white !important;
}

.enhanced-btn-secondary {
    background: var(--secondary-gradient) !important;
    border: none !important;
    border-radius: var(--border-radius-xl) !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3) !important;
}

.enhanced-btn-secondary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4) !important;
    color: white !important;
}

.enhanced-btn-success {
    background: var(--success-gradient) !important;
    border: none !important;
    border-radius: var(--border-radius-xl) !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

.enhanced-btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
    color: white !important;
}

/* Enhanced Table System */
.enhanced-table {
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-light) !important;
}

.enhanced-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: none !important;
    font-weight: 600 !important;
    color: #495057 !important;
    padding: 15px !important;
    font-size: 0.9rem !important;
}

.enhanced-table tbody td {
    padding: 15px !important;
    border-color: #f1f3f4 !important;
    vertical-align: middle !important;
}

.enhanced-table tbody tr:hover {
    background-color: rgba(23, 152, 196, 0.02) !important;
}

/* Animation System */
@keyframes enhancedFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enhanced-animate {
    animation: enhancedFadeInUp 0.6s ease-out;
}

.enhanced-animate-delay-1 {
    animation: enhancedFadeInUp 0.6s ease-out;
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.enhanced-animate-delay-2 {
    animation: enhancedFadeInUp 0.6s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* Utility Classes */
.enhanced-shadow-light {
    box-shadow: var(--shadow-light) !important;
}

.enhanced-shadow-medium {
    box-shadow: var(--shadow-medium) !important;
}

.enhanced-shadow-heavy {
    box-shadow: var(--shadow-heavy) !important;
}

/* Search Box Fixes */
.search-box .search-icon {
    pointer-events: none;
}

.search-box .clear-search {
    pointer-events: auto;
    cursor: pointer;
}

/* Full Width Page Content - Only when sidebar is NOT enabled */
body:not(.sidebar-enable) .main-content {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body:not(.sidebar-enable) .page-content {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
    margin: 0 !important;
}

/* RTL Layout Fix - Remove any margin/padding in RTL when sidebar is NOT enabled */
body:not(.sidebar-enable)[dir="rtl"] .main-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body:not(.sidebar-enable)[dir="rtl"] .page-content {
    margin: 0 !important;
    padding: 1.5rem !important;
    padding-top: 5.5rem !important;
}

/* When sidebar IS enabled, ensure proper spacing */
body.sidebar-enable .page-content {
    width: 100%;
    max-width: 100%;
}

/* Fix layout wrapper for full width */
#layout-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

[dir="rtl"] #layout-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    overflow-x: hidden;
}

body[dir="rtl"] {
    overflow-x: hidden;
}

/* Bootstrap Tooltip Fixes */
.tooltip {
    z-index: 10000 !important;
    pointer-events: none;
}

.tooltip-inner {
    max-width: 300px;
    padding: 6px 12px;
    font-size: 13px;
    text-align: center;
    border-radius: 4px;
}

/* RTL tooltip adjustments */
[dir="rtl"] .tooltip {
    text-align: right;
}

/* Specific fix for avatar tooltips in tables */
.avatar-group {
    position: relative;
    overflow: visible !important;
}

.avatar-group-item {
    position: relative;
    overflow: visible !important;
}

/* Override the transform on hover to prevent tooltip positioning issues */
.avatar-group .avatar-group-item:hover {
    transform: none !important;
    -webkit-transform: none !important;
}

/* Add a subtle scale effect instead of translateY */
.avatar-group .avatar-group-item a:hover {
    opacity: 0.9;
    transition: opacity 0.2s;
}

/* Ensure table cells don't clip tooltips */
td.text-start {
    overflow: visible !important;
}

/* Fix Sidebar Overlapping - Adjust main content when sidebar is enabled */
body.sidebar-enable .main-content {
    margin-left: 100px !important;
    padding-top: 5.5rem !important;
}

body.sidebar-enable[dir="rtl"] .main-content {
    margin-left: 0 !important;
    margin-right: 100px !important;
}

/* For small sidebar size */
body.sidebar-enable[data-sidebar-size="sm"] .main-content {
    margin-left: 70px !important;
}

body.sidebar-enable[data-sidebar-size="sm"][dir="rtl"] .main-content {
    margin-left: 0 !important;
    margin-right: 70px !important;
}

/* Ensure sidebar has proper positioning */
body.sidebar-enable .vertical-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1001;
}

/* Adjust page-content as well */
body.sidebar-enable .page-content {
    padding: 1.0rem !important;
}


body[data-sidebar-size=sm] .footer{
    right: 0px !important;
}

[data-layout-mode=dark] .table-light {
    color: #1798c4 !important;
}

/* Dark mode table hover styles with high specificity */
body[data-layout-mode=dark] .table-light tr:hover,
body[data-layout-mode=dark] .table-light tbody tr:hover,
body[data-layout-mode=dark] table.table-light tr:hover {
    background-color: #30373f !important;
    background: #30373f !important;
    color: #ecedee !important;
}

body[data-layout-mode=dark] .table-light tr:hover td,
body[data-layout-mode=dark] .table-light tr:hover th,
body[data-layout-mode=dark] .table-light tbody tr:hover td,
body[data-layout-mode=dark] .table-light tbody tr:hover th {
    background-color: #30373f !important;
    background: #30373f !important;
    color: #ecedee !important;
}

body[data-layout-mode=dark] .table-light tr:hover a,
body[data-layout-mode=dark] .table-light tbody tr:hover a {
    color: #74b9ff !important;
}

body[data-layout-mode=dark] .table-light tr:hover .badge,
body[data-layout-mode=dark] .table-light tbody tr:hover .badge {
    opacity: 1 !important;
}

body[data-layout-mode=dark] .table-light tr:hover span,
body[data-layout-mode=dark] .table-light tbody tr:hover span {
    color: #ecedee !important;
}

body[data-layout-mode=dark] .table-light tr:hover i,
body[data-layout-mode=dark] .table-light tbody tr:hover i {
    color: #ecedee !important;
}

/* ========================================
   TABLE STICKY COLUMNS (LIGHT MODE)
   ======================================== */

/* Light mode sticky header column */
.table thead th[style*="position: sticky"] {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border-right: 2px solid #dee2e6;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Light mode sticky body cells */
.table tbody td[style*="position: sticky"] {
    background-color: #ffffff !important;
    color: #495057 !important;
    border-right: 2px solid #dee2e6;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Ensure links in sticky columns are visible in light mode */
.table tbody td[style*="position: sticky"] a {
    color: #0d6efd !important;
}

/* Ensure text-muted in sticky columns is visible */
.table tbody td[style*="position: sticky"] .text-muted {
    color: #6c757d !important;
}

/* Light mode hover state for sticky columns */
.table tbody tr:hover td[style*="position: sticky"] {
    background-color: #f8f9fa !important;
}

/* ========================================
   RTL MODE - TABLE STICKY COLUMNS
   ======================================== */

/* RTL mode sticky header column - stick to right instead of left */
[dir="rtl"] .table thead th[style*="position: sticky"],
html[dir="rtl"] .table thead th[style*="position: sticky"] {
    left: auto !important;
    right: 0 !important;
    border-right: none;
    border-left: 2px solid #dee2e6;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

/* RTL mode sticky body cells - stick to right instead of left */
[dir="rtl"] .table tbody td[style*="position: sticky"],
html[dir="rtl"] .table tbody td[style*="position: sticky"] {
    left: auto !important;
    right: 0 !important;
    border-right: none;
    border-left: 2px solid #dee2e6;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

/* ========================================
   DARK MODE - TABLE STICKY COLUMNS
   ======================================== */

/* Dark mode sticky header column */
body[data-layout-mode=dark] .table thead th[style*="position: sticky"] {
    background-color: #262e35 !important;
    color: #adb5bd !important;
    border-right: 2px solid #3a444e;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

body[data-layout-mode=dark] .table thead th.bg-light {
    background-color: #262e35 !important;
    color: #adb5bd !important;
}

/* Dark mode sticky body cells */
body[data-layout-mode=dark] .table tbody td[style*="position: sticky"] {
    background-color: #212529 !important;
    color: #adb5bd !important;
    border-right: 2px solid #3a444e;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

body[data-layout-mode=dark] .table tbody td.bg-body {
    background-color: #212529 !important;
    color: #adb5bd !important;
}

/* Dark mode for empty/not available cells */
body[data-layout-mode=dark] .table tbody td.bg-light {
    background-color: #30373f !important;
}

/* Ensure links in sticky columns are visible in dark mode */
body[data-layout-mode=dark] .table tbody td[style*="position: sticky"] a,
body[data-layout-mode=dark] .table tbody td.bg-body a {
    color: #74b9ff !important;
}

/* Ensure text-muted in sticky columns is visible */
body[data-layout-mode=dark] .table tbody td[style*="position: sticky"] .text-muted,
body[data-layout-mode=dark] .table tbody td.bg-body .text-muted {
    color: #858d98 !important;
}

/* Dark mode hover state for sticky columns */
body[data-layout-mode=dark] .table tbody tr:hover td[style*="position: sticky"],
body[data-layout-mode=dark] .table tbody tr:hover td.bg-body {
    background-color: #30373f !important;
}

/* ========================================
   RTL MODE + DARK MODE - TABLE STICKY COLUMNS
   ======================================== */

/* RTL + Dark mode sticky header column */
[dir="rtl"] body[data-layout-mode=dark] .table thead th[style*="position: sticky"],
html[dir="rtl"] body[data-layout-mode=dark] .table thead th[style*="position: sticky"],
body[data-layout-mode=dark] [dir="rtl"] .table thead th[style*="position: sticky"],
body[data-layout-mode=dark] html[dir="rtl"] .table thead th[style*="position: sticky"] {
    left: auto !important;
    right: 0 !important;
    border-right: none;
    border-left: 2px solid #3a444e;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
}

/* RTL + Dark mode sticky body cells */
[dir="rtl"] body[data-layout-mode=dark] .table tbody td[style*="position: sticky"],
html[dir="rtl"] body[data-layout-mode=dark] .table tbody td[style*="position: sticky"],
body[data-layout-mode=dark] [dir="rtl"] .table tbody td[style*="position: sticky"],
body[data-layout-mode=dark] html[dir="rtl"] .table tbody td[style*="position: sticky"] {
    left: auto !important;
    right: 0 !important;
    border-right: none;
    border-left: 2px solid #3a444e;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
}


/* ========================================
   CUSTOM TABS NAVIGATION STYLING
   ======================================== */

/* Light Mode - Custom Tabs */
.nav-tabs-custom {
    border-bottom: 1px solid #e9e9ef;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.5rem;
    overflow-x: auto;
    width: 100%;
}

.nav-tabs-custom .nav-item {
    position: relative;
    margin: 0 0.25rem;
}

.nav-tabs-custom .nav-item .nav-link {
    border: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    color: #495057;
    transition: all 0.3s;
    border-radius: 0.35rem;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-tabs-custom .nav-item .nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-tabs-custom .nav-item .nav-link.active {
    color: #fff;
    background: #556ee6;
    box-shadow: 0 2px 10px rgba(85, 110, 230, 0.25);
}

.nav-tabs-custom .nav-item .nav-link.active:after {
    display: none;
}

.nav-tabs-custom .nav-item .nav-link:hover:not(.active) {
    color: #556ee6;
    background-color: rgba(85, 110, 230, 0.08);
}

.nav-tabs-custom .nav-item .nav-link .badge {
    font-size: 10px;
    font-weight: 500;
    padding: 0.25em 0.5em;
    margin-left: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.nav-tabs-custom .nav-item .nav-link.active .badge {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Dark Mode - Custom Tabs */
body[data-layout-mode="dark"] .nav-tabs-custom {
    border-bottom: 1px solid #3d454d;
    background-color: #272e34;
}

body[data-layout-mode="dark"] .nav-tabs-custom .nav-item .nav-link {
    color: #adb5bd;
}

body[data-layout-mode="dark"] .nav-tabs-custom .nav-item .nav-link.active {
    color: #fff;
    background: #556ee6;
    box-shadow: 0 2px 10px rgba(85, 110, 230, 0.4);
}

body[data-layout-mode="dark"] .nav-tabs-custom .nav-item .nav-link:hover:not(.active) {
    color: #74b9ff;
    background-color: rgba(85, 110, 230, 0.15);
}

body[data-layout-mode="dark"] .nav-tabs-custom .nav-item .nav-link i {
    color: inherit;
}

body[data-layout-mode="dark"] .nav-tabs-custom .nav-item .nav-link .badge {
    background-color: rgba(255, 255, 255, 0.15);
}

body[data-layout-mode="dark"] .nav-tabs-custom .nav-item .nav-link.active .badge {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ========================================
   CARD HEADER STYLING
   ======================================== */

/* Light Mode - Card Header */
.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}

/* Dark Mode - Card Header */
body[data-layout-mode="dark"] .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #272e34;
    color: #adb5bd;
}

/* ========================================
   BOOTSTRAP NAV TABS DARK MODE
   ======================================== */

body[data-layout-mode="dark"] .nav-tabs {
    --bs-nav-tabs-link-active-color: #f8f9fa;
    --bs-nav-tabs-link-active-bg: #242a30;
    --bs-nav-tabs-link-active-border-color: #858d98 #858d98 transparent;
    border: none !important;
}

body[data-layout-mode="dark"] .nav-tabs .nav-link {
    color: #adb5bd;
}

body[data-layout-mode="dark"] .nav-tabs .nav-link:hover {
    color: #ecedee;
}

body[data-layout-mode="dark"] .nav-tabs .nav-link.active {
    color: #f8f9fa;
    background-color: #242a30;
}

/* ========================================
   GANTT CARD STYLING
   ======================================== */

/* Light Mode - Gantt Card */
.gantt-card .card-title {
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    color: #333;
}

.gantt-card .card-title i {
    margin-right: 10px;
    color: #556ee6;
    font-size: 1.4rem;
}

/* Dark Mode - Gantt Card */
body[data-layout-mode="dark"] .gantt-card {
    background-color: #272e34;
    border-color: #3d454d;
}

body[data-layout-mode="dark"] .gantt-card .card-title {
    color: #ecedee;
}

body[data-layout-mode="dark"] .gantt-card .card-title i {
    color: #74b9ff;
}

body[data-layout-mode="dark"] .gantt-card .card-body {
    background-color: #272e34;
    color: #adb5bd;
}

/* ========================================
   GANTT LEGEND STYLING
   ======================================== */

/* Light Mode - Gantt Legend */
.gantt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: rgba(248, 249, 250, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: #333;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Dark Mode - Gantt Legend */
body[data-layout-mode="dark"] .gantt-legend {
    background-color: rgba(39, 46, 52, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-layout-mode="dark"] .legend-item {
    background-color: rgba(48, 55, 63, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: #adb5bd;
}

body[data-layout-mode="dark"] .legend-color {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========================================
   AVATAR GROUP STYLING
   ======================================== */

/* Light Mode - Avatar Groups */
.spaced-avatars {
    display: flex;
    flex-wrap: nowrap;
}

.spaced-avatars .avatar-group-item {
    margin-right: 5px;
    position: relative;
    z-index: 1;
}

.spaced-avatars .avatar-group-item:hover {
    z-index: 2;
}

.avatar-xs {
    height: 24px;
    width: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-sm {
    height: 32px;
    width: 32px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Team Members Count */
.team-members-count {
    display: flex;
    align-items: center;
    margin-top: 7px;
}

.team-members-count .more-members {
    font-size: 17px;
    font-weight: 700;
    color: #6c757d;
    margin-left: 5px;
}

/* Dark Mode - Avatar Groups */
body[data-layout-mode="dark"] .avatar-xs {
    border: 2px solid #272e34!important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body[data-layout-mode="dark"] .avatar-sm {
    border: 2px solid #272e34!important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body[data-layout-mode="dark"] .team-members-count .more-members {
    color: #adb5bd;
}

/* Meeting Card Specific Avatar Styles */
.meeting-card .spaced-avatars {
    display: flex;
    flex-wrap: nowrap;
}

.meeting-card .spaced-avatars .avatar-group-item {
    margin-right: 5px;
    position: relative;
    z-index: 1;
}

.meeting-card .spaced-avatars .avatar-group-item:hover {
    z-index: 2;
}

.meeting-card .avatar-xs {
    height: 24px;
    width: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark Mode - Meeting Card Avatars */
body[data-layout-mode="dark"] .meeting-card .avatar-xs {
    border: 2px solid #272e34!important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Task Card Specific Avatar Styles */
.task-card .spaced-avatars {
    display: flex;
    flex-wrap: nowrap;
}

.task-card .spaced-avatars .avatar-group-item {
    margin-right: 5px;
    position: relative;
    z-index: 1;
}

.task-card .spaced-avatars .avatar-group-item:hover {
    z-index: 2;
}

.task-card .avatar-sm {
    height: 28px;
    width: 28px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark Mode - Task Card Avatars */
body[data-layout-mode="dark"] .task-card .avatar-sm {
    border: 2px solid #272e34!important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Team Members Preview */
.team-members-preview {
    display: flex;
    margin-top: 10px;
    align-items: center;
}

.team-members-preview .avatar-group {
    display: flex;
    flex-wrap: nowrap;
}

.team-members-preview .avatar-group-item {
    margin-right: -10px;
    position: relative;
    z-index: 1;
}

.team-members-preview .avatar-group-item:hover {
    z-index: 2;
}

.team-members-preview .avatar-sm {
    height: 32px;
    width: 32px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-members-preview .avatar-title {
    width: 32px;
    height: 32px;
    font-size: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark Mode - Team Members Preview */
body[data-layout-mode="dark"] .team-members-preview .avatar-sm {
    border: 2px solid #272e34!important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body[data-layout-mode="dark"] .team-members-preview .avatar-title {
    border: 2px solid #272e34 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body[data-layout-mode="dark"] .avatar-group .avatar-group-item {
    border: none !important;
}

body[data-layout-mode="dark"] .avatar-sm {
    border:none!important;
}

/* ========================================
   PROJECT WALL STYLING
   ======================================== */

/* Light Mode - Project Wall Container */
.project-wall-container {
    max-height: calc(100vh - 170px);
    display: flex;
    flex-direction: column;
}

/* Light Mode - Project Wall */
.project-wall {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.project-wall-header {
    padding: 1rem;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.project-wall-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    min-height: 0;
}

.project-wall-footer {
    padding: 1rem;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

/* Dark Mode - Project Wall */
body[data-layout-mode="dark"] .project-wall {
    background-color: #272e34 !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

body[data-layout-mode="dark"] .project-wall-header {
    background-color: #272e34 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-layout-mode="dark"] .project-wall-content {
    background-color: #272e34 !important;
}

body[data-layout-mode="dark"] .project-wall-footer {
    background-color: #272e34 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .project-wall-container {
        height: 500px;
        margin-bottom: 1.5rem;
    }
}

/* ========================================
   NOTE CARD STYLING
   ======================================== */

/* Light Mode - Note Card */
.note-card {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s;
}

/* Dark Mode - Note Card */
body[data-layout-mode="dark"] .note-card {
    background-color: #30373f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

body[data-layout-mode="dark"] .note-card .card-body {
    color: #adb5bd;
}

body[data-layout-mode="dark"] .note-card .text-muted {
    color: #6c757d !important;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CARD STYLING - ENHANCED VISIBILITY
   ======================================== */

/* Light Mode - Card borders for better visibility */
.card {
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.card:hover {
    border-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Light Mode - Meeting Card */
.meeting-card {
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.meeting-card:hover {
    border-color: rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Light Mode - Project Card */
.project-card {
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.project-card:hover {
    border-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Light Mode - Task Card */
.task-card {
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.task-card:hover {
    border-color: rgba(0, 0, 0, 0.2) !important;
    background-color: #f8f9fa !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Dark Mode - Card borders for better visibility */
body[data-layout-mode="dark"] .card {
    background-color: #272e34 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

body[data-layout-mode="dark"] .card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

body[data-layout-mode="dark"] .card .card-body {
    color: #adb5bd;
}

body[data-layout-mode="dark"] .card .card-title {
    color: #ecedee;
}

body[data-layout-mode="dark"] .card .text-muted {
    color: #6c757d !important;
}

/* Dark Mode - Meeting Card */
body[data-layout-mode="dark"] .meeting-card {
    background-color: #272e34 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

body[data-layout-mode="dark"] .meeting-card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

/* Dark Mode - Project Card */
body[data-layout-mode="dark"] .project-card {
    background-color: #272e34 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

body[data-layout-mode="dark"] .project-card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Dark Mode - Task Card */
body[data-layout-mode="dark"] .task-card {
    background-color: #272e34 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body[data-layout-mode="dark"] .task-card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background-color: #30373f !important;
}

/* Dark Mode - Card footer */
body[data-layout-mode="dark"] .card-footer {
    background-color: #30373f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================
   DARK MODE - FORM ELEMENTS & COMPONENTS
   ======================================== */

/* Active nav tab text color */
.nav-tabs-custom .nav-item .nav-link.active {
    color: whitesmoke !important;
}

/* Dropzone in dark mode */
body[data-layout-mode="dark"] .dropzone.dz-clickable {
    background: #2f3740 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body[data-layout-mode="dark"] .dropzone .dz-message {
    color: #adb5bd !important;
}

/* Search box in dark mode */
body[data-layout-mode="dark"] .search-box input {
    background: #2f3740 !important;
    color: whitesmoke !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body[data-layout-mode="dark"] .search-box input::placeholder {
    color: #6c757d !important;
}

/* ========================================
   DARK MODE - SELECT2 COMPREHENSIVE STYLING
   ======================================== */

/* Select2 - Main container and selections */
body[data-layout-mode="dark"] .select2-container--default .select2-selection--single,
body[data-layout-mode="dark"] .select2-container--default .select2-selection--multiple {
    background-color: #2f3740 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: whitesmoke !important;
}

/* Select2 - Selected items text */
body[data-layout-mode="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
body[data-layout-mode="dark"] .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: whitesmoke !important;
}

/* Select2 - Dropdown results container */
body[data-layout-mode="dark"] .select2-container--default .select2-results__option {
    background-color: #2f3740 !important;
    color: whitesmoke !important;
}

/* Select2 - Highlighted/hovered option */
body[data-layout-mode="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
body[data-layout-mode="dark"] .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #556ee6 !important;
    color: white !important;
}

/* Select2 - Selected option */
body[data-layout-mode="dark"] .select2-container--default .select2-results__option[aria-selected="true"],
body[data-layout-mode="dark"] .select2-container--default .select2-results__option--selected {
    background-color: #30373f !important;
    color: #74b9ff !important;
}

/* Select2 - Dropdown background */
body[data-layout-mode="dark"] .select2-dropdown {
    background-color: #2f3740 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Select2 - Search field */
body[data-layout-mode="dark"] .select2-search--dropdown .select2-search__field {
    background-color: #272e34 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: whitesmoke !important;
}

/* Select2 - Tags/Choices (multi-select) */
body[data-layout-mode="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #556ee6 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: white !important;
}

/* Select2 - Remove button for tags */
body[data-layout-mode="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
}

body[data-layout-mode="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ff6b6b !important;
}

/* ========================================
   TASK WALL STYLING
   ======================================== */

/* Light Mode - Task Wall Container */
.task-wall-container {
    max-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
}

.task-wall {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.task-wall-header {
    padding: 1rem;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.task-wall-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    min-height: 0;
}

.task-wall-footer {
    padding: 1rem;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

/* Dark Mode - Task Wall */
body[data-layout-mode="dark"] .task-wall {
    background-color: #272e34;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

body[data-layout-mode="dark"] .task-wall-header {
    background-color: #272e34;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-layout-mode="dark"] .task-wall-content {
    background-color: #272e34;
}

body[data-layout-mode="dark"] .task-wall-footer {
    background-color: #272e34;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================
   NOTE ELEMENTS STYLING
   ======================================== */

/* Note Header */
.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.note-author {
    display: flex;
    align-items: center;
}

.note-content {
    color: #495057;
}

.note-content p {
    margin-bottom: 0;
}

/* Dark Mode - Note Content */
body[data-layout-mode="dark"] .note-content {
    color: #adb5bd;
}

body[data-layout-mode="dark"] .note-header {
    color: #ecedee;
}

/* Note Input Container */
.note-input-container {
    display: flex;
    align-items: flex-end;
    position: relative;
}

.note-input-container textarea {
    border-radius: 1rem;
    resize: none;
    padding-right: 3.5rem;
    width: 100%;
}

/* Dark Mode - Note Input */
body[data-layout-mode="dark"] .note-input-container textarea {
    background-color: #2f3740;
    border-color: rgba(255, 255, 255, 0.12);
    color: whitesmoke;
}

body[data-layout-mode="dark"] .note-input-container textarea::placeholder {
    color: #6c757d;
}

body[data-layout-mode="dark"] .note-input-container textarea:focus {
    background-color: #30373f;
    border-color: #556ee6;
    color: whitesmoke;
}

/* Note Submit Button - Integrated Design */
.note-submit-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0 1rem 1rem 0 !important;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.note-submit-btn i {
    font-size: 1.1rem;
}

/* ========================================
   EMPTY STATE STYLING
   ======================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6c757d;
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Dark Mode - Empty State */
body[data-layout-mode="dark"] .empty-state {
    color: #6c757d;
}

body[data-layout-mode="dark"] .empty-state-icon {
    opacity: 0.3;
}

/* ========================================
   WALL NOTIFICATION STYLING
   ======================================== */

.wall-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    z-index: 1050;
    display: flex;
    align-items: center;
    max-width: 350px;
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
}

.wall-notification.show {
    transform: translateX(0);
}

.wall-notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    background-color: #556ee6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.wall-notification-content {
    flex: 1;
}

.wall-notification-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.wall-notification-message {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Dark Mode - Wall Notification */
body[data-layout-mode="dark"] .wall-notification {
    background-color: #272e34;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body[data-layout-mode="dark"] .wall-notification-title {
    color: #ecedee;
}

body[data-layout-mode="dark"] .wall-notification-message {
    color: #adb5bd;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .task-wall-container {
        height: 500px;
        margin-bottom: 1.5rem;
    }
}

