/* --- Navigation Header --- */
#शीर्षपट्टिका {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;
    background: rgba(6, 11, 26, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
    padding : 5px;
    box-sizing: border-box;
}

#चिह्नम् {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: contain;
    transition: all 0.3s ease;
}
#चिह्नम्:hover {
    transform: scale(5);
    transform-origin: top left;
}

#मार्गसञ्चारकडी {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    padding-right: 30px;
}

#मार्गसञ्चारकडी a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

#मार्गसञ्चारकडी a:hover {
    color: yellow;
    transform: translateY(-2px) scale(1.05); 
    display: inline-block;
}

/* Layout Styling */
.solver-container {
    max-width: 600px;
    margin: 120px auto 40px; /* Space for the glass-nav */
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}

.control-card, .logic-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

/* Typography & Inputs */
#number-display {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #00ffcc; /* Digital Green */
    font-size: 1.2rem;
}

#minterm-input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-align: center;
}

/* Button Styling */
.piv-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.piv-btn.primary { background: #2c3e50; color: white; }
.piv-btn.accent { background: #3498db; color: white; }
.piv-btn:hover { opacity: 0.8; transform: translateY(-2px); }

/* Validation Colors */
.status-msg {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.teaser-body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #060b1a;
    overflow: hidden;
    color: white;
    text-align: center;
}

/* Scratchpad Styling */
#scratch-space {
    width: 100%;
    height: 150px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 8px;
    color: #38bdf8; /* Light Blue Text */
    padding: 15px;
    font-family: 'Fira Code', 'Courier New', monospace;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

#scratch-space:focus {
    border-color: #38bdf8;
}

/* Inputs and Labels */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
}

#minterm-input {
    width: 100%;
    padding: 20px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: white;
    font-size: 1.1rem;
    box-sizing: border-box;
}

/* Button Colors */
.piv-btn.primary { background: #0ea5e9; color: white; }
.piv-btn.accent { background: #6366f1; color: white; }

/* Style for the text input */
.input-group input {
    flex: 1; /* Takes up remaining space */
    min-width: 400px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Focus state for better UX */
.input-group input:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.25);
}