/**
 * RPM Public Styles
 * 
 * Public-facing CSS for Rental Property Manager
 * Part 1: Variables, Buttons, Floor Plans, Forms, Auth
 * 
 * @package Rental_Property_Manager
 * @subpackage Assets
 * @since 1.0.0
 * @version 2.0.0
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --rpm-primary: #2563eb;
  --rpm-primary-dark: #1d4ed8;
  --rpm-success: #10b981;
  --rpm-warning: #f59e0b;
  --rpm-danger: #ef4444;
  --rpm-gray-900: #111827;
  --rpm-gray-800: #1f2937;
  --rpm-gray-700: #374151;
  --rpm-gray-600: #4b5563;
  --rpm-gray-500: #6b7280;
  --rpm-gray-400: #9ca3af;
  --rpm-gray-300: #d1d5db;
  --rpm-gray-200: #e5e7eb;
  --rpm-gray-100: #f3f4f6;
  --rpm-gray-50: #f9fafb;
  --rpm-white: #ffffff;
  --rpm-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --rpm-radius: 8px;
  --rpm-radius-lg: 12px;
  --rpm-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --rpm-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --rpm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --rpm-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --rpm-transition: all 0.3s ease;
}

/* ==========================================================================
   Global Reset for RPM Wrappers
   ========================================================================== */
.rpm-floor-plans-wrapper *,
.rpm-dashboard-wrapper *,
.rpm-auth-wrapper *,
.rpm-listings-wrapper *,
.rpm-applicant-wrapper * {
  box-sizing: border-box;
}

.rpm-floor-plans-wrapper,
.rpm-dashboard-wrapper,
.rpm-auth-wrapper,
.rpm-listings-wrapper,
.rpm-applicant-wrapper {
  font-family: var(--rpm-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--rpm-gray-700);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.rpm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--rpm-font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--rpm-radius);
  cursor: pointer;
  transition: var(--rpm-transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rpm-btn:hover {
  transform: translateY(-2px);
}

.rpm-btn-primary {
  background: var(--rpm-primary);
  color: var(--rpm-white);
}

.rpm-btn-primary:hover {
  background: var(--rpm-primary-dark);
  color: var(--rpm-white);
}

.rpm-btn-success {
  background: var(--rpm-success);
  color: var(--rpm-white);
}

.rpm-btn-dark {
  background: var(--rpm-gray-900);
  color: var(--rpm-white);
}

.rpm-btn-outline {
  background: transparent;
  color: var(--rpm-gray-700);
  border: 2px solid var(--rpm-gray-300);
}

.rpm-btn-outline:hover {
  border-color: var(--rpm-primary);
  color: var(--rpm-primary);
}

.rpm-btn-apply {
  background: var(--rpm-primary);
  color: var(--rpm-white);
  padding: 8px 20px;
  font-size: 12px;
}

.rpm-btn-block {
  display: flex;
  width: 100%;
}

.rpm-btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.rpm-btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.rpm-btn-google {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #111827;
  font-weight: 500;
  justify-content: center;
  gap: 8px;
}

.rpm-btn-google:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* ==========================================================================
   Floor Plans Wrapper
   ========================================================================== */
.rpm-floor-plans-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.rpm-breadcrumb {
  font-size: 14px;
  color: var(--rpm-gray-500);
  margin-bottom: 20px;
}

.rpm-breadcrumb a {
  color: var(--rpm-primary);
  text-decoration: none;
}

.rpm-breadcrumb .rpm-separator {
  margin: 0 8px;
}

/* ==========================================================================
   Filters Bar
   ========================================================================== */
.rpm-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  background: var(--rpm-gray-50);
  border-radius: var(--rpm-radius-lg);
  margin-bottom: 20px;
}

.rpm-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rpm-filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--rpm-gray-600);
  text-transform: uppercase;
}

.rpm-filter-select,
.rpm-filter-input {
  padding: 10px 15px;
  border: 1px solid var(--rpm-gray-300);
  border-radius: var(--rpm-radius);
  font-family: var(--rpm-font);
  font-size: 14px;
  min-width: 150px;
  background: var(--rpm-white);
}

.rpm-filter-select:focus,
.rpm-filter-input:focus {
  outline: none;
  border-color: var(--rpm-primary);
}

/* ==========================================================================
   Floor Plans List
   ========================================================================== */
.rpm-results-text {
  color: var(--rpm-gray-600);
  margin-bottom: 20px;
}

