@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");
/* ============================================= */
/*               CSS RESET & BASE STYLES         */
/* ============================================= */
:root {
  --primary: #202B5C;
  --secondary: #811744;
  --accent: #d4af37;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --gold: #d4af37;
  --silver: #c0c0c0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --luxury-gold: #d4af37;
  --luxury-dark: #1a1a2e;
  --card-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
  --text-primary: #333;
  --text-secondary: #555;
  --background: #f9fafb;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--background);
  height: 100%;
  width: 100%;
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================= */
/*               LAYOUT STRUCTURE                */
/* ============================================= */
.page {
  position: relative;
  display: block;
  margin-top: 70px;
  padding: 1px;
  transition: all 0.3s;
  min-height: calc(100vh - 120px);
  background-color: var(--background);
}

.col-md-12 {
  position: relative;
  min-height: 2px;
  padding-right: 1px;
  padding-left: 1px;
}

.panel-body {
  padding: 20px;
  height: auto;
}


/* ============================================= */
/*               HEADER STYLES                   */
/* ============================================= */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: var(--white);
  color: var(--text-primary);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  height: 70px;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-left, .header-right {
  display: flex;
  align-items: center;
}

.header-date {
  color: var(--text-secondary);
  font-size: 14px;
  margin-left: 280px;
  font-weight: 500;
}

/* Logo Styles */
header > .logo {
  color: var(--primary);
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  width: 250px;
  background-color: var(--white);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-right: 1px solid var(--light-gray);
}

/* ============================================= */
/*               NAVIGATION MENU                 */
/* ============================================= */
.info-menu {
  height: 70px;
  margin: 0;
  padding: 0 15px;
  display: flex;
  align-items: center;
  margin-left: auto;
  list-style: none;
}

.info-menu > li {
  margin-left: 15px;
  position: relative;
}

.info-menu li.profile {
  position: relative;
  margin-right: 10px;
}

.info-menu li.profile a.toggle {
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding: 8px 15px;
  margin: 0;
  background: var(--light-gray);
  border-radius: 30px;
  transition: var(--transition);
}

.info-menu li.profile a.toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

.info-menu li.profile a img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 8px;
  border: 2px solid var(--light-gray);
}

/* ============================================= */
/*               DROPDOWN MENUS                  */
/* ============================================= */
.dropdown-menu {
  position: absolute;
  right: 0;
  left: auto;
  margin-top: 5px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 0;
  min-width: 200px;
  z-index: 1001;
}

.dropdown-menu li a {
  padding: 10px 20px;
  color: var(--text-primary);
  font-weight: 500;
  border-bottom: 1px solid var(--light-gray);
  transition: var(--transition);
  display: block;
  font-size: 14px;
}

.dropdown-menu li a:hover {
  background-color: var(--light);
  color: var(--primary);
}

.dropdown-menu li a i {
  margin-right: 10px;
  color: var(--gray);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

/* Organization Dropdown */
.organization > a {
  color: var(--text-primary);
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 30px;
  background: var(--light-gray);
  transition: var(--transition);
  font-size: 14px;
}

.organization > a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Organization Selector */
.header-org-selector {
  margin-right: 15px;
  position: relative;
  display: inline-block;
}

.header-org-selector .toggle {
  color: var(--text-primary);
  display: inline-block;
  border-radius: 10px;
  transition: all 0.3s;
}

.header-org-selector .toggle:hover {
  background: var(--light-gray);
  text-decoration: none;
}

.header-org-selector .dropdown-toggle {
  color: var(--text-primary);
  padding: 8px 15px;
  background: var(--light-gray);
  border-radius: 4px;
  display: inline-block;
  font-size: 14px;
}

.header-org-selector .dropdown-menu li a {
  padding: 8px 15px;
  color: var(--text-primary);
  display: block;
  transition: all 0.2s;
}

.header-org-selector .dropdown-menu li a:hover {
  background: var(--light);
  color: var(--primary);
}

.header-org-selector .dropdown-menu .divider {
  height: 1px;
  margin: 5px 0;
  overflow: hidden;
  background-color: var(--light-gray);
}

/* Notification Menu */
.notifications-menu .dropdown-menu {
  width: 320px;
  padding: 0;
  position: absolute;
  right: 0;
  left: auto;
  margin-top: 5px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid var(--light-gray);
}

.notifications-menu .header {
  padding: 12px 15px;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  font-weight: bold;
  color: var(--primary);
}

.notifications-menu .menu {
  max-height: 300px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
}

.notifications-menu .menu li a {
  display: block;
  padding: 12px 15px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--light-gray);
}

.notifications-menu .menu li a:hover {
  background: var(--light);
  text-decoration: none;
}

.notifications-menu .footer {
  text-align: center;
  padding: 10px;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
}

.notifications-menu .footer a {
  color: var(--primary);
  font-weight: 500;
}

.notification-item {
  display: flex;
  align-items: flex-start;
}

.notification-icon {
  margin-right: 10px;
  font-size: 16px;
  color: var(--secondary);
}

.notification-content {
  flex: 1;
}

.notification-content p {
  margin: 0 0 5px 0;
  font-size: 14px;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 11px;
  padding: 3px 6px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  font-weight: bold;
}

.large-bell-icon {
  font-size: 20px;
  vertical-align: middle;
  color: var(--secondary);
}

/* Enhanced Notification Banner */
.notification-banner {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 12px 15px;
  z-index: 999;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: none;
  font-size: 14px;
}

.notification-marquee {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 15s linear infinite;
  font-weight: 500;
}

.notification-marquee:hover {
  animation-play-state: paused;
}

.notification-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================================= */
/*               SIDEBAR STYLES                  */
/* ============================================= */
.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  bottom: 0;
  width: 280px;
  background: var(--white);
  color: var(--text-primary);
  overflow-y: auto;
  transition: all 0.3s ease;
  z-index: 1100;
  box-shadow: 2px 0 10px rgba(0,0,0,0.05);
  border-right: 1px solid var(--light-gray);
  scrollbar-width: thin;
  scrollbar-color: var(--silver) var(--white);
}

.sidebar.active {
  left: 0;
}

.sidebar-logo {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid var(--light-gray);
  background: var(--white);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1200;
  transition: background 0.3s ease;
}

.sidebar-scrollable {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 70px);
}

.sidebar-logo img {
  max-width: 180px;
  height: 150%;
  object-fit: contain;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 15px 0;
}

.sidebar ul li {
  display: block;
  position: relative;
}

.sidebar ul li:hover {
  background-color: var(--light);
}

.sidebar ul li a {
  color: var(--secondary);
  padding: 12px 25px;
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.sidebar ul li a:hover {
  color: var(--primary);
  background-color: var(--light-gray);
}

.sidebar ul li i {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: var(--secondary);
}

.submenu {
  display: none;
  background-color: var(--light);
}

.submenu li a {
  padding-left: 45px !important;
  font-size: 13px;
}

.submenu li a:hover {
  background-color: var(--light) !important;
  color: var(--primary) !important;
}

/* Organization dropdown in sidebar */
.sidebar-org-selector {
  padding: 15px;
  border-bottom: 1px solid var(--light-gray);
}

.sidebar-org-selector .dropdown-toggle {
  color: var(--text-primary);
  display: block;
  padding: 10px 15px;
  background: var(--light);
  border-radius: var(--border-radius);
  font-size: 14px;
}

.sidebar-org-selector .dropdown-menu {
  position: static;
  float: none;
  width: 100%;
  margin-top: 5px;
  background: var(--white);
  border: 1px solid var(--light-gray);
}

.sidebar-org-selector .dropdown-menu li a {
  color: var(--text-primary);
}

.sidebar-org-selector .dropdown-menu li a:hover {
  background: var(--light);
}

/* Overlay when sidebar is open */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1050;
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 24px;
  cursor: pointer;
  margin-right: 15px;
}

ul > li > a .icon {
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}
ul > li > a .title {
  vertical-align: middle;
}
.submenu li a .bi {
  margin-right: 7px;
  font-size: 18px;
  vertical-align: middle;
}
/* Sidebar submenu styles for dropdowns */
ul .submenu {
  display: none;
  padding-left: 1px;
  background: rgba(255, 255, 255, 0.13);
}
ul li.open > .submenu {
  display: block;
}
ul li.dropdown > a .sidebar-caret {
  transition: transform 0.2s;
}
ul li.open > a .sidebar-caret i {
  transform: rotate(180deg);
}
ul li.active-sidebar-item > a,
ul li > a.active,
ul li > a:focus {
  background: rgba(180, 17, 85, 0.3); /* Sidebar color, low opacity */
  color: var(--primary);
  font-weight: bold;
  border-radius: 6px;
}
ul li > a:hover {
  background: rgba(129, 23, 67, 0.518); /* Sidebar color, lower opacity on hover */
  color: var(--primary);
}
/* Ensure caret always visible for dropdowns */
ul li.dropdown > a .sidebar-caret {
  display: inline-block;
}
/* Highlight open dropdown and active item */
ul li.open > a,
ul li.open > a:focus,
ul li.open > a:hover {
  background: rgba(129, 23, 68, 0.11);
  color: var(--primary);
}


/* ============================================= */
/*               CARDS & PANELS                  */
/* ============================================= */
.panel {
  margin-bottom: 25px;
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.panel:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.panel-default > .panel-heading {
  background-color: var(--white);
  border-bottom: 1px solid var(--light-gray);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 20px;
  font-weight: 600;
  color: var(--primary);
}

.panel-box {
  display: flex;
  align-items: center;
  text-align: center;
  border: none;
  height: 100%;
}

.panel-icon {
  padding: 25px;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  transition: var(--transition);
}

.panel-value {
  padding: 20px;
  flex: 1;
}

.panel-value h2 {
  margin: 10px 0 5px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.panel-value p {
  color: var(--gray);
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================= */
/*               BUTTON STYLES                   */
/* ============================================= */
.btn {
  border-radius: var(--border-radius);
  padding: 10px 20px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: var(--transition);
  border: none;
  font-size: 14px;
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #1a2352;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #6e1339;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-success:hover {
  background-color: #218838;
  color: white;
}

.btn-default {
  color: #000;
  background-color: #e0e0e0;
}

.btn-warning {
  background-color: var(--warning);
  color: #000;
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-blue {
  display: inline-block;
  margin: 20px auto;
  width: auto;
  padding: 12px 25px;
  font-size: 14px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--border-radius);
  text-align: center;
}

.btn-blue:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

/* ============================================= */
/*               FORM STYLES                     */
/* ============================================= */
.form-control {
  color: var(--text-primary);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 10px 15px;
  box-shadow: none;
  transition: var(--transition);
  height: auto;
  font-size: 14px;
}

.form-control:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(32, 43, 92, 0.1);
}

/* Select2 Styling */
.select2-container {
  width: 100% !important;
}

.custom-select2-height {
  min-height: 40px !important;
  height: 40px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  font-size: 14px !important;
}

.select2-container--default .select2-selection--single.custom-select2-height,
.select2-container--default .select2-selection--single.custom-select2-height .select2-selection__rendered {
  min-height: 40px !important;
  height: 40px !important;
  line-height: 24px !important;
  font-size: 14px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.select2-container--default .select2-selection--single {
  min-height: 40px !important;
  height: 40px !important;
  line-height: 24px !important;
  font-size: 14px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  margin-bottom: 0;
}

.switch input { display: none; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* ============================================= */
/*               TABLE STYLES                   */
/* ============================================= */
.table-striped {
  background-color: var(--white);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(32, 43, 92, 0.03);
}

.table th {
  color: var(--white);
  border-color: var(--primary);
}

.table thead {
  background: var(--primary);
}

.table td, .table th {
  padding: 12px 15px;
  vertical-align: middle;
  font-size: 14px;
}

/* Table Container with Fixed Header */
.table-container {
  position: relative;
  overflow: auto;
  max-height: 400px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
  scrollbar-color: var(--silver) var(--white);
}

.table-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* Fixed Header Implementation */
.table-container thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--primary);
  color: var(--white);
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Table Body Styles */
.table-container tbody {
  overflow-y: auto;
}

.table-container tbody tr {
  transition: var(--transition);
}

.table-container tbody tr:hover {
  background-color: rgba(32, 43, 92, 0.05);
}

/* Add shadow and styling for table rows */
.table tbody tr {
  margin-bottom: 5px;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}

.table tbody tr:hover {
  transform: scale(1.005);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Table Cell Styles */
.table-container td {
  padding: 12px 15px;
  vertical-align: middle;
  border-bottom: 1px solid var(--light-gray);
  background-color: var(--white);
}

/* Striped Rows */
.table-container.table-striped tbody tr:nth-of-type(odd) td {
  background-color: rgba(129, 23, 68, 0.03);
}

/* Responsive Table Wrapper */
.table-responsive-custom {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--light-gray);
  min-height: 300px;
  border-radius: var(--border-radius);
}

.table-responsive-custom table {
  width: 100%;
  min-width: 800px;
  margin-bottom: 0;
}

.table-responsive-wrapper {
  overflow-x: auto;
  width: 100%;
}

/* Add CSS to improve the responsiveness of the attribute section on mobile screens */
@media (max-width: 768px) {
    #attributesSection .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #attributesSection table {
        width: 100%;
        min-width: 600px; /* Ensure table doesn't shrink too much */
    }

    #attributesSection td, #attributesSection th {
        white-space: nowrap;
    }
}
/* ============================================= */
/*               DASHBOARD STYLES                */
/* ============================================= */
.dashboard-container {
  padding: 25px;
  background-color: var(--background);
  min-height: calc(100vh - 120px);
  display: flex;
  gap: 20px;
  padding-bottom: 50px;
  max-width: 1800px;
  margin: 0 auto;
}

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-sidebar {
  width: 350px;
  min-width: 350px;
}

.org-selector-container {
  margin-bottom: 2rem;
}

.org-selector-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--primary);
}

.org-selector-card h3 {
  margin-top: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.org-selector {
  width: 100%;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  background-color: var(--white);
  font-size: 14px;
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  transition: all 0.3s ease;
}

.org-selector:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(32, 43, 92, 0.1);
}

.stats-overview {
  margin-bottom: 1.5rem;
}

.stats-header {
  margin-bottom: 1.5rem;
}

.stats-header h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  border-top: 4px solid transparent;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 15px;
  color: white;
}

.user-card {
  border-top-color: var(--primary);
}

.user-card .card-icon {
  background: var(--primary);
}

.org-card {
  border-top-color: var(--secondary);
}

.org-card .card-icon {
  background: var(--secondary);
}

.asset-card {
  border-top-color:#e8b7cc;
}

.asset-card .card-icon {
  background: #e8b7cc;
}

.location-card {
  border-top-color:#5551b794;
}

.location-card .card-icon {
  background:#5551b794;
}

.building-card {
  border-top-color: var(--gold);
}

.building-card .card-icon {
  background: var(--gold);
}

.card-content h3 {
  font-size: 28px;
  margin: 0.5rem 0;
  color: var(--primary);
  font-weight: 700;
}

.card-content p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}

.card-footer {
  margin-top: 15px;
  background-color: var(--light);
  padding: 10px 15px;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: flex-start;
  color: var(--primary);
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 13px;
}

.stat-card:hover .card-footer {
  color: var(--secondary);
}

