/* Base Container */
.kra-calculator-widget {
  background-color: #ffffff;
  padding: 25px 20px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  color: #000000;
  box-sizing: border-box;
}

/* Header */
.kra-calc-header {
  background-color: #000000; 
  color: #D4AF37; 
  text-align: center;
  padding: 15px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 6px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Inputs */
.kra-input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
  color: #000000;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.kra-input::placeholder { color: #888888; }
.kra-input:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

/* Buttons */
.kra-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}
.kra-btn-primary {
  background: linear-gradient(135deg, #000000 0%, #D4AF37 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.kra-btn-primary:hover {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6); 
  transform: translateY(-2px);
}
.kra-btn-reset {
  background-color: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}
.kra-btn-reset:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Results Table */
.kra-results-hidden { display: none; }
.kra-results-table {
  width: 100%;
  background: #ffffff;
  border-collapse: collapse;
  margin-bottom: 15px;
  margin-top: 10px;
  border: 1px solid #eaeaea;
  font-size: 0.9rem;
}
.kra-results-table th, .kra-results-table td {
  border: 1px solid #eaeaea;
  padding: 10px;
}
.kra-table-title {
  color: #000000; 
  text-align: center;
  font-weight: 800;
  padding: 12px;
  background: #f9f9f9;
  border-bottom: 2px solid #D4AF37 !important;
}
.kra-results-table td:first-child {
  text-align: right;
  color: #444444;
  font-weight: 600;
}
.kra-amount {
  text-align: right;
  color: #000000;
  font-family: monospace;
  font-size: 0.95rem;
}
.kra-highlight-row { background-color: rgba(212, 175, 55, 0.05); }
.kra-bold-label, .kra-bold-val {
  color: #000000 !important;
  font-weight: 900 !important;
}

/* Footer Note */
.kra-note {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  color: #666666;
  text-align: center;
}
.kra-note strong { color: #000000; }
/* ==========================================================================
   7. FLOAT THE RESULTS TABLE (POPOVER EFFECT)
   ========================================================================== */
.kra-calculator-widget {
  /* Ensure the widget acts as the anchor for the floating table */
  position: relative !important; 
}

.calc-results-container {
  position: absolute;
  top: 100%; /* Drops it immediately below the calculator */
  left: 0;
  width: 100%; /* Matches the width of the calculator */
  background-color: #ffffff;
  z-index: 999; /* Forces it to hover above all other page content */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid #D4AF37; /* Gold border to frame the popout */
  border-radius: 8px;
  padding: 15px;
  box-sizing: border-box;
  
  /* Adds a smooth fade-in effect */
  animation: popIn 0.3s ease-out;
}

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