/* ===========================================
Julian Date Converter - Tool Specific Styles
=========================================== */

/* Tool Layout */
.jdc-box {
 max-width: 900px;
 margin: 0 auto;
}

/* Controls Layout */
.jdc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.jdc-section {
 padding: 25px;
 border-radius: 12px;
 background: #f0faff; /* Light Blue Background */
 border: 1px solid #bae6fd;
}

.jdc-section-title {
 font-size: 1.1rem;
 font-weight: 700;
 color: #1e40af; /* Dark Blue Title */
 margin-bottom: 20px;
 padding-bottom: 8px;
 border-bottom: 2px solid #93c5fd;
}

/* Input Rows */
.jdc-input-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.jdc-input-group {
 flex: 1 1 30%; /* Three inputs per row */
 display: flex;
 flex-direction: column;
}

.jdc-label {
 font-size: 0.95rem;
 font-weight: 600;
 color: #1f2937;
 margin-bottom: 6px;
}

.jdc-input {
 padding: 10px;
 border: 1px solid #93c5fd;
 border-radius: 6px;
 font-size: 1.1rem;
 color: #1f2937;
 width: 100%;
 background-color: white;
    text-align: center;
}
.jdc-help-text {
 font-size: 0.8rem;
 color: #4b5563;
 margin-top: 5px;
}


/* Calculate Button */
.jdc-btn-calc {
 width: 100%;
 padding: 15px 20px;
 font-size: 1.2rem;
 font-weight: 700;
 border: none;
 border-radius: 8px;
 cursor: pointer;
 background: #3b82f6; /* Primary Blue Button */
 color: white;
 transition: background 0.2s;
 margin-top: 10px;
}
.jdc-btn-calc:hover {
 background: #2563eb;
}

/* --- Results Section --- */

.jdc-results-section {
 margin-top: 30px;
 text-align: center;
}

.jdc-result-box {
 background: #ffffff;
 padding: 30px;
 border-radius: 10px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 border: 2px solid #3b82f6;
}

.jdc-card-title {
 font-size: 1.1rem;
 text-transform: uppercase;
 color: #1e40af;
 margin-bottom: 10px;
 font-weight: 700;
}

/* Main JD Display */
.jdc-value-main {
 font-size: 3.5rem;
 font-weight: 800;
 color: #3b82f6;
 line-height: 1;
 margin-bottom: 5px;
    font-family: monospace, sans-serif; /* Use monospace for high-precision numbers */
}
.jdc-unit {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 25px;
}

/* Breakdown Display */
.jdc-breakdown {
 display: flex;
 justify-content: center;
 gap: 25px;
 flex-wrap: wrap;
 padding-top: 20px;
 border-top: 1px dashed #bfdbfe;
}

.jdc-breakdown-item {
 text-align: center;
 flex: 1 1 200px;
 padding: 15px;
    border-radius: 8px;
    background: #eff6ff;
}

.jdc-breakdown-number {
 font-size: 1.8rem;
 font-weight: 700;
 color: #1e40af;
 line-height: 1.2;
    font-family: monospace, sans-serif;
}

.jdc-breakdown-unit {
 font-size: 0.9rem;
 color: #4b5563;
 text-transform: uppercase;
 margin-top: 5px;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .jdc-input-row {
  flex-direction: column;
  gap: 15px;
 }
    .jdc-input-group {
        flex-basis: 100%;
    }
    .jdc-value-main {
  font-size: 2.5rem;
 }
 .jdc-breakdown {
  flex-direction: column;
 }
}