/* Data Center & Security Compliance Matrix Styles */

/* Map Section */
.datacenter-map-section {
  margin: 40px 0;
}

.interactive-map {
  height: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  margin-bottom: 8px;
  font-weight: 500;
}

.custom-select {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  background-color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-family);
}
.map-popup {
  font-family: var(--font-family);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.legend-item {
  display: flex;
  align-items: center;
}

.legend-marker {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.legend-marker.available {
  background-color: #DA0032;
  box-shadow: 0 0 0 2px rgba(218, 0, 50, 0.3);
}

.legend-marker.unavailable {
  background-color: #3f51b5;
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.3);
}

/* Wizard Card Section */
.datacenter-wizard-section {
  margin: 40px 0;
}

.wizard-card {
  background: linear-gradient(135deg, #303163 0%, #1A1A36 100%);
  border-radius: 10px;
  padding: 30px;
  color: white;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.wizard-content {
  flex: 3;
  min-width: 300px;
}

.wizard-content h3 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.wizard-content p {
  opacity: 0.9;
  margin-bottom: 20px;
}

.wizard-image {
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.wizard-icon {
  max-width: 150px;
  height: auto;
}

/* Data Center Table Section */
.datacenter-table-section {
  margin: 40px 0;
}

.table-filters {
  margin-bottom: 20px;
}

.search-filter {
  margin-bottom: 15px;
}

.search-input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

.compliance-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: #f8f9fa;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.toggle-label:hover {
  background-color: #e9ecef;
}

.toggle-label input[type="checkbox"] {
  margin-right: 6px;
}

.compliance-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.9rem;
}

.compliance-table th,
.compliance-table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.compliance-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.compliance-table th:first-child,
.compliance-table td:first-child {
  text-align: left;
}

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

.sortable {
  cursor: pointer;
}

.sortable i {
  margin-left: 5px;
  opacity: 0.5;
}

.sortable.active i {
  opacity: 1;
}

.table-container {
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 5px;
  margin-bottom: 15px;
}

.table-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.pagination-btn {
  padding: 8px 15px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #e9ecef;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.compliance-icon {
  font-size: 1.2rem;
}

.icon-yes {
  color: #009688;
}

.icon-no {
  color: #cccccc;
}

.availability-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
}

.available-tag {
  background-color: rgba(40, 167, 69, 0.1);
  color: #009688;
}

.unavailable-tag {
  background-color: #d8defc;
  color: #3f51b5;
}

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

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 800px;
  animation: modalOpen 0.3s ease-out;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

@keyframes modalOpen {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}

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

.close-modal {
  font-size: 1.5rem;
  cursor: pointer;
  color: #6c757d;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #343a40;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #e9ecef;
}

/* Wizard Steps */
.wizard-step {
  margin-bottom: 20px;
}

.wizard-step h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.option-label {
  flex: 1 1 calc(20% - 15px);
  min-width: 120px;
  position: relative;
  cursor: pointer;
}

.option-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.option-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.2s ease;
  text-align: center;
}

.option-box i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #6c757d;
}

.option-label input[type="radio"]:checked + .option-box {
  border-color: #DA0032;
  background-color: rgba(218, 0, 50, 0.05);
}

.option-label input[type="radio"]:checked + .option-box i {
  color: #DA0032;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-label {
  flex: 1 1 calc(33.33% - 10px);
  min-width: 150px;
  padding: 10px 15px;
  border-radius: 5px;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  background-color: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 10px;
}

.checkbox-label input[type="checkbox"]:checked + span {
  font-weight: 500;
  color: #DA0032;
}

.multi-select {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  min-height: 150px;
}

/* Wizard Results */
.results-container {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-top: 20px;
}

.results-loading {
  text-align: center;
  padding: 20px;
}

.results-loading i {
  font-size: 2rem;
  color: #DA0032;
  margin-bottom: 15px;
}

.result-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.result-score {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  background: linear-gradient(135deg, #DA0032 0%, #FF3B68 100%);
  flex-shrink: 0;
}

.result-details {
  flex: 1;
}

.result-details h4 {
  margin: 0 0 5px 0;
  color: #303163;
}

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

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.result-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 30px;
  font-size: 0.75rem;
  background-color: #e9ecef;
  color: #495057;
}

.result-select {
  margin-left: auto;
}

/* Pulse animation for available locations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(218, 0, 50, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(218, 0, 50, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(218, 0, 50, 0);
  }
}

.pulse-icon {
  background: none !important;
}

.pulse-circle {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(218, 0, 50, 0.4);
  animation: pulse 2s infinite;
  position: absolute;
  top: 5px;
  left: 5px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .option-label {
    flex: 1 1 calc(33.33% - 15px);
  }
  
  .checkbox-label {
    flex: 1 1 calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .interactive-map {
    height: 400px;
  }
  
  .wizard-card {
    flex-direction: column;
    text-align: center;
  }
  
  .option-label {
    flex: 1 1 calc(50% - 15px);
  }
  
  .checkbox-label {
    flex: 1 1 100%;
  }
  
  .modal-content {
    width: 95%;
    margin: 2% auto;
  }
} 