/* Modern Compact Security Tools Styles */
.security-header {
  background: linear-gradient(135deg, #118ed5 0%, #0d6fa8 100%);
  color: white;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}

.security-header.grade-a {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.security-header.grade-b {
  background: linear-gradient(135deg, #118ed5 0%, #0d6fa8 100%);
}

.security-header.grade-c {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.security-header.grade-d {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.security-header.grade-f {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.security-header h1 {
  color: white;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1.75rem;
}

.security-header h1 a {
  color: white;
  text-decoration: none;
}

.security-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0;
}

.security-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px 2rem;
}

.scan-form-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.scan-form-card label {
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.scan-form-card label i {
  color: #118ed5;
  font-size: 0.875rem;
}

.scan-form-card input,
.scan-form-card textarea {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.625rem 0.875rem;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.scan-form-card input:focus,
.scan-form-card textarea:focus {
  border-color: #118ed5;
  box-shadow: 0 0 0 3px rgba(17, 142, 213, 0.1);
  outline: none;
}

.btn-scan {
  background: #118ed5;
  border: none;
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.btn-scan:hover {
  background: #0d6fa8;
  color: white;
  transform: translateY(-1px);
}

.btn-scan:active {
  transform: translateY(0);
}

.result-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.grade-display {
  background: #f9fafb;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.grade-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.grade-a { background: #10b981; }
.grade-b { background: #118ed5; }
.grade-c { background: #f59e0b; }
.grade-d { background: #f97316; }
.grade-f { background: #ef4444; }

.grade-circle i {
  font-size: 2.5rem;
}

.grade-info {
  flex: 1;
}

.grade-info h4 {
  color: #111827;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.grade-info p {
  margin-bottom: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.grade-info a {
  color: #118ed5;
  text-decoration: none;
  font-weight: 500;
}

.grade-info a:hover {
  text-decoration: underline;
}

.headers-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.header-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.header-badge i {
  font-size: 0.75rem;
}

.header-badge-success {
  background: #d1fae5;
  color: #065f46;
}

.header-badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.detail-section {
  padding: 1.5rem;
}

.detail-section h5 {
  color: #111827;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.detail-section h5 i {
  color: #118ed5;
  font-size: 1rem;
}

.score-bar {
  background: #e5e7eb;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.score-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  transition: width 0.5s ease;
}

.headers-list {
  list-style: none;
  padding: 0;
}

.headers-list li {
  background: #f9fafb;
  border-left: 3px solid #e5e7eb;
  padding: 0.875rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.headers-list li:hover {
  border-left-color: #118ed5;
  background: white;
}

.header-name {
  font-weight: 500;
  color: #374151;
  text-transform: capitalize;
  font-size: 0.875rem;
}

.header-value {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: #6b7280;
  background: white;
  padding: 0.375rem 0.625rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  display: block;
  word-break: break-all;
  border: 1px solid #e5e7eb;
}

.info-card {
  background: white;
  border: 1px solid #f3f3f3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.info-card-header {
  background: #118ed5;
  padding: 0.875rem 1.25rem;
}

.info-card-header strong {
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card-header i {
  font-size: 0.9375rem;
}

.info-card-body {
  padding: 1.5rem;
}

.missing-headers-list,
.penalty-headers-list {
  list-style: none;
  padding: 0;
}

.missing-headers-list li {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  color: #92400e;
  font-weight: 500;
  font-size: 0.875rem;
}

.penalty-headers-list li {
  background: #fee2e2;
  border-left: 3px solid #ef4444;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  color: #991b1b;
  font-weight: 500;
  font-size: 0.875rem;
}

.htaccess-code {
  background: #000000;
  color: #98d47b;
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
   border: 1px solid #98d47b;
}

.htaccess-code pre {
	 background: #000000;
  margin: 0;
  white-space: pre;
  line-height: 1.6;
	 border: 1px solid #98d47b;
}

.info-table {
  margin: 0;
  font-size: 0.875rem;
}

.info-table th {
  background: #118ed5;
  color: white;
  font-weight: 600;
  padding: 0.75rem;
  border: none;
  font-size: 0.875rem;
}

.info-table td {
  padding: 0.875rem;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
}

.info-table tr:hover td {
  background: #f9fafb;
}

.info-table strong {
  color: #118ed5;
  font-family: 'Courier New', monospace;
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8125rem;
}

.info-table code {
  color: #118ed5;
  font-family: 'Courier New', monospace;
  background: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.8125rem;
}

.alert-custom {
  border: 1px solid;
  border-left-width: 3px;
  border-radius: 6px;
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.alert-danger-custom {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.raw-headers {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
}

.raw-headers::-webkit-scrollbar {
  width: 6px;
}

.raw-headers::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 3px;
}

.raw-headers::-webkit-scrollbar-thumb {
  background: #118ed5;
  border-radius: 3px;
}

.raw-headers strong {
  color: #118ed5;
  font-weight: 600;
}

.copy-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
}

.copy-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: translateY(0);
}

textarea.form-control {
  resize: vertical;
  min-height: 70px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .security-header h1 {
    font-size: 1.5rem;
  }
  
  .security-header p {
    font-size: 0.875rem;
  }
  
  .grade-display {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
  
  .grade-circle {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  .grade-circle i {
    font-size: 2rem;
  }
  
  .headers-badges {
    justify-content: center;
  }
  
  .scan-form-card {
    padding: 1rem;
  }
  
  .info-card-body {
    padding: 1rem;
  }
  
  .detail-section {
    padding: 1rem;
  }
  
  .headers-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .security-header {
    padding: 1.25rem 0;
  }
  
  .btn-scan {
    width: 100%;
  }
}