:root {
  --primary-color: #0056b3;
  --secondary-color: #3175B0;
  --bg-color: #f4f7f6;
  --card-bg: #ffffff;
  --text-main: #333333;
  --text-muted: #6c757d;
  --border-color: #e9ecef;
  --border-radius: 12px;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --box-bg: #f8fbff;
  --box-border: #bbd6f2;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated Subtle Background */
.bg-animated {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
  opacity: 0.6;
}

.main-container {
  max-width: 900px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.brand-logo {
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  transition: filter 0.3s ease;
}
.brand-logo:hover {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}

.search-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.card-title {
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1.1rem;
}

.search-input-group {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 5px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.search-input-group:focus-within {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(49, 117, 176, 0.15);
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px 0 20px;
  color: #adb5bd;
  font-size: 1.2rem;
}

.custom-input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  flex: 1;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 10px 15px;
}

.custom-btn {
  border-radius: 50px !important;
  padding: 10px 30px;
  font-weight: 600;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.custom-btn:hover {
  background-color: #004494;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.feedback-container {
  animation: fadeIn 0.5s ease;
}

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

.result-box {
  background: var(--card-bg);
  padding: 25px;
}

 /* Styles for hmc01.php generated content */
.custom-box {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid var(--box-border);
    background-color: var(--box-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.data-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.data-value {
    display: block;
    background-color: #fff;
    border: 1px solid #dce8f5;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    color: #2b3035;
    font-weight: 600;
    word-break: break-word;
    min-height: 42px;
}

.nf-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(49, 117, 176, 0.2);
}

.nf-header-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.nf-header-date {
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
}

.grid-row {
  display: grid;
  gap: 15px;
  margin-bottom: 15px;
}
.grid-cols-2 { grid-template-columns: 1fr 1fr; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-4-1 { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 768px) {
  .grid-row, .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-4-1 { grid-template-columns: 1fr; }
  .nf-header { flex-direction: column; text-align: center; gap: 10px; }
  .timeline-header { flex-direction: column; text-align: center; gap: 15px; }
  .timeline-action { margin-left: 0 !important; }
}

.timeline-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}
.timeline-item:hover {
    box-shadow: var(--shadow-lg);
}

.timeline-header {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    background: #fdfdfd;
}

.timeline-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}
.timeline-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.timeline-info {
    flex: 1;
}

.timeline-date {
    color: #28a745;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.timeline-title {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.timeline-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.timeline-meta span {
    margin-right: 15px;
    display: inline-block;
}

.timeline-action {
    margin-left: 20px;
}

.timeline-body {
    padding: 25px;
    background: var(--box-bg);
}

.btn-toggle-details {
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.carousel-custom-item {
    height: 500px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-custom-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
    width: 30px;
    height: 48px;
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
    width: 30px;
    height: 48px;
}
