/* Modern CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables for consistent theming - New Color Palette */
:root {
  --primary: #6320EE;
  --primary-dark: #211A1D;
  --secondary: #8075FF;
  --secondary-dark: #6320EE;
  --success: #CAD5CA;
  --success-dark: #8075FF;
  --danger: #dc2626;
  --danger-dark: #b91c1c;
  --warning: #F78D60;
  --info: #8075FF;
  
  --gray-50: #F8F0FB;
  --gray-100: #F8F0FB;
  --gray-200: #CAD5CA;
  --gray-300: #8075FF;
  --gray-400: #6320EE;
  --gray-500: #211A1D;
  --gray-600: #211A1D;
  --gray-700: #211A1D;
  --gray-800: #211A1D;
  --gray-900: #211A1D;
  
  --white: #ffffff;
  --black: #000000;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* Base styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: linear-gradient(135deg, #211A1D 0%, #6320EE 50%, #8075FF 100%);
  min-height: 100vh;
  padding: 2rem 1rem;
}

/* Container */
.container {
  max-width: 480px;
  margin: 0 auto;
}

/* Card */
.card {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
  background: linear-gradient(135deg, #6320EE 0%, #211A1D 100%);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.card-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
}

/* Form elements */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.2s ease;
  background: var(--white);
  max-width: 100%;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

input::placeholder {
  color: var(--success);
  opacity: 0.8;
}

/* Select dropdowns */
select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.2s ease;
  background: var(--white);
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover:before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #6320EE 0%, #211A1D 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning) 0%, var(--secondary-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-500) 100%);
  color: var(--white);
  border: 1px solid var(--gray-500);
}

/* Vol overlay */
.vol-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(220, 38, 38, 0.3); /* 30% transparency red */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  z-index: 10;
}

.vol-text {
  color: var(--black);
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* Make attendees container relative for overlay positioning */
.attendees-container {
  position: relative;
  min-height: 60px; /* Ensure container has height even when empty */
}

.badges {
  position: relative;
}

/* Layout */
.row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.row-center {
  justify-content: center;
}

.row-between {
  justify-content: space-between;
}

/* Tabs */
.tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 0.25rem;
  margin-bottom: 2rem;
}

.tab {
  flex: 1;
  padding: 0.75rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  font-size: 1.2rem;
  text-align: center;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab:hover:not(.active) {
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.5);
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.badge:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.badge:hover:before {
  left: 100%;
}

.badge-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
}

.badge-warning {
  background: linear-gradient(135deg, var(--warning) 0%, var(--secondary-dark) 100%);
  color: var(--white);
}

/* Profile */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-header {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
  cursor: pointer;
}

.profile-header:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.profile-picture {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--warning) 0%, var(--success) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  margin: 0 auto 1rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--white);
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.profile-username {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.profile-stat {
  text-align: center;
}

.profile-stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.profile-stat-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tiles */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tile {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

.tile-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.tile-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  object-fit: cover;
  margin: 0 auto 0.5rem;
  display: block;
  box-shadow: var(--shadow-sm);
}

.tile-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.tile-description {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.3;
}


.tile-users-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.tile-users-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.tile-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.tile-users-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tile-users-icon {
  font-size: 2rem;
}

.tile-users-image {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
}

.tile-users-list {
  display: grid;
  gap: 1rem;
}

.tile-user-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.tile-user-picture {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  object-fit: cover;
  background: linear-gradient(135deg, var(--warning) 0%, var(--success) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.tile-user-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--gray-800);
}

.tile-user-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}


/* Admin Panel */
.admin-panel {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 2px solid var(--warning);
}

/* Fix for tiles admin form buttons and dropdowns */
#adminTilesContent .btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#adminTilesContent select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#adminTilesContent .admin-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#adminTilesContent .admin-form .row {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Fix for inventory tab buttons */
#inventoryContent .btn {
  width: auto;
  max-width: none;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.875rem 1rem;
}

