/* ===========================================
   Percentage Calculator - Tool Specific Styles (Orange/Slate Theme)
   =========================================== */

/* Tool Layout */
.pc-box {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Input & Card Structure --- */
.pc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.pc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s;
}

.pc-card:hover {
    border-color: #f97316; /* Orange hover effect */
}

.pc-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b; /* Slate Title */
    margin-bottom: 20px;
    border-bottom: 2px solid #fed7aa; /* Pale Orange underline */
    padding-bottom: 10px;
}

.pc-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.pc-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569; /* Grey Label */
    margin-bottom: 6px;
    display: block;
}

.pc-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-word {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
}

.pc-input {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1.1rem;
    flex-grow: 1;
    min-width: 0; /* Allows input to shrink in flex layout */
}

.pc-input:focus {
    border-color: #f97316;
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.pc-symbol {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f97316; /* Orange Symbol */
}

/* --- Result Area --- */
.pc-result-container {
    background: #fff7ed; /* Very Pale Orange BG */
    border: 2px solid #f97316;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    min-height: 100px; /* Uniform height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pc-result-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.pc-result-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ea580c; /* Deep Orange Value */
    word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .pc-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 500px) {
    .pc-input-row {
        flex-wrap: wrap;
    }
    .pc-word, .pc-symbol {
        margin-top: 5px;
    }
}