/* ===========================================
   Protein Intake Calculator - Tool Specific Styles (Vibrant Blue/White Theme)
   =========================================== */

/* Tool Layout */
.pic-box {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

/* --- Input Area --- */
.pic-input-group {
    background: #f0f8ff; /* Very Pale Blue BG */
    border: 1px solid #90caf9;
    border-radius: 12px;
    padding: 30px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pic-toggle-container {
    margin-bottom: 25px;
    text-align: center;
}
.pic-toggle {
    display: flex;
    justify-content: center;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
}
.pic-toggle label {
    flex: 1;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #475569; /* Slate Gray */
    transition: all 0.2s;
    user-select: none;
}
.pic-toggle input[type="radio"] {
    display: none;
}
.pic-toggle input[type="radio"]:checked + label {
    background: #2196f3; /* Vibrant Blue Active BG */
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pic-input-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.pic-input-item {
    text-align: left;
}

.pic-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1976d2; /* Medium Blue Label */
    margin-bottom: 6px;
    display: block;
}

.pic-input-field, .pic-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #64b5f6; /* Light Blue Border */
    border-radius: 6px;
    font-size: 1.1rem;
    color: #1f2937;
    box-sizing: border-box;
    background-color: white;
}
.pic-input-field:focus, .pic-select:focus {
    border-color: #0d47a1; /* Darker Blue Focus */
    outline: none;
}
.pic-select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%231976d2" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* --- Results Display --- */
.pic-results {
    margin-top: 30px;
}

.pic-summary-box {
    padding: 30px;
    background: #1976d2; /* Primary Blue Background */
    border: 3px solid #e3f2fd; /* Lightest Blue Border */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
}

.pic-result-header {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e3f2fd;
}

/* Primary Result */
.pic-primary-value {
    font-size: 3rem;
    font-weight: 900;
    color: #ffeb3b; /* Yellow/Gold Highlight */
    line-height: 1.1;
    margin-bottom: 5px;
}

.pic-primary-unit {
    font-size: 1.1rem;
    font-weight: 500;
    color: #bbdefb;
    margin-bottom: 25px;
}

/* Detailed Range */
.pic-range-grid {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #4fc3f7;
}

.pic-range-item {
    text-align: center;
}

.pic-range-label {
    font-size: 0.9rem;
    color: #bbdefb;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.pic-range-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e3f2fd;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .pic-input-row {
        grid-template-columns: 1fr;
    }
    .pic-toggle {
        flex-direction: column;
    }
    .pic-primary-value {
        font-size: 2.5rem;
    }
    .pic-range-grid {
        flex-direction: column;
        gap: 10px;
    }
}