#inventoryContent .inventory-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#inventoryContent .inventory-form .form-group {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#inventoryContent .inventory-form input {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 120px);
}

#inventoryContent .inventory-item {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#inventoryContent .inventory-item .btn {
  width: auto;
  max-width: none;
  flex-shrink: 0;
}

.admin-panel h3 {
  color: var(--warning);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-tiles-list {
  display: grid;
  gap: 0.75rem;
}

.admin-tile-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-tile-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-tile-icon {
  font-size: 1.5rem;
}

.admin-tile-image {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-right: 0.5rem;
}

.admin-tile-details h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--gray-800);
}

.admin-tile-details p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}


/* History */
.history-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.history-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.history-date {
  font-weight: 700;
  color: var(--gray-800);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.history-attendees {
  margin: 0.5rem 0;
  color: var(--gray-600);
}

.history-cook {
  color: var(--warning);
  font-weight: 600;
}

/* Messages */
.message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 500;
}

.message-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-dark);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.message-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-dark);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.message-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 641px) {
  .tab {
    padding: 0.6rem 0.4rem;
    font-size: 1.1rem;
  }
}

/* Mobile styles */
@media (max-width: 640px) {
  body {
    padding: 1rem 0.5rem;
  }
  
  .card-header {
    padding: 1.5rem;
  }
  
  .card-header h1 {
    font-size: 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .tabs {
    padding: 0.2rem;
    gap: 0.1rem;
  }
  
  .tab {
    padding: 0.4rem 0.2rem;
    font-size: 0.9rem;
    min-width: 0;
    flex: 1;
  }
  
  .row {
    flex-direction: column;
    align-items: stretch;
  }
  
  
  .tiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .profiles-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-form .row {
    grid-template-columns: 1fr;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Statistics Table Styles */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  table-layout: fixed;
}

.stats-table th {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-table th:nth-child(1) { width: 25%; } /* Gebruiker */
.stats-table th:nth-child(2) { width: 15%; } /* Koken */
.stats-table th:nth-child(3) { width: 15%; } /* Mee-eten */
.stats-table th:nth-child(4) { width: 20%; } /* Ratio */
.stats-table th:nth-child(5) { width: 25%; } /* Gem. Cijfer */

.stats-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

.stats-table tbody tr:last-child td {
  border-bottom: none;
}

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

.stats-table .user-name {
  font-weight: 600;
  color: var(--primary);
}

.stats-table .cook-count {
  text-align: center;
  font-weight: 600;
  color: var(--warning);
}

.stats-table .attend-count {
  text-align: center;
  font-weight: 600;
  color: var(--success);
}

.stats-table .ratio {
  text-align: center;
  font-weight: 600;
  color: var(--info);
}

.stats-table .avg-rating {
  text-align: center;
  font-weight: 600;
  color: var(--warning);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: var(--gray-50);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  padding: 1.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.close {
  color: var(--white);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  opacity: 0.7;
}

.modal-body {
  padding: 2rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Rating form styles */
#ratingScore {
  font-size: 1.1rem;
  padding: 0.75rem;
}

#ratingComment {
  resize: vertical;
  min-height: 80px;
}

/* History rating styles */
.history-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.avg-rating-display {
  font-weight: 600;
  color: var(--gray-800);
}

.reviews-btn {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

/* Review item styles */
.review-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.rating-badge {
  background: var(--warning);
  color: var(--gray-800);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.review-comment {
  font-style: italic;
  color: var(--gray-600);
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

/* User actions layout */
.user-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* House styles */
.houses-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.house-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.house-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.house-info h3 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-800);
  font-size: 1.25rem;
}

.house-info p {
  margin: 0 0 1rem 0;
  color: var(--gray-600);
  line-height: 1.5;
}

.house-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.houses-actions {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
}

.houses-actions h3 {
  margin: 0 0 1rem 0;
  color: var(--gray-800);
  font-size: 1.1rem;
}

/* Rating styles */
.history-ratings {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--warning);
}

.rating-item {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.rating-item:last-child {
  margin-bottom: 0;
}