/* Custom CSS for LUPMIS 2.0 Permit System */

/* Header Styles */
.header-bg {
  background: linear-gradient(135deg, #3b7fb3 0%, #4c84af 100%);
}

.version {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Navigation Styles */
.navbar {
  border-bottom: 1px solid #dee2e6;
}

.nav-link.active {
  color: #3b7fb3 !important;
  font-weight: 500;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  border-radius: 50%;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid #dee2e6;
  background: white;
  color: #6c757d;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:first-child {
  border-radius: 6px 0 0 6px;
}

.filter-btn:last-child {
  border-radius: 0 6px 6px 0;
}

.filter-btn.active {
  background-color: #3b7fb3;
  color: white;
  border-color: #3b7fb3;
}

.filter-btn:hover:not(.active) {
  background-color: #f8f9fa;
}

/* Table Styles */
.table tbody tr {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Eligibility Page Styles */
.requirement-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.requirement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.commercial-icon {
  background-color: #3b7fb3;
  color: white;
}

.residential-icon {
  background-color: #3b7fb3;
  color: white;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 8px;
}

.card-subtitle {
  color: #22d3ee;
  text-align: center;
  margin-bottom: 30px;
}

.requirement-list {
  margin-bottom: 30px;
}

.requirement-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.requirement-number {
  background-color: #22d3ee;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.requirement-details h4 {
  color: #2c3e50;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.requirement-details p {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.start-application-btn {
  background-color: #3b7fb3;
  border-color: #3b7fb3;
  width: 100%;
  padding: 12px;
  font-weight: 500;
  border-radius: 8px;
}

.start-application-btn:hover {
  background-color: #357a8a;
  border-color: #357a8a;
}

/* Form Styles */
.form-section {
  background: white;
  padding: 20px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
}

.form-control,
.form-select {
  padding: 12px 15px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #3b7fb3;
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 164, 0.25);
}

.form-actions {
  margin-top: 40px;
  text-align: right;
}

/* Upload Documents Styles */
.upload-area {
  border: 2px dashed #3b7fb3;
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: #357a8a;
  background-color: #f1f3f4;
}

.upload-icon i {
  font-size: 3rem;
  color: #3b7fb3;
  margin-bottom: 20px;
}

.upload-text {
  font-size: 1.1rem;
  color: #495057;
}

.upload-formats {
  font-size: 0.9rem;
}

.upload-section {
  margin-bottom: 30px;
}

.upload-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background-color: white;
}

.file-item.uploading {
  background-color: #f8f9fa;
}

.file-item.uploaded {
  background-color: #d1eddb;
  border-color: #badbcc;
}

.file-name {
  font-weight: 500;
  color: #495057;
}

.progress {
  height: 4px;
  background-color: #e9ecef;
}

.progress-bar {
  background-color: #3b7fb3;
}

/* Payment Styles */
.fee-summary,
.payment-methods {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.fee-section-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 25px;
}

.fee-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.fee-item:last-child {
  border-bottom: none;
}

.fee-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0 0;
  border-top: 2px solid #3b7fb3;
  margin-top: 15px;
}

.fee-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
}

.fee-description {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
}

.fee-amount {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2c3e50;
}

.payment-subtitle {
  color: #6c757d;
  margin-bottom: 25px;
}

.payment-option {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.payment-option:hover {
  border-color: #3b7fb3;
  transform: translateY(-2px);
}

.payment-option.selected {
  border-color: #3b7fb3;
  background-color: rgba(74, 144, 164, 0.1);
}

.payment-logo {
  max-width: 80px;
  height: 40px;
  margin-bottom: 10px;
}

.payment-icon i {
  font-size: 2rem;
  color: #3b7fb3;
  margin-bottom: 10px;
}

.payment-name {
  font-weight: 500;
  color: #495057;
  font-size: 0.9rem;
}

/* Thank You Page Styles */
.thank-you-content {
  max-width: 600px;
  margin: 80px auto;
}

.application-details {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
}

.status-badge {
  background-color: #fff3cd;
  color: #856404;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  display: inline-block;
}

.action-buttons {
  margin-top: 40px;
}

/* View Application Styles */
.map-container {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.details-section {
  background: white;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  margin-bottom: 20px;
}

.detail-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 5px;
}

.detail-value {
  color: #6c757d;
  margin-bottom: 15px;
}

.remarks-section {
  background: white;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  position: sticky;
  top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .requirement-card {
    padding: 20px;
  }

  .upload-area {
    padding: 40px 20px;
  }

  .fee-summary,
  .payment-methods {
    padding: 20px;
  }

  .form-actions {
    text-align: center;
  }

  .form-actions .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

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

.bg-primary {
  background-color: #3b7fb3 !important;
}

.btn-primary {
  background-color: #3b7fb3;
  border-color: #3b7fb3;
}

.btn-primary:hover {
  background-color: #357a8a;
  border-color: #357a8a;
}

/* Selection Card Styling */
.selection-card {
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fdff 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.selection-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15) !important;
}

/* Select Fields Styling */
.form-select {
  border: 2px solid #e9ecef;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b7fb3' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  cursor: pointer;
}

.form-select-lg {
  padding: 1rem 2.5rem 1rem 1.25rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

.form-select:focus {
  border-color: #3b7fb3;
  box-shadow: 0 0 0 0.25rem rgba(59, 127, 179, 0.15);
  outline: none;
  background-color: #fff;
}

.form-select:hover:not(:disabled) {
  border-color: #3b7fb3;
  background-color: #f8f9fa;
}

.form-select:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
  opacity: 0.6;
}

.form-label {
  color: #495057;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: block;
}

.form-label i {
  color: #3b7fb3;
}

/* Requirements Section Styling */
#requirementsSection .card-header {
  background: linear-gradient(135deg, #3b7fb3 0%, #4c84af 100%) !important;
  border-radius: 16px 16px 0 0 !important;
}

#requirementsSection .card {
  border-radius: 16px;
  animation: slideUp 0.5s ease-out;
}

