/* Tenants Management Application Custom Styles */

/* Global Styles */
:root {
  --primary-color: #1976D2;
  --primary-light: #42A5F5;
  --primary-dark: #0D47A1;
  --secondary-color: #424242;
  --text-light: #FFFFFF;
  --text-dark: #212121;
  --text-medium: #757575;
  --success-color: #4CAF50;
  --warning-color: #FFC107;
  --error-color: #F44336;
  --info-color: #2196F3;
  --border-color: #E0E0E0;
  --border-radius: 8px;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover {
  transform: rotate(15deg);
}

.theme-toggle-icon {
  transition: transform 0.5s ease;
}

.theme-toggle-icon--dark {
  transform: rotate(180deg);
}

/* Dashboard Styles */
.stats-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

.tenant-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.tenant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

.dashboard-section {
  margin-bottom: 32px;
}

.dashboard-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dashboard-section-title {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.dashboard-section-title .v-icon {
  margin-right: 8px;
}

.dashboard-section-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: var(--border-radius);
}

[theme="dark"] .dashboard-section-empty {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Chart Containers */
.chart-container {
  position: relative;
  margin: auto;
  width: 100%;
}

/* Footer */
.v-footer {
  font-size: 0.875rem;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10;
  height: 48px;
}

/* Add padding to main content to account for fixed footer */
.v-main {
  padding-bottom: 48px !important; /* Height of footer */
}

/* Adjust for mobile when bottom navigation is visible */
@media (max-width: 959px) {
  .v-main {
    padding-bottom: 56px !important; /* Height of bottom navigation only (footer is hidden on mobile) */
  }
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .dashboard-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dashboard-section-header .v-btn {
    margin-top: 8px;
  }
}

/* Animation for loading states */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.loading-pulse {
  animation: pulse 1.5s infinite ease-in-out;
}

/* Cursor pointer for clickable elements */
.cursor-pointer {
  cursor: pointer;
}

/* Plan Selector Styles */
.plan-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.plan-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: white;
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  border-color: #1976D2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15) !important;
}

.plan-card-selected {
  border-color: #1976D2 !important;
  background: linear-gradient(135deg, #1976D2 0%, #42A5F5 100%) !important;
  color: white !important;
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.3) !important;
}

.plan-card-selected .plan-name,
.plan-card-selected .plan-price {
  color: white !important;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Stripe Elements Styles */
.stripe-card-container {
  margin-bottom: 16px;
}

.stripe-element {
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: white;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.stripe-element:focus-within {
  border-color: #1976D2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.stripe-element.StripeElement--focus {
  border-color: #1976D2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.stripe-element.StripeElement--invalid {
  border-color: #F44336;
}

.stripe-error-message {
  color: #F44336;
  font-size: 0.75rem;
  margin-top: 4px;
  min-height: 16px;
}

/* Dark theme adjustments */
[theme="dark"] .plan-card {
  background: #2d2d2d;
  border-color: #424242;
}

[theme="dark"] .stripe-element {
  background-color: #2d2d2d;
  border-color: #424242;
  color: #ffffff;
}

/* Responsive adjustments for plan selector */
@media (max-width: 768px) {
  .plan-selector {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .plan-card {
    margin-bottom: 0;
  }
}