﻿/* Landlord dashboard specific styles */
.imo-dashboard__stat { background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; padding:12px; }
.imo-dashboard__stat-title { font-size:12px; color:#64748b; text-transform:uppercase; letter-spacing:.08em; }
.imo-dashboard__stat-value { font-size:28px; font-weight:700; color:#0f172a; margin-top:6px; }

/* Dashboard Container */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: #0039a6;
  background: linear-gradient(180deg, #0a3cc9 0%, #003192 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1100;
  transition: transform 0.3s ease;
  overflow-y: auto;
  will-change: transform;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sidebar-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-section {
  padding: 24px 0 0;
  width: 100%;
}

.sidebar-section__title {
  margin: 0;
  padding: 0 24px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.sidebar-section__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0;
  list-style: none;
  margin-top: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-item.active .nav-link {
  background: #fff;
  color: #ffffff;
  font-weight: 600;
  width: 100%;
  color: #0133a0 !important;
}

.nav-link:hover,
.nav-item.active .nav-link i{
  color: #0133a0 !important;
}

.nav-link i {
  width: 20px;
  text-align: center;
}

.submenu {
  background: #0f172a;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-item.has-submenu.active .submenu {
  max-height: 300px;
}

.submenu-item .submenu-link {
  padding: 12px 24px 12px 56px;
  font-size: 14px;
}

.submenu-item.active .submenu-link {
  background: #1e40af;
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-footer .nav-link {
  padding: 18px 24px;
}

.submenu-arrow {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.nav-item.has-submenu.active .submenu-arrow {
  transform: rotate(180deg);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  background: #ffffff;
  min-height: 100vh;
  transition: margin-left 300ms ease-in-out;
}

/* Desktop sidebar collapse */
@media (min-width: 768px) {
  body.sidebar-collapsed .sidebar {
    transform: translateX(-100%) !important;
  }
  
  body.sidebar-collapsed .main-content {
    margin-left: 0 !important;
  }
}

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.page-subtitle {
  margin: 4px 0 0 0;
  color: #64748b;
  font-size: 14px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 12px;
  color: #94a3b8;
}

.search-box input {
  padding: 8px 12px 8px 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  width: 300px;
  font-size: 14px;
}

.search-box input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.dropdown-trigger:hover {
  background: #f1f5f9;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  z-index: 1000;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-header {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.dropdown-body {
  padding: 8px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background: #f8fafc;
}

.dropdown-footer {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Notifications */
.notifications {
  position: relative;
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  color: #64748b;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.notification-btn:hover {
  background: #f1f5f9;
  color: #374151;
}

.notification-btn[aria-expanded="true"] {
  background: #f1f5f9;
  color: #374151;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 360px;
  max-width: 400px;
  max-height: 500px;
  z-index: 1000;
  display: none;
  overflow: hidden;
  flex-direction: column;
}

.notifications.dropdown.active .notification-dropdown,
.notification-dropdown.show {
  display: flex !important;
}

.notification-dropdown .dropdown-header {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.notification-dropdown .dropdown-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.notification-dropdown .mark-all-read-btn {
  background: none;
  border: none;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.notification-dropdown .mark-all-read-btn:hover {
  background: #f1f5f9;
}

.notification-dropdown .dropdown-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
  max-height: 400px;
}

.notification-loading,
.notification-empty,
.notification-error {
  padding: 24px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.notification-loading i {
  margin-right: 8px;
  color: #3b82f6;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  outline: none;
  position: relative;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background: #f8fafc;
  transform: translateX(2px);
}

.notification-item:focus {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
  background: #f0f9ff;
}

.notification-item:active {
  background: #e0f2fe;
  transform: translateX(0);
}

.notification-item.unread {
  background: #fef3c7;
}

.notification-item.unread:hover {
  background: #fde68a;
}

.notification-item.unread:focus {
  background: #fde68a;
}

.notification-item.read {
  background: #ffffff;
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: #f1f5f9;
}

.notification-item.unread .notification-icon {
  background: #fef3c7;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.notification-title {
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
  font-size: 14px;
  line-height: 1.4;
}

.notification-text {
  color: #6b7280;
  margin: 0 0 4px 0;
  font-size: 13px;
  line-height: 1.4;
}

.notification-time {
  color: #9ca3af;
  font-size: 11px;
  display: block;
  margin-top: 4px;
}

.notification-dropdown .dropdown-footer {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  flex-shrink: 0;
}

.notification-dropdown .view-all-notifications {
  color: #3b82f6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.notification-dropdown .view-all-notifications:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Notifications Page Styles */
.notifications-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.notifications-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.notifications-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.mark-all-read-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.notifications-page-content {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.notifications-list-page {
  display: flex;
  flex-direction: column;
}

.notification-item-page {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.notification-item-page:last-child {
  border-bottom: none;
}

.notification-item-page:hover {
  background-color: #f9fafb;
  transform: translateX(2px);
}

.notification-item-page:focus {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
  background-color: #f0f9ff;
}

.notification-item-page:active {
  background-color: #e0f2fe;
  transform: translateX(0);
}

.notification-item-page.unread {
  background-color: #eff6ff;
  border-left: 4px solid #3b82f6;
}

.notification-item-page.unread:hover {
  background-color: #dbeafe;
  border-left-color: #2563eb;
}

.notification-item-page.unread:focus {
  background-color: #dbeafe;
  border-left-color: #2563eb;
}

.notification-icon-page {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #6b7280;
}

.notification-item-page.unread .notification-icon-page {
  background-color: #dbeafe;
  color: #3b82f6;
}

.notification-icon-page i {
  font-size: 1.25rem;
}

.notification-content-page {
  flex: 1;
  min-width: 0;
}

.notification-link-page {
  display: block;
  text-decoration: none;
  color: inherit;
}

.notification-title-page {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.notification-message-page {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.notification-time-page {
  font-size: 0.75rem;
  color: #9ca3af;
}

.notification-unread-indicator {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #3b82f6;
  margin-top: 0.75rem;
}

.notifications-empty-page {
  text-align: center;
  padding: 4rem 2rem;
  color: #9ca3af;
}

.notifications-empty-page i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.notifications-empty-page p {
  font-size: 1.125rem;
  margin: 0;
}

/* Profile */
.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.profile-btn:hover {
  background: #f1f5f9;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-details h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.profile-details p {
  margin: 2px 0 0 0;
  font-size: 14px;
  color: #6b7280;
}

.profile-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.profile-status.online {
  background: #d1fae5;
  color: #065f46;
}

/* Form Styles - Profile Form Style */
.add-property-section {
  margin: 0 auto;
}

.node-properties-form, .node-properties-edit-form {
  width: 100%;
  display: flex;
    flex-direction: column;
    gap: 20px;
    /* display: grid;
    grid-template-columns: 1fr 1fr; */
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Form Cards - Profile Style */
.form-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  animation: fadeInUp 0.5s ease;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 !important;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title svg {
  color: #0133a0;
  flex-shrink: 0;
}

/* Form Rows and Groups - Profile Style */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Form Elements - Profile Style */
.form-group label,
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea,
.form-input,
.form-text,
.form-number,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  color: #1f2937;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-input:focus,
.form-text:focus,
.form-number:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #0133a0;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:disabled,
.form-group select:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Required Field Indicator */
.form-required {
  color: #ef4444;
  font-weight: 700;
  margin-left: 4px;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

/* Field Descriptions */
.description {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.5;
}

/* Error Messages - Profile Style */
.form-item--error-message,
.error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-item--error input,
.form-item--error select {
  border-color: #ef4444;
}

.messages.error {
  background-color: #fee2e2;
  border-left: 4px solid #ef4444;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #991b1b;
}

.messages.status {
  background-color: #d1fae5;
  border-left: 4px solid #10b981;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #065f46;
}

/* File Upload - Profile Style */
.form-type-managed-file,
.image-upload-area {
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  background: #f9fafb;
}

.form-type-managed-file:hover,
.image-upload-area:hover,
.image-upload-area.drag-over {
  border-color: #0133a0;
  background-color: #f9fafb;
}

.image-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background: #f9fafb;
}

.image-preview {
  max-width: 200px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

.upload-placeholder i {
  font-size: 48px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.upload-placeholder p {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #374151;
  font-weight: 500;
}

.upload-hint {
  font-size: 14px;
  color: #6b7280;
}

.uploaded-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.uploaded-image-preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.uploaded-image-preview img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

/* Form Actions - Profile Style */
.form-actions {
  display: flex;
  gap: 16px;
  padding-top: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 24px;
}

.form-actions button,
.form-actions input[type="submit"],
.form-actions .btn,
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.form-actions input[type="submit"],
.form-actions button[type="submit"],
.button--primary,
.btn-primary {
  background: #0133a0;
  color: #ffffff;
}

.form-actions input[type="submit"]:hover,
.form-actions button[type="submit"]:hover,
.button--primary:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary,
.button:not(.button--primary) {
  background: #ffffff;
  color: #0133a0;
  border: 2px solid #0133a0 !important;
}

.btn-secondary:hover,
.button:not(.button--primary):hover {
  opacity: 0.9;
}

.sidebar .nav-menu {
    align-items: flex-start;
}

.sidebar .nav-menu ul {
    width: 100%;
    padding: 0 24px;
}

.sidebar .nav-menu .nav-item.has-submenu.active .submenu {
    width: auto;
}

.main-content {
    background-color: #f8fafc;
}
.properties-controls .form-group {
    margin-bottom: 0px;
}
.properties-controls .price-range-btn {
    padding: 13px 17px;
}
.search-properties input {
    padding-left: 45px !important;
}

.dropdown-menu.show
 {
    display: block;
    opacity: 1;
    visibility: visible;
}

.add-properties .profile-avatar {
    width: 100px;
    height: 100px;
  }
.add-properties .default-avatar {
        width: 100px;
        height: 100px;
  }
/* Responsive Design - Profile Style */
@media (max-width: 1024px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-overlay {
    display: block;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .header {
    padding: 16px 20px;
  }
  
  .search-box input {
    width: 200px;
  }
  
  .add-property-section {
    padding: 0 0 40px 0;
  }
  
  .form-card {
    padding: 24px;
  }
  
  .card-title {
    font-size: 18px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button,
  .form-actions input[type="submit"],
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-right {
    gap: 12px;
  }
  
  .search-box {
    display: none;
  }
  
  .add-property-section {
    padding: 0 0 32px 0;
  }
  
  .form-card {
    padding: 20px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 14px;
    font-size: 14px;
  }
}
.add-property-section {
    background-color: transparent !important;
}

/* Animation - Profile Style */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.text-success { color: #059669 !important; }
.text-warning { color: #d97706 !important; }
.text-danger { color: #dc2626 !important; }

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-block {
  width: 100%;
}

/* File Upload Help */
.description {
  font-size: 12px;
  color: #6b7280;
  margin-top: 15px;
}

.add-property-section .form-actions input[type="submit"]:hover {
    background: #0133a0 !important;
}

/* Vertical Tabs */
.vertical-tabs {
  margin: 20px 0;
}

.vertical-tabs__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e2e8f0;
}

.vertical-tabs__menu-item {
  display: inline-block;
  margin: 0;
}

.vertical-tabs__menu-item a {
  display: block;
  padding: 12px 16px;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.vertical-tabs__menu-item.is-selected a {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.vertical-tabs__pane {
  padding: 20px 0;
}

/* Image Widget */
.image-widget {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 16px;
  background: #f9fafb;
}

.form-file {
  margin-bottom: 12px;
}

.js-hide {
  display: none !important;
}

/* Accessibility - Profile Style */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Loading State - Profile Style */
.form-actions button.is-loading,
.form-actions input.is-loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.form-actions button.is-loading::after {
  content: "...";
  margin-left: 4px;
}

/* Property Detail Page Styles */
.property-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.property-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.property-status-badge i {
  font-size: 8px;
}

.property-status-badge.available {
  background: #d1fae5;
  color: #065f46;
}

.property-status-badge.occupied {
  background: #fee2e2;
  color: #991b1b;
}

.property-status-badge.maintenance {
  background: #fef3c7;
  color: #92400e;
}

.property-status-badge.pending {
  background: #e0e7ff;
  color: #3730a3;
}

.property-actions-inline {
  display: flex;
  gap: 12px;
}

.property-main-image {
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.property-main-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

.property-rent-display {
  font-size: 28px;
  font-weight: 700;
  color: #059669;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.property-rent-display .rent-period {
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
}

.property-info-value {
  font-size: 18px;
  font-weight: 500;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-info-value i {
  color: #0133a0;
  font-size: 16px;
}

.property-description-text {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5563;
}

.breadcrumb-content {
  margin-top: 12px;
}

.breadcrumb-content h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-btn:hover {
  color: #374151;
}

.back-btn i {
  font-size: 14px;
}

/* Property Detail Responsive */
@media (max-width: 768px) {
  .property-header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .property-actions-inline {
    width: 100%;
  }
  
  .property-actions-inline .btn {
    flex: 1;
  }
  
  .property-rent-display {
    font-size: 24px;
  }
  
  .property-info-value {
    font-size: 16px;
  }
}

/* Properties Section */
.properties-section {
  padding: 32px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.property-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.property-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: border-color 0.25s ease;
  pointer-events: none;
}

.property-card:hover,
.property-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.property-card:hover::after,
.property-card:focus-within::after {
  border-color: rgba(29, 78, 216, 0.35);
}

.property-image {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.4) 100%);
  position: relative;
  height: 198px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.property-card:hover .property-image img,
.property-card:focus-within .property-image img {
  transform: scale(1.05);
}

.property-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.property-card:hover .property-image::before,
.property-card:focus-within .property-image::before {
  opacity: 1;
}

.property-status {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.property-status.available {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.property-status.assigned {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.property-status.pending {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.property-status.maintenance {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.property-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.property-card:hover .property-actions,
.property-card:focus-within .property-actions {
  opacity: 1;
  transform: translateY(0);
}

.property-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.property-action-btn:hover,
.property-action-btn:focus-visible {
  transform: translateY(-2px) scale(1.05);
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.property-action-btn:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.4);
  outline-offset: 2px;
}

.property-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
  gap: 16px;
}

.property-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-title {
  margin: 0;
  font-size: 20px;
  line-height: 34px;
  font-weight: 700;
  color: #1d4ed8;
  line-height: 1.4;
}

.property-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
}

.property-location i {
  color: #1d4ed8;
}

.property-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-amount {
  font-size: 22px;
  font-weight: 700;
  color: #1d4ed8;
}

.price-period {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  text-transform: lowercase;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.property-features .feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  color: #475569;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.property-features .feature i {
  color: #1d4ed8;
  font-size: 14px;
}

.property-features .feature:hover {
  background: rgba(29, 78, 216, 0.12);
  border-color: rgba(29, 78, 216, 0.35);
  color: #1d4ed8;
}

.property-actions-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.property-actions-bottom .btn {
  flex: 1 1 140px;
  justify-content: center;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.property-actions-bottom .btn:hover {
  transform: translateY(-2px);
}

.property-actions-bottom .btn:disabled,
.property-actions-bottom .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .property-image {
    height: 200px;
  }

  .property-content {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .properties-section {
    padding: 24px;
  }

  .property-card {
    border-radius: 16px;
  }

  .property-image {
    height: 190px;
  }

  .property-content {
    padding: 18px;
  }

.iom-pagination--enhanced {
  padding: 24px 32px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: center;
}

.iom-pagination__wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.iom-pagination__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #0133a0;
  background: #ffffff;
  border: 2px solid #0133a0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 100px;
  justify-content: center;
}

.iom-pagination__button:hover:not(.iom-pagination__button--disabled) {
  background: #0133a0;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 51, 160, 0.3);
}

.iom-pagination__button--disabled {
  color: #cbd5e1;
  border-color: #e2e8f0;
  background: #f1f5f9;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.iom-pagination__button i {
  font-size: 12px;
}

.iom-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 8px;
}

.iom-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.iom-pagination__page:hover {
  background: #f8fafc;
  border-color: #0133a0;
  color: #0133a0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(1, 51, 160, 0.15);
}

.iom-pagination__page--active {
  background: linear-gradient(135deg, #0133a0 0%, #015dd1 100%);
  color: #ffffff;
  border-color: #0133a0;
  box-shadow: 0 4px 12px rgba(1, 51, 160, 0.25);
  cursor: default;
  pointer-events: none;
}

.iom-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  user-select: none;
}

@media (max-width: 768px) {
  .iom-pagination--enhanced {
    padding: 20px 16px;
  }

  .iom-pagination__wrapper {
    gap: 6px;
  }

  .iom-pagination__button {
    padding: 8px 14px;
    font-size: 13px;
    min-width: 80px;
  }

  .iom-pagination__page {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  .iom-pagination__ellipsis {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

/* Views pager alignment for properties view */
.properties-view__pager {
  padding: 24px 32px;
  justify-content: center;
}

.properties-view__pager .pager__items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.properties-view__pager .pager__item {
  margin: 0;
}

.properties-view__pager .pager__item a,
.properties-view__pager .pager__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.properties-view__pager .pager__item a:hover {
  background: #f8fafc;
  border-color: #0133a0;
  color: #0133a0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(1, 51, 160, 0.15);
}

.properties-view__pager .pager__item.is-active span {
  background: linear-gradient(135deg, #0133a0 0%, #015dd1 100%);
  color: #ffffff;
  border-color: #0133a0;
  box-shadow: 0 4px 12px rgba(1, 51, 160, 0.25);
}

.properties-view__pager .pager__item--previous a,
.properties-view__pager .pager__item--next a {
  min-width: 100px;
}

.properties-view__pager .pager__item--disabled span {
  color: #cbd5e1;
  border-color: #e2e8f0;
  background: #f1f5f9;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .properties-view__pager {
    padding: 20px 16px;
  }

  .properties-view__pager .pager__items {
    gap: 6px;
  }

  .properties-view__pager .pager__item a,
  .properties-view__pager .pager__item span {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  .properties-view__pager .pager__item--previous a,
  .properties-view__pager .pager__item--next a {
    min-width: 80px;
  }
}

  .property-actions-bottom {
    flex-direction: column;
  }

  .property-actions-bottom .btn {
    width: 100%;
  }
}

/* Additional Dashboard Styles */
.sidebar-toggle {
  display: none;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .sidebar-overlay {
    display: block;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
}

/* User Profile Styles - Enhanced Design */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px;
  background: #0133a0 !important;
  color: #ffffff;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0 !important;
}

.profile-header-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.profile-header-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.profile-avatar {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.profile-avatar img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.default-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.default-avatar svg {
  width: 70px;
  height: 70px;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.profile-header-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.profile-name {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.profile-email {
  font-size: 18px;
  margin: 0 0 20px 0;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.profile-email::before {
  content: '\f0e0';
  font-family: 'Font Awesome 6 Free';
  font-weight: 400;
  font-size: 16px;
  opacity: 0.9;
}

.profile-roles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  text-transform: capitalize;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.role-badge::before {
  content: '\f521';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 13px;
}

.profile-details-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease;
}

.profile-details-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.detail-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #0133a0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-item:hover {
  background: #ffffff;
  border-color: #0133a0;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.detail-item:hover::before {
  opacity: 1;
}

.detail-item--full-width {
  grid-column: 1 / -1;
}

.detail-label {
  font-size: 12px;
  font-weight: 800;
  color: #0133a0;
  /* text-transform: uppercase; */
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.detail-value {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  word-break: break-word;
  position: relative;
  z-index: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge::before {
  content: '\f111';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-badge.status-active {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 2px solid #10b981;
}

.status-badge.status-blocked {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 2px solid #ef4444;
}

/* Profile Responsive */
@media (max-width: 1024px) {
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .profile-header-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  
  .profile-name {
    font-size: 28px;
  }
  
  .profile-email {
    justify-content: center;
    font-size: 16px;
  }
  
  .profile-roles {
    justify-content: center;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-item {
    padding: 16px;
  }
  
  .detail-value {
    font-size: 16px;
  }
}

/* ========================================
   Users List Section Styles
   ======================================== */

.users-list-section {
  padding: 24px;
}

/* Exposed form styling */
.users-list-section .views-exposed-form {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.users-list-section .views-exposed-form .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.users-list-section .views-exposed-form .form-actions {
  margin-bottom: 0;
}

.users-list-section .views-exposed-form .form-submit {
  padding: 12px 32px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.users-list-section .views-exposed-form .form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Bulk actions form styling */
.users-list-section .views-form {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.users-list-section .views-form > div[id^="edit-header"] {
  background: #f8fafc;
  padding: 20px 24px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  gap: 16px;
  align-items: center;
}

.users-list-section .views-form > div[id^="edit-header"] .form-group {
  margin-bottom: 0;
  flex: 1;
  max-width: 300px;
}

.users-list-section .views-form > div[id^="edit-header"] .form-actions {
  margin-bottom: 0;
}

.users-list-section .views-form .form-submit {
  padding: 12px 24px;
  background: linear-gradient(135deg, #0133a0 0%, #0133a0 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(1, 51, 160, 0.2);
}

.users-list-section .views-form .form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 51, 160, 0.4);
}

.users-list-section .views-element-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.users-list-section table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.users-list-section thead {
  background: #0033A0 !important;
}

.users-list-section thead th {
  padding: 18px 24px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  background: #0033A0 !important;
}

.users-list-section thead th a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.users-list-section thead th a:hover {
  color: #bfdbfe;
}

/* Sort indicator styling */
.users-list-section .tablesort {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

/* Checkbox column */
.users-list-section thead .select-all {
  width: 50px;
  text-align: center;
}

.users-list-section tbody .views-field-user-bulk-form {
  width: 50px;
  text-align: center;
  padding: 16px 12px;
}

/* Checkbox styling */
.users-list-section input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2563eb;
}

.users-list-section thead input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.users-list-section tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.users-list-section tbody tr:nth-child(even) {
  background: #f9fafb;
}

.users-list-section tbody tr:last-child {
  border-bottom: none;
}

.users-list-section tbody tr:hover {
  background: #f9fafb;
  transform: translateX(4px);
}

.users-list-section tbody td {
  padding: 16px 24px;
  font-size: 14px;
  color: #1f2937;
  border: none;
  vertical-align: middle;
}

/* Username column styling */
.users-list-section tbody .views-field-name {
  font-weight: 700;
  font-size: 15px;
}

.users-list-section .views-field-name a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.users-list-section .views-field-name a:hover {
  color: #2563eb;
  gap: 12px;
}

.users-list-section .views-field-name a::before {
  content: '\f007';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 16px;
  color: #60a5fa;
  background: #eff6ff;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.users-list-section .views-field-name a:hover::before {
  background: #dbeafe;
  transform: scale(1.1);
}

.users-list-section .views-field-name span {
  font-weight: 600;
  color: #111827;
}

/* Dropbutton Styling */
.users-list-section .dropbutton-wrapper {
  display: inline-block;
}

.users-list-section .dropbutton {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
}

.users-list-section .dropbutton li {
  display: inline-block;
}

.users-list-section .dropbutton a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #0133a0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.users-list-section .dropbutton a:hover {
  background: #0133a0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

.users-list-section .dropbutton a::before {
  content: '\f044';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 12px;
}

/* View Detail Link Styling */
.users-list-section .views-field-view-user a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  text-transform: capitalize;
}

.users-list-section .views-field-view-user a:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.users-list-section .views-field-view-user a::before {
  content: '\f06e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 13px;
}

/* Full Name Column Styling (Body only) */
.users-list-section tbody .views-field-field-last-name {
  font-weight: 600;
  color: #111827;
  font-size: 15px;
}

/* Email Column Styling (Body only) */
.users-list-section tbody .views-field-mail {
  color: #374151;
  font-weight: 700;
  font-size: 14px;
}

/* Role Column Styling (Body only) */
.users-list-section tbody .views-field-roles-target-id {
  font-weight: 500;
  color: #374151;
}

.users-list-section tbody .views-field-roles-target-id ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.users-list-section tbody .views-field-roles-target-id li {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid #93c5fd;
  text-transform: capitalize;
}

/* Role-specific badge colors */
.users-list-section tbody .views-field-roles-target-id li.role-administrator {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-color: #fcd34d;
}

.users-list-section tbody .views-field-roles-target-id li.role-iom {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #6b21a8;
  border-color: #c084fc;
}

.users-list-section tbody .views-field-roles-target-id li.role-imo {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  color: #9f1239;
  border-color: #f9a8d4;
}

.users-list-section tbody .views-field-roles-target-id li.role-case-worker {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  border-color: #86efac;
}

.users-list-section tbody .views-field-roles-target-id li.role-beneficiary {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #9a3412;
  border-color: #fdba74;
}

.users-list-section tbody .views-field-roles-target-id li.role-landlord {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  color: #134e4a;
  border-color: #5eead4;
}

/* Status Column Styling with Icons */
.users-list-section tbody .views-field-status {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.users-list-section tbody .views-field-status:before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Active Status - Green with animated icon */
.users-list-section tbody .views-field-status.status-active {
  color: #16a34a;
}

.users-list-section tbody .views-field-status.status-active:before {
  content: '\f058';
  color: #16a34a;
  background: #dcfce7;
  border: 2px solid #86efac;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  }
  50% { 
    opacity: 0.9; 
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0);
  }
}

/* Blocked/Inactive Status - Red with icon */
.users-list-section tbody .views-field-status.status-blocked {
  color: #dc2626;
}

.users-list-section tbody .views-field-status.status-blocked:before {
  content: '\f057';
  color: #dc2626;
  background: #fee2e2;
  border: 2px solid #fca5a5;
}

/* Pending Status - Yellow/Amber with clock icon */
.users-list-section tbody .views-field-status.status-pending {
  color: #f59e0b;
}

.users-list-section tbody .views-field-status.status-pending:before {
  content: '\f017';
  color: #f59e0b;
  background: #fef3c7;
  border: 2px solid #fcd34d;
  animation: pulse-yellow 2s ease-in-out infinite;
}

@keyframes pulse-yellow {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.85; 
    transform: scale(1.05);
  }
}

/* Suspended Status - Orange with warning icon */
.users-list-section tbody .views-field-status.status-suspended {
  color: #ea580c;
}

.users-list-section tbody .views-field-status.status-suspended:before {
  content: '\f071';
  color: #ea580c;
  background: #ffedd5;
  border: 2px solid #fdba74;
}

/* Actions Column Styling (Body only) */
.users-list-section tbody .views-field-operations,
.users-list-section tbody .views-field-view-user {
  text-align: center;
  white-space: nowrap;
}

/* Empty State */
.users-list-section .view-empty {
  padding: 48px 24px;
  text-align: center;
  color: #6b7280;
  font-size: 16px;
}

/* Pagination */
.users-list-section .views-mini-pager {
  padding: 16px 24px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========================================
   Property Assignment Modal Styles
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 24px 24px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.modal-body {
  padding: 0 24px 24px 24px;
}

.assignment-form .form-group {
  margin-bottom: 20px;
}

.assignment-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.assignment-form select,
.assignment-form input[type="date"],
.assignment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #ffffff;
}

.assignment-form select:focus,
.assignment-form input[type="date"]:focus,
.assignment-form textarea:focus {
  outline: none;
  border-color: #0133a0;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.assignment-form textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-footer {
  padding: 0 24px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-footer .btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.modal-footer .btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.modal-footer .btn-secondary:hover {
  background: #e5e7eb;
}

.modal-footer .btn-primary {
  background: #0133a0;
  color: #ffffff;
}

.modal-footer .btn-primary:hover {
  background: #0133a0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* User Edit Section */
.user-edit-section {
  margin-left: 20px !important;
}

.user-edit-form .form-actions .btn-secondary {
  padding: 7px 20px !important;
}

/* User Edit Form - Roles Checkboxes Styling */
.user-edit-form .form-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
}

.user-edit-form .form-checkboxes .form-item {
  margin: 0;
  padding: 0;
  position: relative;
}

.user-edit-form .form-checkboxes input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.user-edit-form .form-checkboxes label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  position: relative;
  min-height: 60px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-edit-form .form-checkboxes label::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-edit-form .form-checkboxes label::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 24px;
  font-size: 12px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.user-edit-form .form-checkboxes input[type="checkbox"]:checked + label {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #3b82f6;
  color: #1e40af;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.user-edit-form .form-checkboxes input[type="checkbox"]:checked + label::before {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #2563eb;
}

.user-edit-form .form-checkboxes input[type="checkbox"]:checked + label::after {
  opacity: 1;
  transform: scale(1);
}

.user-edit-form .form-checkboxes label:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* When role checkbox is checked */
.user-edit-form .form-checkboxes input[type="checkbox"]:checked + label::after {
  left: 28px;
}

/* Full width form group */
.form-group.full-width {
  grid-column: 1 / -1;
}

/* Status field styling - Simple clean radio buttons */
.user-edit-form #edit-status--wrapper {
  margin-bottom: 16px !important;
}

.user-edit-form #edit-status--wrapper .fieldset-legend {
  display: block !important;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  margin-bottom: 12px;
  padding: 0;
}

.user-edit-form #edit-status {
  display: flex !important;
  gap: 24px;
  padding: 8px 0;
  background: transparent;
  border: none;
}

.user-edit-form #edit-status .form-item {
  margin: 0;
  display: flex;
  align-items: center;
}

.user-edit-form #edit-status input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #2563eb;
}

.user-edit-form #edit-status label {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #374151;
  transition: color 0.2s ease;
  box-shadow: none;
  min-height: auto;
}

.user-edit-form #edit-status label:hover {
  color: #111827;
}

/* Active status - Green when selected */
.user-edit-form #edit-status input[type="radio"][value="1"]:checked + label {
  color: #16a34a;
  font-weight: 700;
}

/* Blocked status - Red when selected */
.user-edit-form #edit-status input[type="radio"][value="0"]:checked + label {
  color: #dc2626;
  font-weight: 700;
}

/* ========================================
   Content List Section Styles
   ======================================== */

.content-list-section {
  padding: 24px;
}

/* Exposed form styling */
.content-list-section .views-exposed-form {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.content-list-section .views-exposed-form .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.content-list-section .views-exposed-form .form-actions {
  margin-bottom: 0;
}

.content-list-section .views-exposed-form .form-submit {
  padding: 12px 32px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.content-list-section .views-exposed-form .form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Bulk actions form styling */
.content-list-section .views-form {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.content-list-section .views-form > div[id^="edit-header"] {
  background: #f8fafc;
  padding: 20px 24px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  gap: 16px;
  align-items: center;
}

.content-list-section .views-form > div[id^="edit-header"] .form-group {
  margin-bottom: 0;
  flex: 1;
  max-width: 400px;
}

.content-list-section .views-form > div[id^="edit-header"] .form-actions {
  margin-bottom: 0;
}

.content-list-section .views-form .form-submit {
  padding: 12px 24px;
  background: linear-gradient(135deg, #0133a0 0%, #667eea 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(1, 51, 160, 0.2);
}

.content-list-section .views-form .form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 51, 160, 0.4);
}

/* Table styling */
.content-list-section table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.content-list-section thead {
  background: #0033A0 !important;
}

.content-list-section thead th {
  background: #0033A0 !important;
  padding: 18px 24px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
}

.content-list-section thead th a {
  color: #ffffff !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-list-section thead th a:hover {
  color: #bfdbfe;
}

.content-list-section .tablesort {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

/* Checkbox column */
.content-list-section thead .select-all {
  width: 50px;
  text-align: center;
}

.content-list-section tbody .views-field-node-bulk-form {
  width: 50px;
  text-align: center;
  padding: 16px 12px;
}

.content-list-section input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2563eb;
}

.content-list-section thead input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.content-list-section tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.content-list-section tbody tr:nth-child(even) {
  background: #f9fafb;
}

.content-list-section tbody tr:last-child {
  border-bottom: none;
}

.content-list-section tbody tr:hover {
  background: #f1f5f9;
  transform: translateX(4px);
}

.content-list-section tbody td {
  padding: 16px 24px;
  font-size: 14px;
  color: #1f2937;
  border: none;
  vertical-align: middle;
}

/* Title column styling */
.content-list-section .views-field-title a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  font-size: 15px;
}

.content-list-section .views-field-title a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Content type column */
.content-list-section .views-field-type {
  font-weight: 600;
  color: #374151;
}

/* Author column */
.content-list-section .views-field-name a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.content-list-section .views-field-name a:hover {
  color: #111827;
  text-decoration: underline;
}

/* Status column with colors */
.content-list-section .views-field-status {
  font-weight: 700;
  font-size: 13px;
}

/* Published - Green */
.content-list-section tbody td:contains("Published") {
  color: #16a34a;
}

/* Unpublished - Red */
.content-list-section tbody td:contains("Unpublished") {
  color: #dc2626;
}

/* Updated/Date column */
.content-list-section .views-field-changed {
  font-size: 13px;
  color: #6b7280;
}

/* Operations column */
.content-list-section .dropbutton-wrapper {
  display: inline-block;
}

.content-list-section .dropbutton {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-list-section .dropbutton li {
  display: inline-block;
}

.content-list-section .dropbutton a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.content-list-section .dropbutton a:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.content-list-section .dropbutton .secondary-action a {
  background: #ef4444;
}

.content-list-section .dropbutton .secondary-action a:hover {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.content-list-section .dropbutton-toggle button {
  padding: 8px 12px;
  background: #f3f4f6;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.content-list-section .dropbutton-toggle button:hover {
  background: #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
  .content-list-section {
    padding: 16px;
  }
  
  .content-list-section .views-exposed-form {
    flex-direction: column;
  }
  
  .content-list-section .views-exposed-form .form-group {
    min-width: 100%;
  }
  
  .users-list-section {
    padding: 16px;
  }
  
  .users-list-section thead th,
  .users-list-section tbody td {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .users-list-section .dropbutton a {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .modal-container {
    width: 95%;
    margin: 20px;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .user-edit-form .form-checkboxes {
    grid-template-columns: 1fr;
  }
  
  .user-edit-form #edit-status {
    flex-direction: column;
  }
}

/* ============================================
   REPORTS & ANALYTICS STYLING
   ============================================ */

/* Reports Dashboard Section */
.reports-dashboard-section {
  padding: 0;
}

.reports-container {
  max-width: 100%;
  margin: 0 auto;
}

/* Reports Stats Grid */
.reports-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.report-stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.report-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 28px;
}

.stat-details {
  flex: 1;
}

.stat-title {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  line-height: 1;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
}

.stat-change.positive {
  color: #16a34a;
  background: #dcfce7;
}

.stat-change.negative {
  color: #dc2626;
  background: #fee2e2;
}

.stat-change i {
  font-size: 12px;
}

/* Report Categories Grid */
.report-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.report-category-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.report-category-card:hover {
  transform: translateX(8px);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.report-category-card:hover .category-arrow {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon i {
  font-size: 24px;
  color: #1e40af;
}

.category-content {
  flex: 1;
}

.category-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px 0;
}

.category-content p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.category-arrow {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.category-arrow i {
  font-size: 16px;
  color: #6b7280;
}

/* Reports Additional Content */
.reports-additional-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

/* Status Report Section */
.status-report-section .status-report-content {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.status-report-content .system-status-report {
  margin: 0;
}

.status-report-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.status-report-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
}

.status-report-content table tr {
  border-bottom: 1px solid #e5e7eb;
}

.status-report-content table tr:last-child {
  border-bottom: none;
}

.status-report-content table th,
.status-report-content table td {
  padding: 16px;
  text-align: left;
}

.status-report-content table th {
  background: #0033A0 !important;
  font-weight: 600;
  color: #111827;
  background: #f9fafb;
}

.status-report-content table td {
  color: #4b5563;
}

/* System Logs Section */
.system-logs-section .system-logs-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.system-logs-content .view-filters {
  padding: 24px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.system-logs-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.system-logs-content table thead {
  background: #0033A0 !important;
}

.system-logs-content table thead th {
  background: #0033A0 !important;
  padding: 16px;
  text-align: left;
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.system-logs-content table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

.system-logs-content table tbody tr:hover {
  background: #f9fafb;
}

.system-logs-content table tbody td {
  padding: 16px;
  color: #4b5563;
  font-size: 14px;
}

.system-logs-content .dblog-severity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.system-logs-content .severity-error {
  background: #fee2e2;
  color: #dc2626;
}

.system-logs-content .severity-warning {
  background: #fef3c7;
  color: #92400e;
}

.system-logs-content .severity-notice {
  background: #dbeafe;
  color: #1e40af;
}

.system-logs-content .severity-info {
  background: #dcfce7;
  color: #16a34a;
}

/* Updates Report Section */
.updates-report-section .updates-report-content {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.updates-report-content .update-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  margin-bottom: 20px;
}

.updates-report-content .update-status.up-to-date {
  background: #dcfce7;
  color: #16a34a;
  border: 2px solid #bbf7d0;
}

.updates-report-content .update-status.updates-available {
  background: #fef3c7;
  color: #92400e;
  border: 2px solid #fde68a;
}

.updates-report-content .update-status.security-updates {
  background: #fee2e2;
  color: #dc2626;
  border: 2px solid #fecaca;
}

/* Report Charts Container */
.reports-charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.report-chart-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.report-chart-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.chart-wrapper {
  position: relative;
  height: 300px;
}

/* Field List Section */
.field-list-section .field-list-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.field-list-content .view-filters {
  padding: 24px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.field-list-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.field-list-content table thead {
  background: #0033A0 !important;
}

.field-list-content table thead th {
  background: #0033A0 !important;
  padding: 16px;
  text-align: left;
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.field-list-content table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

.field-list-content table tbody tr:hover {
  background: #f9fafb;
}

.field-list-content table tbody td {
  padding: 16px;
  color: #4b5563;
  font-size: 14px;
}

/* Error Report Sections (403, 404) */
.error-report-section .error-report-content {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.error-report-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
}

.error-report-content table thead {
  background: #0033A0 !important;
}

.error-report-content table thead th {
  background: #0033A0 !important;
  padding: 16px;
  text-align: left;
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.error-report-content table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

.error-report-content table tbody tr:hover {
  background: #fef2f2;
}

.error-report-content table tbody td {
  padding: 16px;
  color: #4b5563;
  font-size: 14px;
}

.error-report-content .error-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  min-width: 50px;
}

/* Search Report Section */
.search-report-section .search-report-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.search-report-content .view-filters {
  padding: 24px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.search-report-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.search-report-content table thead {
  background: #0033A0 !important;
}

.search-report-content table thead th {
  background: #0033A0 !important;
  padding: 16px;
  text-align: left;
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.search-report-content table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

.search-report-content table tbody tr:hover {
  background: #f0fdf4;
}

.search-report-content table tbody td {
  padding: 16px;
  color: #4b5563;
  font-size: 14px;
}

.search-report-content .search-phrase {
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-report-content .search-phrase i {
  color: #16a34a;
  font-size: 16px;
}

.search-report-content .search-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #16a34a;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  min-width: 50px;
}

/* Hide default Drupal content */
.hidden {
  display: none !important;
}

/* ============================================
   ADD CONTENT PAGE STYLING
   ============================================ */

/* Add Content Section */
.add-content-section {
  padding: 0;
}

.content-types-container {
  max-width: 100%;
  margin: 0 auto;
}

/* Content Types Grid */
.content-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.content-type-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.content-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.content-type-card:hover::before {
  transform: scaleX(1);
}

.content-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
}

.content-type-card:hover .content-type-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.content-type-card:hover .content-type-icon i {
  color: white;
}

.content-type-card:hover .add-button {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  transform: scale(1.05);
}

/* Content Type Icon */
.content-type-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.content-type-icon i {
  font-size: 36px;
  color: #1e40af;
  transition: all 0.3s ease;
}

.content-type-icon.page-icon {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.content-type-icon.page-icon i {
  color: #16a34a;
}

.content-type-icon.property-icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.content-type-icon.property-icon i {
  color: #92400e;
}

/* Content Type Details */
.content-type-details {
  flex: 1;
}

.content-type-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.content-type-description {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.content-type-description strong {
  color: #374151;
  font-weight: 600;
}

/* Add Button */
.content-type-action {
  margin-top: auto;
}

.add-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f3f4f6;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.add-button i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.content-type-card:hover .add-button i {
  transform: rotate(90deg);
}

/* Add Content Info Box */
.add-content-info-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 2px solid #bfdbfe;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.add-content-info-box .info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.add-content-info-box .info-icon i {
  font-size: 24px;
  color: white;
}

.add-content-info-box .info-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1e40af;
  margin: 0 0 8px 0;
}

.add-content-info-box .info-content p {
  font-size: 14px;
  color: #1e40af;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design for Add Content */
@media (max-width: 1024px) {
  .content-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .content-types-grid {
    grid-template-columns: 1fr;
  }
  
  .content-type-card {
    padding: 24px;
  }
  
  .content-type-icon {
    width: 64px;
    height: 64px;
  }
  
  .content-type-icon i {
    font-size: 28px;
  }
  
  .content-type-title {
    font-size: 20px;
  }
  
  .add-content-info-box {
    flex-direction: column;
  }
}

/* Responsive Design for Reports */
@media (max-width: 1024px) {
  .reports-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .report-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reports-charts-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .reports-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .report-categories-grid {
    grid-template-columns: 1fr;
  }
  
  .report-stat-card {
    padding: 20px;
  }
  
  .stat-icon {
    width: 56px;
    height: 56px;
  }
  
  .stat-value {
    font-size: 28px;
  }
  
  .report-category-card {
    padding: 20px;
  }
  
  .status-report-content,
  .updates-report-content,
  .error-report-content,
  .field-list-content,
  .search-report-content {
    padding: 20px;
  }
}

.properties-dashboard .properties-view-section {
  padding: 32px 40px 48px;
}

@media (max-width: 1024px) {
  .properties-dashboard .properties-view-section {
    padding: 28px 28px 40px;
  }
}

@media (max-width: 768px) {
  .properties-dashboard .properties-view-section {
    padding: 24px 20px 36px;
  }
}