.requirements-list-container {
  min-height: 200px;
}

.requirement-detail-item {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-left: 4px solid #3b7fb3;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.requirement-detail-item:hover {
  transform: translateX(5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.requirement-detail-item h5 {
  color: #3b7fb3;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.requirement-detail-item p {
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
}

.requirement-number-badge {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b7fb3 0%, #4c84af 100%);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Store Settings Page Styles */
.settings-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
}

.settings-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.settings-card .card-icon {
  width: 40px;
  height: 40px;
  background-color: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.settings-card .card-icon i {
  font-size: 1.25rem;
  color: #3b7fb3;
}

.settings-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: left;
  margin-bottom: 8px;
}

.settings-card .card-description {
  font-size: 0.9rem;
  color: #6c757d;
  text-align: left;
  line-height: 1.5;
}

/* Responsive adjustments for settings grid */
@media (max-width: 991px) {
  .settings-grid .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  .settings-grid .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .container[style*="padding: 40px"] {
    padding: 20px !important;
  }
}

/* Store Settings Page - Header Styles */
.store-settings-header {
  background: white;
  border-bottom: 1px solid #dee2e6;
}

.store-settings-header .back-button {
  color: #3b7fb3;
  font-size: 1rem;
  padding: 0;
  background: none;
  border: none;
  transition: color 0.3s ease;
}

.store-settings-header .back-button:hover {
  color: #357a8a;
  text-decoration: none;
}

.store-settings-header .back-button:focus {
  outline: 2px solid #3b7fb3;
  outline-offset: 2px;
}

.store-settings-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
}

.store-settings-header .store-info {
  display: flex;
  align-items: center;
}

.store-settings-header .store-logo {
  width: 50px;
  height: 50px;
  background-color: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-settings-header .search-settings {
  padding-left: 38px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.store-settings-header .search-settings:focus {
  border-color: #3b7fb3;
  box-shadow: 0 0 0 0.2rem rgba(59, 127, 179, 0.15);
  outline: none;
}

.store-settings-header .search-settings:hover {
  border-color: #3b7fb3;
}

/* Store Settings Page - Settings Cards Styles */
.settings-section .settings-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.settings-section .settings-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #3b7fb3;
}

.settings-section .settings-card:focus {
  outline: 2px solid #3b7fb3;
  outline-offset: 2px;
}

.settings-section .settings-card .card-icon {
  width: 40px;
  height: 40px;
  background-color: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.settings-section .settings-card .card-icon i {
  font-size: 1.25rem;
  color: #3b7fb3;
}

.settings-section .settings-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: left;
  margin-bottom: 8px;
}

.settings-section .settings-card .card-description {
  font-size: 0.9rem;
  color: #6c757d;
  text-align: left;
  line-height: 1.5;
  margin: 0;
}

/* Store Settings Page - Integration Cards Styles */
.integrations-section .integration-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.integrations-section .integration-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #3b7fb3;
}

.integrations-section .integration-card:focus {
  outline: 2px solid #3b7fb3;
  outline-offset: 2px;
}

.integrations-section .integration-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.integrations-section .integration-logo i {
  font-size: 3.5rem;
}

.integrations-section .integration-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.integrations-section .integration-description {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.integrations-section .connect-btn {
  background-color: #3b7fb3;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
}

.integrations-section .connect-btn:hover {
  background-color: #357a8a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 127, 179, 0.3);
}

.integrations-section .connect-btn:focus {
  outline: 2px solid #3b7fb3;
  outline-offset: 2px;
}

.integrations-section .connected-status {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.integrations-section .connected-badge {
  background-color: #d1eddb;
  color: #0f5132;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.integrations-section .connected-badge i {
  color: #198754;
  font-size: 0.5rem;
}

.integrations-section .disconnect-btn {
  background: none;
  border: none;
  color: #dc3545;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
}

.integrations-section .disconnect-btn:hover {
  background-color: #f8d7da;
  color: #b02a37;
}

.integrations-section .disconnect-btn:focus {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}

/* Store Settings Page - Responsive Styles */
@media (max-width: 991px) {
  .settings-grid .col-lg-4,
  .integrations-grid .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  .store-settings-header .container {
    padding: 20px !important;
  }

  .store-settings-header h1 {
    font-size: 1.5rem;
  }

  .settings-grid .col-md-6,
  .integrations-grid .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .settings-section .settings-card,
  .integrations-section .integration-card {
    padding: 20px;
  }

  .container[style*="padding: 40px"] {
    padding: 20px !important;
  }

  .settings-section,
  .integrations-section {
    margin-bottom: 30px !important;
  }
}

@media (max-width: 575px) {
  .store-settings-header .back-button {
    font-size: 0.9rem;
  }

  .store-settings-header h1 {
    font-size: 1.25rem;
  }

  .store-settings-header .store-logo {
    width: 40px;
    height: 40px;
  }

  .settings-section .settings-card .card-title,
  .integrations-section .integration-name {
    font-size: 1rem;
  }

  .settings-section .settings-card .card-description,
  .integrations-section .integration-description {
    font-size: 0.85rem;
  }
}
