/* Renter dashboard page-specific styles */
#renter-dashboard-container {
  display: block;
  padding-top: 90px;
}

.renter-profile-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.renter-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.renter-profile-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.renter-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.renter-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem;
}

.renter-profile-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  color: var(--text-muted);
  background: var(--card-bg);
  font-size: 0.86rem;
  line-height: 1.3;
}

.renter-profile-item i {
  width: 16px;
  text-align: center;
  color: var(--primary-color);
}

/* Enhanced Dashboard Cards */
#renter-dashboard-container .card {
  margin-bottom: 2rem;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

#renter-dashboard-container .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Module Title Styling */
#renter-dashboard-container .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Property Details Module Specific */
#renter-property .d-grid {
  gap: 0.75rem;
}

#renter-property .btn {
  padding: 0.75rem 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

#renter-property .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Property Detail Buttons Color Coding */
.btn-property-details {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: white;
}

.btn-rent-info {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
}

.btn-agreement {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  color: white;
}

.btn-photos {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: white;
}

.btn-owner-contact {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
}

/* Dashboard Section Headers */
#renter-dashboard-container h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

/* Table of Contents Navigation */
.dashboard-container .card .card-body .d-flex {
  gap: 0.75rem;
}

.dashboard-container .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dashboard-container .btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.25);
}

.dashboard-container .btn-outline-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25);
}

/* Module Lists Styling */
#renter-dashboard-container .card-body ul {
  list-style: none;
  padding-left: 0;
}

#renter-dashboard-container .card-body ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  color: #6b7280;
  font-size: 0.95rem;
}

#renter-dashboard-container .card-body ul li:last-child {
  border-bottom: none;
}

#renter-dashboard-container .card-body ul li::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  margin-right: 0.75rem;
}

/* Tenant Management Module Action Buttons */
.action-view-tenant-profile {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
}

.action-update-contact-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: white;
}

.action-view-lease-terms {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  color: white;
}

.action-emergency-contacts {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
}

.action-view-co-tenants {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: white;
}

/* Payment Module Action Buttons */
.action-view-rent-amount {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
}

.action-view-payment-history {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: white;
}

.action-download-invoices {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  color: white;
}

.action-pay-online {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: white;
}

.action-track-deposit {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  border: none;
  color: white;
}

/* Utility Module Action Buttons */
.action-view-utility-readings {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  border: none;
  color: white;
}

.action-check-combined-bill {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: white;
}

.action-download-utility-pdfs {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
}

.action-get-bill-breakdown {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  color: white;
}

/* Notification Module Action Buttons */
.action-rent-due-reminders {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: white;
}

.action-payment-confirmation {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
}

.action-utility-bill-alerts {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  border: none;
  color: white;
}

.action-contract-expiry {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
}

.action-maintenance-updates {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  border: none;
  color: white;
}

/* Maintenance Module Action Buttons */
.action-submit-maintenance {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
}

.action-track-request-status {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: white;
}

.action-chat-maintenance {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  color: white;
}

.action-view-maintenance-history {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  border: none;
  color: white;
}

/* Document Module Action Buttons */
.action-download-agreements {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
}

.action-upload-documents {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: white;
}

.action-view-expiry-dates {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: white;
}

.action-renewal-request {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: none;
  color: white;
}

/* Hover Effects for All Action Buttons */
[class*="action-"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
}

[class*="action-"]:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Module Container Styles */
.tenant-management,
.payment-management,
.utility-management,
.notification-management,
.maintenance-management,
.document-management {
  padding: 0.5rem 0;
}

.tenant-management .d-grid,
.payment-management .d-grid,
.utility-management .d-grid,
.notification-management .d-grid,
.maintenance-management .d-grid,
.document-management .d-grid {
  gap: 1rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  #renter-dashboard-container {
    padding-top: 70px;
  }

  .renter-profile-head {
    flex-direction: column;
    align-items: stretch;
  }

  .renter-profile-head #btn-edit-renter-profile {
    width: 100%;
  }
  
  #renter-dashboard-container h2 {
    font-size: 1.75rem;
  }
  
  .dashboard-container .btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  #renter-property .btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}
