/* ============================================================
   ADVANCED PROFIT CALCULATOR WIDGET V5 (COMPACT LAYOUT)
   ============================================================ */
.apk-calculator-widget-v2 {
    background-color: #0f172a; 
    color: #fff; 
    border-radius: 16px;
    padding: 25px;
    font-family: 'Inter', sans-serif;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.calc-header {
    text-align: center; 
    border-bottom: 1px solid #334155;
    padding-bottom: 10px; 
    margin-bottom: 15px;
}

.timer-blinking {
    font-size: 10px;
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    color: #f59e0b; 
    animation: blink 1.5s infinite;
}

@keyframes blink { 50% { opacity: 0.5; } }

.timer-display {
    font-size: 28px;
    font-weight: 700; 
    font-family: 'Outfit', sans-serif; 
    color: #fff;
    letter-spacing: 2px;
}

.calc-body {
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    margin-bottom: 15px;
}

.calc-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.calc-input-group label {
    font-size: 12px;
    color: #94a3b8; 
    display: block; 
    margin-bottom: 6px;
}

.calc-input-group input,
.calc-input-group select {
    width: 100%; 
    background-color: #1e293b; 
    border: 1px solid #334155;
    border-radius: 8px; 
    padding: 12px;
    color: #fff; 
    font-size: 14px; 
    outline: none;
    box-sizing: border-box; 
}

.calc-input-group input:focus,
.calc-input-group select:focus { 
    border-color: #2563eb; 
}

.calc-footer {
    display: flex; 
    flex-direction: column; 
    gap: 10px;
}

/* THE FIX: New grid for the first two result boxes */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.result-box {
    background-color: #1e293b; 
    padding: 8px 12px; /* CHANGED: Reduced padding for smaller height */
    border-radius: 8px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.result-label {
    font-size: 13px; /* CHANGED: Slightly smaller font */
    color: #94a3b8;
}

.result-value {
    font-size: 14px; /* CHANGED: Slightly smaller font */
    font-weight: 700; 
    color: #fff;
}

.result-box.total .result-value {
    color: #f59e0b; 
    font-size: 16px; /* CHANGED: Slightly smaller font */
}

@media (max-width: 600px) {
    .calc-inputs-grid {
        grid-template-columns: 1fr;
    }
}