.card-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover .card-highlight {
  opacity: 1;
}

/* Recent Activity */
.recent-activity {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.activity-header {
  margin-bottom: 1.5rem;
}

.activity-header h2 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}

.activity-timeline {
  position: relative;
  padding-left: 30px;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -30px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(32, 43, 92, 0.1);
}

.timeline-content {
  padding: 12px 15px;
  background: var(--light);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary);
}

.timeline-content p {
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.timeline-time {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Middle Section */
.middle-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dashboard-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  border: 1px solid var(--light-gray);
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--light-gray);
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-body {
  padding: 20px;
}

.completion-card .chart-container {
  height: 200px;
  margin-bottom: 15px;
}

.progress-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.progress-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: var(--light);
  border-radius: var(--border-radius);
}

.stat-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-bottom: 5px;
}

.stat-color.total {
  background: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.stat-value {
  font-weight: bold;
  font-size: 24px;
  margin-top: 5px;
  color: var(--primary);
}

/* Quick Actions */
.quick-actions-card .card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.quick-action {
  display: flex;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  background: var(--light);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--light-gray);
  transform: translateY(-3px);
  color: var(--primary);
}

.action-btn i {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary);
}

.action-btn span {
  font-size: 14px;
  text-align: center;
}

/* Activity Sidebar */
.activity-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--light-gray);
}

.activity-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--light-gray);
}

.activity-controls button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.activity-controls button:hover {
  color: var(--primary);
  transform: rotate(180deg);
}

.activity-controls button.fa-spin {
  transform: rotate(0deg) !important;
}

.activity-list-container {
  flex: 1;
  overflow-y: auto;
  max-height: 500px;
   scrollbar-width: thin;
  scrollbar-color: var(--silver) var(--white);
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
 
}