.rpm-floor-plans-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rpm-floor-plan-item {
  background: var(--rpm-white);
  border: 1px solid var(--rpm-gray-200);
  border-radius: var(--rpm-radius-lg);
  overflow: hidden;
  box-shadow: var(--rpm-shadow);
}

.rpm-fp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--rpm-gray-50);
  border-bottom: 1px solid var(--rpm-gray-200);
}

.rpm-fp-title h2 {
  margin: 0 0 5px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--rpm-gray-900);
}

.rpm-fp-specs {
  margin: 0;
  font-size: 14px;
  color: var(--rpm-gray-600);
}

.rpm-fp-image-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--rpm-white);
  border: 1px solid var(--rpm-gray-300);
  border-radius: var(--rpm-radius);
  color: var(--rpm-gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.rpm-fp-image-link:hover {
  border-color: var(--rpm-primary);
  color: var(--rpm-primary);
}

/* ==========================================================================
   Units Table
   ========================================================================== */
.rpm-waitlist-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--rpm-gray-100);
  border-bottom: 1px solid var(--rpm-gray-200);
}

.rpm-waitlist-notice p {
  margin: 0;
  font-size: 14px;
}

.rpm-units-table-wrapper {
  overflow-x: auto;
}

.rpm-units-table {
  width: 100%;
  border-collapse: collapse;
}

.rpm-units-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--rpm-gray-500);
  background: var(--rpm-gray-50);
  border-bottom: 1px solid var(--rpm-gray-200);
}

.rpm-units-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--rpm-gray-100);
}

.rpm-units-table tr:last-child td {
  border-bottom: none;
}

.rpm-units-table tr:hover {
  background: var(--rpm-gray-50);
}

.rpm-unit-number {
  font-weight: 600;
  color: var(--rpm-gray-900);
}

.rpm-unit-rent {
  font-weight: 700;
  color: var(--rpm-primary);
  font-size: 16px;
}

.rpm-no-units {
  padding: 30px;
  text-align: center;
  color: var(--rpm-gray-500);
}

.rpm-disclaimer {
  margin-top: 30px;
  padding: 15px;
  background: var(--rpm-gray-50);
  border-radius: var(--rpm-radius);
  font-size: 12px;
  color: var(--rpm-gray-500);
  text-align: center;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.rpm-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rpm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rpm-form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--rpm-gray-700);
}

.rpm-form-group input,
.rpm-form-group select,
.rpm-form-group textarea {
  padding: 12px 15px;
  border: 1px solid var(--rpm-gray-300);
  border-radius: var(--rpm-radius);
  font-family: var(--rpm-font);
  font-size: 15px;
  background: var(--rpm-white);
}

.rpm-form-group input:focus,
.rpm-form-group select:focus,
.rpm-form-group textarea:focus {
  outline: none;
  border-color: var(--rpm-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.rpm-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.rpm-form-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--rpm-gray-200);
}

.rpm-form-section h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
}

.rpm-form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  padding-top: 20px;
}

.rpm-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.rpm-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.rpm-field-hint {
  font-size: 12px;
  color: var(--rpm-gray-500);
}

.rpm-form-hint {
  font-size: 12px;
  color: var(--rpm-gray-500);
  margin-top: 4px;
}

/* ==========================================================================
   Auth Wrapper & Login
   ========================================================================== */
.rpm-auth-wrapper {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: rgba(15, 23, 42, 0.05);
}

.rpm-auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--rpm-shadow-lg);
  padding: 28px 24px 24px;
}

@media (min-width: 640px) {
  .rpm-auth-card {
    padding: 32px 28px 28px;
    border-radius: 22px;
  }
}

.rpm-auth-container {
  width: 100%;
  max-width: 420px;
  background: var(--rpm-white);
  padding: 40px;
  border-radius: var(--rpm-radius-lg);
  box-shadow: var(--rpm-shadow-lg);
}

.rpm-auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.rpm-auth-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0edff;
  color: var(--rpm-primary);
  margin: 0 auto 12px;
  font-size: 22px;
}

.rpm-auth-icon-resident,
.rpm-resident-icon {
  background: #e0f2fe;
  color: #0284c7;
}

.rpm-auth-header h1 {
  font-size: 22px;
  margin: 0 0 8px 0;
  font-weight: 700;
  color: var(--rpm-gray-900);
}

.rpm-auth-header p {
  margin: 0;
  font-size: 14px;
  color: var(--rpm-gray-500);
}

.rpm-auth-form {
  margin-bottom: 24px;
}

