/* --- TỔNG QUAN --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Orbitron:wght@700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9; /* Xám xanh nhạt dịu mắt */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px; /* Họa tiết chấm bi nhỏ hiện đại */
}

/* --- LOGO & HEADER --- */
.brand-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); /* Xanh Navy sang trọng */
    color: white;
}

/* --- INPUT FIELDS --- */
.input-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-style {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #fff;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s ease;
    appearance: none; /* Xóa mũi tên mặc định xấu xí của trình duyệt */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.input-style:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* --- MÀN HÌNH LED SỐ (DIGITAL SCREEN) --- */
#digitalScreen {
    font-family: 'Courier New', Courier, monospace; /* Font an toàn nhất */
    font-weight: bold;
    letter-spacing: 0.1em;
    text-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e; /* Hiệu ứng phát sáng */
}
/* Hiệu ứng quét màn hình cũ */
#digitalScreen::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* --- NÚT BẤM 3D (BIG SPIN BUTTON) --- */
.btn-3d {
    background: linear-gradient(to bottom, #3b82f6, #2563eb);
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 6px 0 #1d4ed8, 0 12px 12px rgba(0,0,0,0.2); /* Tạo độ dày 3D */
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem;
    width: 100%;
    position: relative;
    top: 0;
    transition: all 0.1s;
    cursor: pointer;
}

.btn-3d:active {
    top: 6px; /* Khi bấm nút lún xuống */
    box-shadow: 0 0 0 #1d4ed8, 0 0 0 rgba(0,0,0,0.2);
}

.btn-3d:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    top: 6px;
}

/* --- BẢNG KẾT QUẢ --- */
.table-header {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-row {
    background-color: white;
    transition: background-color 0.2s;
}
.result-row:hover {
    background-color: #f0f9ff; /* Xanh siêu nhạt khi di chuột vào */
}

/* --- ANIMATION --- */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-in {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loader {
    width: 20px; height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }