/* Konversi Page - Variant 2 Design */

/* Page Layout */
.konversi-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

/* Main Converter Area */
.converter-main {
  background: #fff;
}

.converter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.converter-header h2 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin: 0;
}

.date-picker-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.date-picker-bar label {
  font-weight: 500;
  color: #555;
  white-space: nowrap;
}

.date-picker-bar input[type="date"] {
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
}

.date-picker-bar input[type="date"]:focus {
  outline: none;
  border-color: #4a90d9;
}

.date-picker-bar .btn-today {
  padding: 0.6rem 1.25rem;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.date-picker-bar .btn-today:hover {
  background: #3a7bc8;
}

/* Gregorian Date Display */
.gregorian-display {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to right, #f8f4f0 0%, #f4f0f8 50%, #f0f4f8 100%);
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid #e8e4e0;
}

.gregorian-display h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.gregorian-display .saka-year {
  font-size: 1rem;
  color: #8b4513;
  font-weight: 500;
}

/* Detail Sections */
.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section h3 {
  font-size: 1rem;
  color: #8b4513;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #8b4513;
}

.detail-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.detail-card-mini {
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #eee;
}

.detail-card-mini .label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.detail-card-mini .value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
}

.detail-card-mini .meta {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Wewaran Grid */
.wewaran-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.wewaran-item {
  background: #f8f8f8;
  padding: 0.75rem;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #eee;
}

.wewaran-label {
  font-size: 0.85rem;
  color: #666;
}

.wewaran-value {
  font-weight: 500;
  color: #333;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 1rem;
}

.sidebar-card {
  background: #f8f4f0;
  border: 1px solid #e8e4e0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.sidebar-card:hover {
  border-color: #8b4513;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.sidebar-card .btn-link {
  display: inline-block;
  color: #8b4513;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.sidebar-card .btn-link:hover {
  text-decoration: underline;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 2rem;
  color: #d32f2f;
  background: #ffebee;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 800px) {
  .konversi-page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .wewaran-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gregorian-display h2 {
    font-size: 1.4rem;
  }
}
