/* --- Tool Card Container --- */
.tool-card {
    background: var(--bg-card); padding: 30px; border-radius: 12px;
    border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    margin: 40px 0;
}

/* --- FIXED: Input Row Alignment --- */
.input-row { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 20px; 
    align-items: flex-start; 
}

.country-box { 
    width: 100px; /* Label ki width ke liye thoda space badhaya */
    flex-shrink: 0; 
}

.number-box { 
    flex-grow: 1; 
}

/* Labels Styling */
.input-row label, .input-group label { 
    font-weight: 800; 
    font-size: 11px; 
    text-transform: uppercase; 
    color: var(--brand-blue); 
    display: block; 
    margin-bottom: 8px;
    white-space: nowrap; /* Label ko ek line mein rakhne ke liye */
}

/* Input & Textarea fields */
input[type="text"], textarea {
    width: 100%; padding: 12px; border: 1.5px solid var(--border);
    border-radius: 6px; background: var(--bg-body); font-size: 16px;
    box-sizing: border-box; /* Padding handling ke liye important */
}

textarea { height: 80px; resize: none; margin-top: 5px; }

/* --- Template Chips --- */
.template-chips { margin: 15px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.template-chips span {
    background: #e7f3ff; color: #0b57d0; padding: 6px 14px;
    border-radius: 20px; font-size: 12px; cursor: pointer; font-weight: 600;
    transition: 0.3s;
}
.template-chips span:hover { background: #0b57d0; color: #fff; }

/* --- Buttons --- */
.button-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.btn-send { background: #25d366; color: #fff; border: none; padding: 15px; border-radius: 8px; font-weight: 900; cursor: pointer; }
.btn-link { background: var(--brand-blue); color: #fff; border: none; padding: 15px; border-radius: 8px; font-weight: 900; cursor: pointer; }

/* --- QR Code Section --- */
.qr-container { margin-top: 30px; text-align: center; padding: 20px; background: #f9f9f9; border-radius: 10px; border: 1px solid var(--border); }
#qrcode img { margin: 0 auto; border: 5px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* --- History Section --- */
.history-container {
    margin-top: 25px; padding: 20px;
    background: rgba(11, 87, 208, 0.03);
    border-radius: 10px; border: 1px dashed var(--border);
}
.history-container h4 { font-size: 13px; color: var(--brand-blue); margin-bottom: 15px; text-transform: uppercase; font-weight: 800; }
.history-item {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-card); padding: 12px 15px; border-radius: 8px;
    margin-bottom: 8px; border: 1px solid var(--border); font-size: 14px;
    cursor: pointer; transition: 0.2s;
}
.history-item:hover { border-color: var(--brand-cyan); background: #f0f7ff; transform: translateY(-2px); }
.history-item .num-text { font-weight: 700; color: var(--text-main); }
.history-item .time-text { font-size: 11px; color: var(--text-muted); }
.btn-clear { background: transparent; border: none; color: #d93025; font-size: 11px; font-weight: 700; cursor: pointer; margin-top: 10px; text-decoration: underline; }

/* --- Mobile Responsiveness --- */
@media (max-width: 500px) {
    .input-row { flex-direction: column; }
    .country-box { width: 100%; }
    .button-group { grid-template-columns: 1fr; }
}

/* --- Dark Mode Support --- */
body.amp-dark-mode .qr-container { background: #202124; }
body.amp-dark-mode .template-chips span { background: #1a73e8; color: #fff; }
body.amp-dark-mode .history-container { background: rgba(255,255,255,0.05); }