.activity-item {
  border-bottom: 1px solid var(--light-gray);
  transition: background 0.2s ease;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item:hover {
  background: var(--light);
}

.activity-icon {
  width: 40px;
  padding: 10px;
  text-align: center;
  color: var(--text-secondary);
}

.activity-details {
  padding: 10px;
}

.activity-user {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.activity-org {
  font-size: 13px;
  color: var(--text-secondary);
}

.activity-action {
  font-size: 13px;
  color: var(--text-primary);
  margin-top: 3px;
}

.activity-time {
  padding: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  text-align: right;
}

.no-activity {
  padding: 30px;
  text-align: center;
  color: var(--text-secondary);
}

.no-activity i {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary);
}

.view-all-link {
  display: block;
  text-align: center;
  padding: 15px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  border-top: 1px solid var(--light-gray);
}

.view-all-link:hover {
  color: var(--secondary);
}

/* ============================================= */
/*               UTILITY CLASSES                 */
/* ============================================= */
.padding-top {
  padding-top: 30px;
}

.bg-green { background-color: #A3C86D; }
.bg-brown { background-color: var(--secondary); }
.bg-blue { background-color: #7ACBEE; }
.bg-yellow { background-color: #FDD761; }
.bg-red { background-color: #41001b; }
.bg-lightblue { background-color: #51aded; }
.bg-secondary1 { background-color: #000b3a; }
.bg-blue2 { background-color: #0c1aa0; }
.bg-brownLight { background-color: #81174459; }

/* Luxury Accents */
.luxury-accent {
  position: relative;
}

.luxury-accent:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated {
  animation: fadeIn 0.6s ease forwards;
}

/* ============================================= */
/*               PAGE SPECIFIC STYLES            */
/* ============================================= */

.login-page .text-center {
  margin-bottom: 30px;
}

.login-page h2 {
  color: #d4af37 !important;
  font-weight: 700;
  margin-bottom: 30px;
}
 
  
  /* Responsive styles for login page */
  .login-page {
    max-width: 500px;
    width: 90%;
    margin: 1% auto;
    padding: 20px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
  }
  
  .login-header {
    text-align: center;
    margin-bottom: 25px;
  }
  
  .login-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
  }
  
  .login-tagline {
    font-size: clamp(1.7rem, 3vw, 1.5rem);
    color: #666;
    margin: 0;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: clamp(1.5rem, 2.5vw, 1rem);
  }
  
  .form-control {
    width: 100%;
    padding: 10px;
    font-size: clamp(1.5rem, 2.5vw, 1rem);
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  .btn-primary {
    background: linear-gradient(135deg,rgba(116, 23, 60, 0.968) 0%,rgba(27, 49, 103, 0.963) 100%);
    color: var(--white);
  }

  .btn-primary:hover {
    background-color: #811744;
    color: var(--white);
  }
  
  @media (min-width: 768px) {
    .login-page {
      margin: 1% auto;
      padding: 30px;
    }
    
    .login-logo {
      max-width: 120px;
    }
    
    .form-control {
      padding: 12px;
    }
  }

/* Asset Page */
.asset-img-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  margin-right: 5px;
}

.highlight-row {
  background-color: rgba(129, 23, 68, 0.05) !important;
  transition: background-color 0.3s ease;
}

/* Modal Styles */
.modal {
  text-align: center;
  padding: 0!important;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  display: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  background: rgba(0,0,0,0.5);
}

.modal:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -4px;
}

.modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
  height: 100%;
  flex-direction: column;
  justify-content: center;
}

.modal-content {
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.modal-body {
  background-color: var(--white);
  position: relative;
  padding: 20px;
  overflow-y: auto;
  max-height: 65vh;
}

.modal-footer .btn {
  padding: 10px 20px;
  font-size: 14px;
  margin-top: 5px;
}

/* Asset Details */
.asset-details {
  font-size: 14px;
  line-height: 1.4;
}

.asset-detail-line {
  display: flex;
  margin-bottom: 10px;
}

.asset-detail-label {
  font-weight: bold;
  min-width: 120px;
  display: inline-block;
  color: var(--primary);
}

.asset-detail-value {
  flex: 1;
  color: var(--text-primary);
}

.compact-line {
  display: inline-block;
  margin-right: 15px;
}

/* Location Page */
.location-details {
  margin-top: 5px;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-item {
  display: flex;
  margin-bottom: 5px;
  align-items: center;
}

.detail-item i {
  margin-right: 5px;
  width: 15px;
  text-align: center;
  color: var(--secondary);
}

.location-row:hover {
  cursor: pointer;
  background-color: var(--light) !important;
}

.location-desc-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Classification Page */
#classification-table tr.classification-row:hover {
  background: var(--light) !important;
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#classification-table tr.classification-row.selected {
  background: rgba(32, 43, 92, 0.05) !important;
}

#classification-table td, #classification-table th {
  vertical-align: middle !important;
}

/* Job Plan Page */
.countdown-display h2 {
  font-size: 40px;
  color: var(--primary);
  margin: 10px 0;
  text-align: center;
}

.status-box {
  padding: 20px;
  border-radius: var(--border-radius);
  background-color: var(--light);
  height: 100%;
}

.status-In-Progress {
  color: var(--primary);
}

.status-Completed {
  color: var(--success);
}

.status-Not-Started {
  color: var(--warning);
}

.progress-section {
  background-color: var(--light);
  padding: 15px;
  border-radius: var(--border-radius);
}

.progress-bar span {
  color: var(--text-primary);
  font-weight: bold;
}

/* QA Assets Page */
.asset-row {
  border: 1px solid var(--light-gray);
  margin-bottom: 15px;
  padding: 15px;
  border-radius: var(--border-radius);
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--white);
}

.asset-row div {
  flex: 1 1 45%;
  margin-bottom: 10px;
}

.asset-row img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  margin-right: 10px;
}

.asset-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.save-all-btn {
  float: right;
  margin-top: -5px;
  margin-right: -5px;
}

/* Edit Account Page */
.profile-photo-container {
  position: relative;
  margin: 0 auto 15px;
  width: 150px;
}

.profile-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--light-gray);
  transition: all 0.3s;
}

.profile-photo-label {
  cursor: pointer;
  display: block;
}

.profile-photo-label:hover .profile-photo {
  border-color: var(--primary);
}

.edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.profile-photo-label:hover .edit-overlay {
  opacity: 1;
}

#file_upload {
  display: none;
}

.profile-photo.uploading {
  opacity: 0.7;
  position: relative;
}

.profile-photo.uploading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

.glyphicon.spinning {
  animation: spin 1s infinite linear;
}

#photoPreview {
  transition: all 0.3s;
}

/* Autocomplete */
.ui-autocomplete {
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  font-size: 14px;
  z-index: 9999 !important;
  box-shadow: var(--shadow);
  margin-top: 2px;
}

.ui-menu-item-wrapper {
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  font-size: 14px;
}

.ui-menu-item-wrapper.ui-state-active,
.ui-menu-item-wrapper:hover {
  background: var(--secondary) !important;
  color: #fff !important;
}

.ui-menu-item-wrapper:active {
  background: var(--primary) !important;
  color: #fff !important;
}

input.ui-autocomplete-input {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  font-size: 14px;
  padding: 10px 15px;
  transition: border-color 0.2s;
}

input.ui-autocomplete-input:focus {
  border-color: var(--primary);
  outline: none;
}

.ui-autocomplete {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--light);
}

.ui-autocomplete::-webkit-scrollbar {
  width: 8px;
  background: var(--light);
}

.ui-autocomplete::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* ============================================= */
/*               FOOTER STYLES                   */
/* ============================================= */
footer {
  height: 50px;
  background-color: var(--white);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--light-gray);
  font-size: 14px;
  z-index: 100;
}

/* ============================================= */
/*               RESPONSIVE STYLES               */
/* ============================================= */
@media (max-width: 1200px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .dashboard-sidebar {
    width: 100%;
    min-width: auto;
  }
  
  .middle-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .header-date {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .sidebar {
    left: -280px;
  }
  
  .sidebar.active {
    left: 0;
  }
  
  .sidebar-overlay {
    display: block;
  }
  
  .sidebar.active ~ .sidebar-overlay {
    display: block;
  }
  
  .page {
    margin-left: 0 !important;
    transform: none !important;
  }
  
  .header-org-selector {
    display: none;
  }
  
  /* Move organization selector to sidebar */
  .sidebar-org-selector {
    display: block !important;
  }
  
  .login-page {
    width: 90%;
    padding: 30px;
  }
  
  .panel-box {
    flex-direction: column;
  }
  
  .panel-icon {
    width: 100%;
  }
  
  .panel-value {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .quick-actions-card .card-body {
    grid-template-columns: 1fr;
  }
  
  .table-container {
    max-height: 300px;
  }
  
  .table-container th,
  .table-container td {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  /* Mobile-specific styles */
  .table-container {
    max-height: 60vh !important;
    overflow-y: auto;
    display: block;
  }
  
  .asset-detail-line {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;
  }
  
  .asset-detail-label, .asset-detail-value {
    white-space: nowrap;
    margin-right: 5px;
  }
}

@media (min-width: 769px) {
  .sidebar {
    left: 0;
  }
  
  .sidebar-overlay {
    display: none !important;
  }
  
  .page {
    margin-left: 280px;
  }
}

@media (max-width: 576px) {
  .info-menu > li {
    margin-left: 8px;
  }
  
  .sidebar {
    width: 260px;
  }
  
  .sidebar.active ~ .page {
    transform: translateX(260px);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-container {
    padding: 15px;
  }
  
  .modal-body {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  #header {
    padding: 10px 15px;
  }
  
  .login-page {
    width: 95%;
    padding: 20px;
  }
  
  .btn {
    padding: 8px 15px;
    font-size: 13px;
  }
}