/* Modern Modal Styles - Based on Network Visualizer */
.modern-modal .modal-content {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.modern-modal .modal-header {
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modern-modal .modal-title {
  font-weight: 600;
  color: #374151;
  font-size: 1.1rem;
}

.modern-modal .modal-title i {
  color: #6b7280;
}

.modern-modal .modal-body {
  padding: 1.5rem;
  background: #fff;
}

.modern-modal .modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
  background: #fff;
}

.modern-modal .form-control {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.modern-modal .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.modern-modal .form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.modern-modal .text-danger {
  color: #ef4444 !important;
}

.modern-modal .close {
  opacity: 0.5;
}

.modern-modal .close:hover {
  opacity: 0.75;
}

/* Button Styles */
.modern-modal .btn {
  font-weight: 500;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all 0.15s ease-in-out;
}

.modern-modal .btn-primary {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.modern-modal .btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

.modern-modal .btn-secondary {
  background-color: #6b7280;
  border-color: #6b7280;
  color: white;
}

.modern-modal .btn-secondary:hover {
  background-color: #4b5563;
  border-color: #4b5563;
  color: white;
}

/* Tab Styles */
.modern-modal .nav-tabs {
  border-bottom: 1px solid #e5e7eb;
}

.modern-modal .nav-tabs .nav-link {
  border: none;
  color: #6b7280;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid transparent;
}

.modern-modal .nav-tabs .nav-link:hover {
  border-color: transparent;
  color: #374151;
  background-color: #f9fafb;
}

.modern-modal .nav-tabs .nav-link.active {
  color: #3b82f6;
  background-color: transparent;
  border-color: transparent;
  border-bottom-color: #3b82f6;
}

/* Alert Styles */
.modern-modal .alert {
  border-radius: 6px;
  font-size: 0.9rem;
}

.modern-modal .alert-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* Form Group Spacing */
.modern-modal .mb-3 {
  margin-bottom: 1rem !important;
}

/* Row and Column Spacing */
.modern-modal .row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.modern-modal .col-md-6,
.modern-modal .col-md-12 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modern-modal .modal-dialog {
    margin: 1rem;
  }
  
  .modern-modal .col-md-6 {
    margin-bottom: 0.5rem;
  }
}

/* Network Interfaces Section */
.modern-modal .network-interfaces-section {
  padding: 0.5rem 0;
}

.modern-modal .network-interfaces-section hr {
  border-color: #e5e7eb;
  margin: 1.5rem 0;
}

.modern-modal .network-interfaces-section h6 {
  color: #374151;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.modern-modal .network-interfaces-section .bg-light {
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef;
}

/* Tab Content Spacing */
.modern-modal .tab-content {
  padding-top: 1rem;
}

/* Warranty Section */
.modern-modal .warranty-section {
  padding: 0.5rem 0;
}

/* Form Section Headers */
.modern-modal .section-header {
  color: #374151;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Read-only form controls */
.modern-modal .form-control-plaintext {
  background-color: transparent !important;
  border: 1px solid transparent !important;
  padding-left: 0 !important;
  color: #374151 !important;
  font-weight: 500;
}

.modern-modal .form-control[readonly] {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  color: #495057;
  cursor: default;
}

/* Header edit toggle button */
.modern-modal .modal-header .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

/* View mode styling */
.modern-modal.view-mode .form-control {
  border-color: transparent;
  background-color: transparent;
  box-shadow: none;
}

.modern-modal.view-mode .form-control:focus {
  border-color: transparent;
  box-shadow: none;
} 