/* ========================================================
   Tech Theme Modernization - Pastel UI Upgrade
   ======================================================== */

body {
    font-family: 'Inter', sans-serif;
    /* Soft, smooth pastel gradient */
    background: linear-gradient(135deg, #fdfbfb 0%, #e2ebf0 100%);
    background-attachment: fixed;
    color: #334155;
}

/* Glassmorphism Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.navbar .nav-link, .navbar-brand {
    color: #475569 !important;
    font-weight: 600;
}

.navbar .nav-link:hover {
    color: #6366f1 !important; /* Soft indigo hover */
}

.navbar .navbar-toggler-icon {
    filter: invert(1) !important;
}

.navbar .dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.navbar .dropdown-menu a {
    color: #475569;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5 {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #334155 !important;
}

p, label, li {
    color: #475569 !important;
}

/* Background Utility Classes */
.bg-light, .bg-white {
    background-color: transparent !important;
}

.bg-dark {
    background-color: rgba(255, 255, 255, 0.6) !important;
    color: #334155 !important;
}

/* Controls & Form Hub Glassmorphism */
#controls {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(100, 116, 139, 0.08); /* Soft slate shadow */
    padding: 30px !important;
}

/* Inputs and Forms */
.form-control {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 10px;
    padding: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-control:focus {
    background: #ffffff !important;
    border-color: #a1c4fd !important;
    box-shadow: 0 0 15px rgba(161, 196, 253, 0.4) !important;
}

/* Vibrant Animated Buttons (Pastel Smooth) */
input[type="submit"], .btn-primary, .btn-success {
    /* Smooth pastel blue */
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%) !important;
    border: none !important;
    color: #1e293b !important;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(161, 196, 253, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

input[type="submit"]:hover, .btn-primary:hover, .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(161, 196, 253, 0.5) !important;
}

.btn-outline-info {
    color: #64748b !important;
    border-color: #cbd5e1 !important;
    background: rgba(255,255,255,0.8) !important;
}

.btn-outline-info:hover {
    /* Soft pastel violet to pastel blue */
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%) !important;
    color: #1e293b !important;
    border-color: transparent !important;
}

/* Modal Styling */
.modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 1) !important;
    color: #334155 !important;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tables (Truth Tables & K-Maps) */
table {
    color: #334155 !important;
    background: #ffffff !important;
    border-collapse: separate;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

th {
    background: rgba(241, 245, 249, 0.8) !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

td {
    border: 1px solid #e2e8f0 !important;
}

/* Icon / Graphic accents */
.fa-gamepad, .fa-check-square {
    color: #a1c4fd !important;
}