.rpm-auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  padding-top: 20px;
  border-top: 1px solid var(--rpm-gray-200);
}

.rpm-auth-footer p {
  margin: 0 0 10px 0;
  color: var(--rpm-gray-500);
}

.rpm-auth-links {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
}

.rpm-auth-links a {
  color: var(--rpm-primary);
  text-decoration: none;
  font-weight: 500;
}

.rpm-auth-links a:hover {
  text-decoration: underline;
}

.rpm-auth-features {
  background: var(--rpm-gray-50);
  padding: 20px;
  border-radius: var(--rpm-radius);
  margin-bottom: 20px;
}

.rpm-auth-features h4 {
  margin: 0 0 15px 0;
  font-size: 14px;
}

.rpm-auth-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rpm-auth-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.rpm-auth-social {
  margin-top: 8px;
  margin-bottom: 12px;
}

.rpm-google-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.rpm-auth-divider,
.rpm-popup-divider {
  position: relative;
  text-align: center;
  margin: 16px 0 20px;
}

.rpm-auth-divider span,
.rpm-popup-divider span {
  display: inline-block;
  padding: 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.rpm-auth-divider::before,
.rpm-popup-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
  transform: translateY(-50%);
}

/* ==========================================================================
   Listings Grid Cards
   ========================================================================== */
.rpm-listings-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.rpm-listing-card {
  background: var(--rpm-white);
  border-radius: var(--rpm-radius-lg);
  overflow: hidden;
  box-shadow: var(--rpm-shadow-md);
  transition: var(--rpm-transition);
}

.rpm-listing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--rpm-shadow-xl);
}

.rpm-listing-image {
  position: relative;
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: var(--rpm-gray-100);
}

.rpm-listing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--rpm-shadow-md);
}

.rpm-badge-available {
  background: var(--rpm-success);
  color: var(--rpm-white);
}

.rpm-badge-unavailable {
  background: var(--rpm-warning);
  color: var(--rpm-white);
}

.rpm-listing-content {
  padding: 24px;
}

.rpm-listing-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--rpm-gray-900);
  margin: 0 0 16px 0;
}

.rpm-listing-specs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rpm-gray-200);
}

.rpm-spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--rpm-gray-600);
}

.rpm-spec-item i {
  color: var(--rpm-gray-400);
  font-size: 16px;
}

.rpm-spec-item strong {
  color: var(--rpm-gray-900);
  font-weight: 700;
}

.rpm-listing-price {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.rpm-price-label {
  font-size: 13px;
  color: var(--rpm-gray-500);
  margin-bottom: 4px;
}

.rpm-price-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--rpm-primary);
  line-height: 1;
}

.rpm-price-period {
  font-size: 18px;
  font-weight: 500;
  color: var(--rpm-gray-500);
}

.rpm-listing-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.rpm-amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: var(--rpm-gray-100);
  color: var(--rpm-gray-700);
  border-radius: 6px;
}

.rpm-amenity-tag i {
  color: var(--rpm-success);
  font-size: 10px;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.rpm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
}

.rpm-modal-content {
  background: var(--rpm-white);
  border-radius: var(--rpm-radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.rpm-modal-large {
  max-width: 800px;
}

.rpm-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: var(--rpm-gray-100);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.rpm-modal-close:hover {
  background: var(--rpm-gray-200);
}

#rpm-floorplan-image {
  width: 100%;
  display: block;
}

/* ==========================================================================
   PART 2: Dashboard Layout with Responsive Off-Canvas Sidebar
   ========================================================================== */

/* ==========================================================================
   Dashboard Wrapper - Main Layout
   ========================================================================== */
.rpm-dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--rpm-gray-50);
}

/* ==========================================================================
   Dashboard Sidebar - Desktop & Mobile
   ========================================================================== */
.rpm-dashboard-sidebar {
  width: 280px;
  background: var(--rpm-white);
  border-right: 1px solid var(--rpm-gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease;
}

/* Sidebar Header */
.rpm-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--rpm-gray-200);
}

.rpm-sidebar-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--rpm-gray-900);
  margin: 0;
}

.rpm-sidebar-user {
  margin-top: 12px;
  font-size: 14px;
  color: var(--rpm-gray-600);
}

/* Sidebar Navigation */
.rpm-sidebar-nav {
  flex: 1;
  padding: 20px 0;
}

.rpm-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--rpm-gray-700);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.rpm-nav-item:hover {
  background: var(--rpm-gray-50);
  color: var(--rpm-primary);
}

