/* GroupMNK-Inspired Sanctions Check Page Design */

/* Import Google Fonts - Using Inter as alternative to Gotham */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root Variables - GroupMNK Color Scheme */
:root {
  --primary-teal: #106073;
  --accent-teal: #49bfb5;
  --light-teal: #0a9ba5;
  --mint-bg: #F3FFFE;
  --text-dark: #4a4a4a;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --shadow-natural: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-deep: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-crisp: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Hero Section */
.check-hero {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--light-teal) 100%);
  padding: 4rem 0 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.check-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

/* Main Section */
.check-main-section {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

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

/* Check Card */
.check-card {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-deep);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.check-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-header-custom {
  margin-bottom: 2.5rem;
  text-align: center;
}

.card-title-custom {
  color: var(--primary-teal);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.card-subtitle-custom {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

/* Form Styling */
.check-form {
  max-width: 900px;
  margin: 0 auto;
}

.form-row-custom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group-custom {
  display: flex;
  flex-direction: column;
}

.form-label-custom {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.required-indicator {
  color: var(--accent-teal);
  margin-right: 0.25rem;
}

.form-input-custom {
  padding: 1rem 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
  background: var(--white);
}

.form-input-custom:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(73, 191, 181, 0.1);
  background: var(--white);
}

.form-input-custom::placeholder {
  color: #a0a0a0;
  font-weight: 300;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-check-custom {
  background: var(--primary-teal);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-natural);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-check-custom:hover {
  background: var(--light-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 96, 115, 0.25);
}

.btn-check-custom:active {
  transform: translateY(0);
  box-shadow: var(--shadow-natural);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn-check-custom:hover .btn-icon {
  transform: translateX(4px);
}

/* Edit Button */
#editUserBtn{
  background: var(--primary-teal);
  color: var(--white);
  border: none;
   border-radius: 8px;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-natural);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Results Section */
.results-section {
  margin-top: 3rem;
  animation: fadeIn 0.5s ease;
}

.results-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-deep);
  min-height: 400px;
  border-left: 4px solid var(--accent-teal);
}

#results {
  min-height: 350px;
}

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

/* Loading State */
.btn-check-custom.loading {
  background: var(--text-light);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-check-custom.loading .btn-text::after {
  content: '...';
  animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .check-hero {
    padding: 3rem 0 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .check-card {
    padding: 2rem 1.5rem;
  }

  .card-title-custom {
    font-size: 1.5rem;
  }

  .form-row-custom {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .btn-check-custom {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
  }

  .results-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .check-card {
    padding: 1.5rem 1rem;
  }

  .form-input-custom {
    padding: 0.875rem 1rem;
  }
}

/* Alert Styling */
.alert {
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border: none;
  box-shadow: var(--shadow-natural);
  font-size: 1rem;
}

.alert-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.alert-warning {
  background: linear-gradient(135deg, #ffd93d 0%, #ffb700 100%);
  color: #333;
}

.alert-success {
  background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
  color: white;
}

.alert-info {
  background: linear-gradient(135deg, var(--mint-bg) 0%, #e3fbf9 100%);
  color: var(--text-dark);
  border-left: 4px solid var(--accent-teal);
}

.alert-secondary {
  background: #f8f9fa;
  color: var(--text-dark);
  border-left: 4px solid var(--text-light);
}

/* Result Table Styling */
.table {
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background: var(--primary-teal);
  color: white;
}

.table-dark {
  background: var(--primary-teal);
  color: white;
}

.table-light {
  background: var(--mint-bg);
  color: var(--text-dark);
}

.table td, .table th {
  padding: 0.875rem;
  border-color: #e0e0e0;
}

.table-responsive {
  border-radius: 8px;
  box-shadow: var(--shadow-natural);
}

/* Small Box Styling */
.small-box {
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
}

#remark_box,
#name_box {
  max-height: 500px;
  overflow-y: auto;
}

#remark_box h5,
#name_box h5 {
  color: var(--primary-teal);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-teal);
}

/* Gauge Container */
#gauge-container {
  width: 220px;
  height: 130px;
  margin: auto;
}

/* Block Entity Styles */
.block-entity-container {
  width: 100%;
}

.block-alert-card {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.block-icon {
  margin: 0 auto 1.5rem;
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.block-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  color: white;
}

.block-details {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.block-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.detail-label {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.95;
}

.detail-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.score-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.risk-block {
  background: white;
  color: #ee5a6f;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 1px;
}

.block-warning {
  background: rgba(255, 255, 255, 0.2);
  border-left: 4px solid white;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
}

.block-warning strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Remarks Card */
.remarks-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-deep);
  height: 100%;
  border-left: 4px solid var(--accent-teal);
}

.remarks-title {
  color: var(--primary-teal);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--mint-bg);
  display: flex;
  align-items: center;
}

.remarks-title svg {
  stroke: var(--primary-teal);
}

.remarks-content {
  max-height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom scrollbar for remarks content */
.remarks-content::-webkit-scrollbar {
  width: 6px;
}

.remarks-content::-webkit-scrollbar-track {
  background: var(--mint-bg);
  border-radius: 3px;
}

.remarks-content::-webkit-scrollbar-thumb {
  background: var(--accent-teal);
  border-radius: 3px;
}

.remarks-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-teal);
}

/* Remark Section Styling */
.remark-section {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.remark-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.remark-section:last-child {
  margin-bottom: 0;
}

.remark-section-header {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--light-teal) 100%);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-number {
  background: rgba(255, 255, 255, 0.25);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.section-title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.remark-section-body {
  padding: 1.25rem;
}

.remark-row {
  padding: 0.875rem;
  background: var(--mint-bg);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.remark-row:hover {
  background: #e3fbf9;
  transform: translateX(4px);
}

.remark-row:last-child {
  margin-bottom: 0;
}

.remark-label {
  font-weight: 600;
  color: var(--primary-teal);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.remark-content-text {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-word;
}

.no-data-message {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
}

.no-data-message p {
  margin: 0;
  font-size: 1rem;
}

/* Responsive adjustments for block entity */
@media (max-width: 768px) {
  .block-alert-card {
    padding: 2rem 1.5rem;
  }

  .block-title {
    font-size: 1.5rem;
  }

  .block-details {
    padding: 1rem;
  }

  .detail-value {
    font-size: 1rem;
  }

  .score-value {
    font-size: 1.25rem;
  }

  .remarks-card {
    margin-top: 1rem;
  }
}

/* Print Styles */
@media print {
  .check-hero,
  .check-card,
  .form-actions {
    display: none;
  }

  .results-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
