/* Modern Tenant Manager Styles - Consistent with Login Design */

/* Global Styles */
body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Main content spacing for fixed navbar */
.main-content {
  padding-top: 70px;
  min-height: 100vh;
}

/* Enhanced Navigation */
.navbar-default {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 600;
  font-size: 20px;
  color: #495057 !important;
}

.navbar-brand i {
  color: #667eea;
  margin-right: 8px;
}

.navbar-nav > li > a {
  font-weight: 500;
  color: #495057 !important;
  transition: all 0.3s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
  color: #667eea !important;
  background-color: rgba(102, 126, 234, 0.1) !important;
}

.navbar-nav > li > a i {
  margin-right: 6px;
}

/* Container Enhancements */
.container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  overflow: hidden;
}

/* Enhanced Panels */
.panel {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 15px;
  margin-bottom: 25px;
  background: white;
  overflow: hidden;
}

.panel-heading {
  border-radius: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #e9ecef;
  padding: 15px 25px;
}

.panel-title {
  font-weight: 600;
  font-size: 16px;
  color: #495057;
}

.panel-title i {
  margin-right: 10px;
  color: #667eea;
}

.panel-body {
  padding: 30px;
}

/* Header Adjustments - Make them smaller and more proportional */
.main-content h2 {
  font-size: 28px !important;
  font-weight: 600;
}

.main-content h3 {
  font-size: 22px !important;
  font-weight: 600;
}

/* Form Enhancements */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  display: block;
}

.form-group label i {
  margin-right: 8px;
  color: #6c757d;
  width: 16px;
}

.form-control {
  height: 45px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

/* Enhanced Checkbox Styling with proper spacing */
.checkbox {
  margin-bottom: 15px;
  margin-left: 20px;
}

.checkbox label {
  font-weight: normal !important;
  display: flex !important;
  align-items: center;
  cursor: pointer;
  padding-left: 0 !important;
  line-height: 1.4;
}

.checkbox input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  background: none !important;
  border: 2px solid #e9ecef !important;
  border-radius: 4px !important;
  cursor: pointer;
  flex-shrink: 0;
  vertical-align: top;
}

.checkbox label strong {
  margin-left: 5px;
  font-weight: 600;
  line-height: inherit;
}

.checkbox input[type="checkbox"]:checked {
  background-color: #667eea !important;
  border-color: #667eea !important;
}

/* General checkbox styling for forms */
input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-right: 10px !important;
  background: none !important;
  border: 2px solid #e9ecef !important;
  border-radius: 4px !important;
  cursor: pointer;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background-color: #667eea !important;
  border-color: #667eea !important;
}

/* Button Enhancements */
.btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  color: white;
}

.btn-default {
  background: #f8f9fa;
  color: #495057;
  border: 2px solid #e9ecef;
}

.btn-default:hover {
  background: #e9ecef;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: white;
}

.btn-info:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
  color: white;
}

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

/* Table Enhancements */
.table {
  margin-bottom: 0;
}

.table > thead > tr > th {
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
  color: #495057;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 15px 12px;
}

.table > tbody > tr > td,
.table > tbody > tr > th {
  vertical-align: middle;
  padding: 15px 12px;
  border-top: 1px solid #f1f3f4;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(102, 126, 234, 0.02);
}

.table-hover > tbody > tr:hover {
  background-color: rgba(102, 126, 234, 0.08);
  transition: background-color 0.3s ease;
}

/* Alert Enhancements */
.alert {
  border-radius: 10px;
  border: none;
  margin-bottom: 20px;
  padding: 15px 20px;
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
}

/* Label/Badge Enhancements */
.label {
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  display: inline-block;
}

.label i {
  margin-right: 4px;
}

.label-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.label-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.label-info {
  background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

/* Tab Enhancements */
.nav-tabs {
  border-bottom: 2px solid #e9ecef;
  background: white;
  border-radius: 10px 10px 0 0;
  padding: 10px 10px 0;
}

.nav-tabs > li > a {
  border-radius: 8px 8px 0 0;
  font-weight: 500;
  color: #6c757d;
  border: none;
  margin-right: 5px;
  transition: all 0.3s ease;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-tabs > li > a:hover {
  background-color: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: none;
}

/* Loading Overlay */
.overlay {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  background: rgba(102, 126, 234, 0.9);
  z-index: 99999;
  backdrop-filter: blur(5px);
}

.overlay__inner {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

.overlay__content {
  left: 50%;
  position: absolute;
  top: 40%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  display: inline-block;
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 1s infinite linear;
  border-radius: 100%;
  border-style: solid;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Action Bar Enhancements */
.pull-left .btn,
.pull-right .btn {
  margin: 10px 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Logo Styling */
img[src*="logo.svg"] {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

img[src*="logo.svg"]:hover {
  transform: scale(1.05);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .main-content {
    padding-top: 60px;
  }

  .main-content h2 {
    font-size: 24px !important;
  }

  .main-content h3 {
    font-size: 20px !important;
  }

  .container {
    margin: 10px;
    border-radius: 10px;
  }

  .panel {
    border-radius: 10px;
    margin-bottom: 15px;
  }

  .panel-body {
    padding: 20px;
  }

  .btn-group-sm > .btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .form-control {
    height: 40px;
    font-size: 13px;
  }
}

/* Utility Classes */
.text-primary {
  color: #667eea !important;
}

.text-success {
  color: #28a745 !important;
}

.text-danger {
  color: #dc3545 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-info {
  color: #17a2b8 !important;
}

.text-muted {
  color: #6c757d !important;
}

/* Additional Visual Enhancements */
.form-text {
  color: #6c757d;
  font-size: 12px;
  margin-top: 5px;
}

/* Navbar Toggle for Mobile */
.navbar-toggle {
  border-color: #667eea;
  background-color: transparent;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
  background-color: rgba(102, 126, 234, 0.1);
}

.navbar-toggle .icon-bar {
  background-color: #667eea;
}

/* Enhanced spacing for better visual hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Mobile version specific checkbox enhancements */
#versionInner .checkbox {
  margin-bottom: 10px;
  margin-left: 20px;
}

#versionInner .checkbox label {
  padding: 5px 0;
  min-height: 24px;
}

#versionInner .checkbox label strong {
  color: #495057;
  font-size: 14px;
}

/* Input Group Enhancements */
.input-group-addon {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border: 2px solid #e9ecef !important;
  border-left: 1px solid #ddd !important;
  color: #667eea !important;
  font-weight: 600;
  font-size: 13px;
  border-radius: 0 8px 8px 0 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-group .form-control:first-child {
  border-radius: 8px 0 0 8px !important;
  border-right: none !important;
}

.input-group .form-control {
  z-index: 2;
}

.input-group .form-control:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

.input-group .form-control:focus + .input-group-addon {
  border-color: #667eea !important;
}

/* Improved focus states */
.form-control:focus,
.btn:focus {
  outline: none;
}

/* Better visual feedback for interactive elements */
.btn:active {
  transform: translateY(0) !important;
}

/* Consistent card styling */
.well {
  border-radius: 10px;
  border: 1px solid #e9ecef;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.well-sm {
  padding: 20px;
}