.rpm-nav-item.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--rpm-primary);
  border-left-color: var(--rpm-primary);
}

.rpm-nav-item i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* Sidebar Footer */
.rpm-sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--rpm-gray-200);
}

.rpm-sidebar-footer .rpm-btn {
  width: 100%;
}

/* ==========================================================================
   Mobile Off-Canvas - Hamburger & Overlay
   ========================================================================== */
.rpm-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--rpm-white);
  border-bottom: 1px solid var(--rpm-gray-200);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 999;
}

.rpm-hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpm-hamburger-icon {
  width: 24px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rpm-hamburger-icon span {
  display: block;
  height: 3px;
  background: var(--rpm-gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}

.rpm-hamburger-btn.active .rpm-hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.rpm-hamburger-btn.active .rpm-hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.rpm-hamburger-btn.active .rpm-hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

.rpm-mobile-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--rpm-gray-900);
}

/* Off-Canvas Overlay */
.rpm-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rpm-sidebar-overlay.active {
  opacity: 1;
}

/* ==========================================================================
   Dashboard Main Content
   ========================================================================== */
.rpm-dashboard-main {
  flex: 1;
  margin-left: 280px;
  padding: 40px;
  max-width: 100%;
}

.rpm-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.rpm-content-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--rpm-gray-900);
}

/* ==========================================================================
   Dashboard Cards Grid
   ========================================================================== */
.rpm-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.rpm-dashboard-card {
  background: var(--rpm-white);
  padding: 24px;
  border-radius: var(--rpm-radius-lg);
  box-shadow: var(--rpm-shadow);
  transition: transform 0.2s;
}

.rpm-dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rpm-shadow-lg);
}

.rpm-card-label {
  font-size: 13px;
  color: var(--rpm-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.rpm-card-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--rpm-gray-900);
  margin-bottom: 4px;
}

.rpm-card-change {
  font-size: 13px;
  font-weight: 500;
}

.rpm-card-change.positive {
  color: var(--rpm-success);
}

.rpm-card-change.negative {
  color: var(--rpm-danger);
}

/* ==========================================================================
   Dashboard Sections
   ========================================================================== */
.rpm-dashboard-section {
  background: var(--rpm-white);
  border-radius: var(--rpm-radius-lg);
  box-shadow: var(--rpm-shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.rpm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rpm-gray-200);
}

.rpm-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--rpm-gray-900);
  margin: 0;
}

.rpm-section-action {
  font-size: 14px;
  color: var(--rpm-primary);
  text-decoration: none;
  font-weight: 500;
}

.rpm-section-action:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Progress Steps (Applicant Wizard)
   ========================================================================== */
.rpm-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.rpm-progress-bar::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--rpm-gray-200);
  z-index: 0;
}

.rpm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.rpm-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rpm-white);
  border: 2px solid var(--rpm-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--rpm-gray-500);
}

.rpm-step.completed .rpm-step-circle {
  background: var(--rpm-success);
  border-color: var(--rpm-success);
  color: var(--rpm-white);
}

.rpm-step.active .rpm-step-circle {
  background: var(--rpm-primary);
  border-color: var(--rpm-primary);
  color: var(--rpm-white);
}

.rpm-step-label {
  font-size: 13px;
  color: var(--rpm-gray-600);
  text-align: center;
}

.rpm-step.active .rpm-step-label {
  color: var(--rpm-primary);
  font-weight: 600;
}

/* ==========================================================================
   Tables
   ========================================================================== */
.rpm-table-wrapper {
  overflow-x: auto;
}

.rpm-table {
  width: 100%;
  border-collapse: collapse;
}

.rpm-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--rpm-gray-500);
  background: var(--rpm-gray-50);
  border-bottom: 1px solid var(--rpm-gray-200);
}

.rpm-table td {
  padding: 16px;
  border-bottom: 1px solid var(--rpm-gray-100);
}

.rpm-table tr:hover {
  background: var(--rpm-gray-50);
}

/* ==========================================================================
   Status Badges
   ========================================================================== */
.rpm-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.rpm-status-pending {
  background: #fef3c7;
  color: #d97706;
}

.rpm-status-approved {
  background: #d1fae5;
  color: #059669;
}

.rpm-status-paid {
  background: #d1fae5;
  color: #059669;
}

.rpm-status-overdue {
  background: #fee2e2;
  color: #dc2626;
}

.rpm-status-completed {
  background: #d1fae5;
  color: #059669;
}

