/* ===========================================
   Distance Calculator - Tool Specific Styles
   =========================================== */

/* Tool Layout */
.dc-box {
    max-width: 800px;
    margin: 0 auto;
}

/* Input/Control Section */
.dc-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    background: #f8fbfd; /* Light Blue/Gray BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0f2fe;
    margin-bottom: 30px;
}

/* Point A and Point B Containers */
.dc-point-group {
    flex: 1 1 300px; /* Allows two columns on wider screens */
    padding: 15px;
    border: 1px dashed #bfdbfe;
    border-radius: 8px;
}

.dc-point-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d4ed8; /* Blue accent */
    margin-bottom: 15px;
    text-align: center;
}

.dc-input-group {
    margin-bottom: 15px;
}

.dc-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.dc-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    color: #1f2937;
}

.dc-btn-calc {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #22c55e; /* Green button */
    color: white;
    transition: background 0.2s;
    margin-top: 10px;
}
.dc-btn-calc:hover {
    background: #16a34a;
}

/* Result Display */
.dc-result-card {
    background: #ffffff;
    border: 2px solid #22c55e; /* Green accent */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.dc-result-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #6b7280;
    margin-bottom: 5px;
}

.dc-distance-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.dc-unit {
    font-size: 1.5rem;
    font-weight: 500;
    color: #4b5563;
    display: block;
    margin-top: -5px;
}

.dc-error {
    color: #dc2626;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Details Table */
.dc-details-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.dc-details-table td {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #4b5563;
}
.dc-details-table td:first-child {
    font-weight: 600;
    color: #1f2937;
    text-align: left;
}
.dc-details-table td:last-child {
    text-align: right;
}

/* Responsive */
@media (max-width: 650px) {
    .dc-controls {
        flex-direction: column;
        gap: 15px;
    }
    .dc-point-group {
        width: 100%;
    }
}