.rpm-status-in-progress {
  background: #dbeafe;
  color: #2563eb;
}

/* ==========================================================================
   Empty States
   ========================================================================== */
.rpm-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.rpm-empty-icon {
  font-size: 48px;
  color: var(--rpm-gray-300);
  margin-bottom: 16px;
}

.rpm-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--rpm-gray-700);
  margin: 0 0 8px 0;
}

.rpm-empty-text {
  font-size: 14px;
  color: var(--rpm-gray-500);
  margin: 0 0 24px 0;
}

/* ==========================================================================
   Alerts & Notices
   ========================================================================== */
.rpm-alert {
  padding: 16px 20px;
  border-radius: var(--rpm-radius);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rpm-alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.rpm-alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.rpm-alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.rpm-alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ==========================================================================
   Payment Summary
   ========================================================================== */
.rpm-payment-summary {
  background: var(--rpm-gray-50);
  padding: 24px;
  border-radius: var(--rpm-radius);
  margin-bottom: 24px;
}

.rpm-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--rpm-gray-200);
}

.rpm-summary-row:last-child {
  border-bottom: none;
  padding-top: 20px;
  margin-top: 12px;
  border-top: 2px solid var(--rpm-gray-300);
}

.rpm-summary-label {
  font-size: 14px;
  color: var(--rpm-gray-600);
}

.rpm-summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--rpm-gray-900);
}

.rpm-summary-row:last-child .rpm-summary-label {
  font-size: 16px;
  font-weight: 600;
}

.rpm-summary-row:last-child .rpm-summary-value {
  font-size: 18px;
  color: var(--rpm-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN - OFF-CANVAS SIDEBAR
   ========================================================================== */

/* Tablet: 992px and below */
@media (max-width: 992px) {
  .rpm-dashboard-main {
    margin-left: 0;
    padding: 24px;
  }

  .rpm-dashboard-sidebar {
    width: 280px;
  }

  .rpm-dashboard-cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile: 768px and below - OFF-CANVAS ACTIVATED */
@media (max-width: 768px) {
  /* Show mobile header */
  .rpm-mobile-header {
    display: flex;
  }

  /* Hide sidebar by default (off-canvas) */
  .rpm-dashboard-sidebar {
    transform: translateX(-100%);
  }

  /* Show sidebar when active (slide in) */
  .rpm-dashboard-sidebar.active {
    transform: translateX(0);
  }

  /* Show overlay when sidebar is active */
  .rpm-sidebar-overlay {
    display: block;
  }

  /* Adjust main content for mobile header */
  .rpm-dashboard-main {
    margin-left: 0;
    margin-top: 60px;
    padding: 20px;
  }

  /* Stack dashboard cards */
  .rpm-dashboard-cards {
    grid-template-columns: 1fr 1fr;
  }

  /* Make content header responsive */
  .rpm-content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Adjust navigation items for mobile */
  .rpm-nav-item {
    padding: 14px 20px;
  }

  /* Hide step labels in progress bar */
  .rpm-step-label {
    display: none;
  }

  /* Make filters stack */
  .rpm-filters-bar {
    flex-direction: column;
  }

  .rpm-filter-select,
  .rpm-filter-input {
    width: 100%;
  }

  /* Make floor plan headers stack */
  .rpm-fp-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  /* Make payment summary responsive */
  .rpm-payment-summary {
    padding: 16px;
  }

  /* Adjust auth container */
  .rpm-auth-container {
    padding: 24px;
  }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
  /* Single column cards */
  .rpm-dashboard-cards {
    grid-template-columns: 1fr;
  }

  /* Single column listings */
  .rpm-listings-grid {
    grid-template-columns: 1fr;
  }

  /* Reduce main content padding */
  .rpm-dashboard-main {
    padding: 16px;
  }

  /* Reduce dashboard card padding */
  .rpm-dashboard-card {
    padding: 16px;
  }

  /* Reduce section padding */
  .rpm-dashboard-section {
    padding: 16px;
  }

  /* Smaller font sizes */
  .rpm-content-header h1 {
    font-size: 22px;
  }

  .rpm-card-value {
    font-size: 24px;
  }

  /* Stack form actions */
  .rpm-form-actions {
    flex-direction: column;
  }

  .rpm-form-actions .rpm-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .rpm-dashboard-sidebar,
  .rpm-mobile-header,
  .rpm-sidebar-overlay {
    display: none !important;
  }

  .rpm-dashboard-main {
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  .rpm-btn {
    display: none !important;
  }
}
