/* ===============================
   GLOBAL RESET
=================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===============================
   VIOLET COLOR PALETTE
=================================*/
:root {
    --primary: #8b5cf6;       
    --secondary: #6d28d9;     
    --accent: #c084fc;        
    --dark-bg: #0f172a;
    --card-bg: rgba(30,41,59,0.85);
}

/* ===============================
   SCROLLBAR
=================================*/
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

/* ===============================
   BODY (Animated Gradient)
=================================*/
body {
    background: linear-gradient(-45deg, #0f172a, #312e81, #1e293b, #4c1d95);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #f1f5f9;
    font-family: 'Poppins', sans-serif;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===============================
   INPUTS & SELECT
=================================*/
input, select {
    background-color: #1f2937 !important;
    color: #ffffff !important;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 8px;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.03);
    outline: none;
}

/* ===============================
   CARD DESIGN
=================================*/
.card {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    border: 1px solid rgba(139,92,246,0.35) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease forwards;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 45px rgba(139,92,246,0.45);
}

.card i {
    color: var(--primary) !important;
    animation: float 3s ease-in-out infinite;
}

.card a {
    text-decoration: none;
    color: var(--primary) !important;
}

/* ===============================
   BUTTONS
=================================*/
.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.07);
    box-shadow: 0 0 25px var(--primary);
}

.btn-primary:active {
    animation: pulse 0.4s ease;
}

/* ===============================
   TEXT GRADIENT
=================================*/
.txt-royalblue {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===============================
   ACTIVE STATE
=================================*/
.active {
    background: linear-gradient(45deg, var(--primary), var(--accent)) !important;
    border-color: var(--primary) !important;
}

/* ===============================
   ANIMATIONS
=================================*/
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* ===============================
   KEYBOARD (Violet Glass Theme)
=================================*/
@media (min-width: 1024px) {

.keyboard {
    z-index: 9999999;
}

/* fallback Icon keyboard fonts */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialicons/v129/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* ===============================
   KEYBOARD BACKGROUND (Animated Violet Glow)
=================================*/
.keyboard {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 5px 0;

    background: #1e1b4b;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);

    animation: keyboardGlow 4s ease-in-out infinite alternate;

    user-select: none;
    transition: bottom 0.4s;
}

/* Soft breathing glow animation */
@keyframes keyboardGlow {
    0% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    100% {
        box-shadow: 0 0 60px rgba(192, 132, 252, 0.6);
    }
}

.keyboard--hidden {
    bottom: -100%;
}

.keyboard__keys {
    text-align: center;
}

/* ===============================
   KEYS
=================================*/
.keyboard__key {
    height: 45px;
    width: 6%;
    max-width: 90px;
    margin: 3px;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.4);

    background: rgba(139, 92, 246, 0.15);
    color: #f1f5f9;

    font-size: 1.05rem;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: top;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    position: relative;

    transition: all 0.25s ease;
}

/* Hover animation */
.keyboard__key:hover {
    background: linear-gradient(45deg, #8b5cf6, #6d28d9);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.7);
    transform: translateY(-3px);
}

/* Press animation */
.keyboard__key:active {
    background: #c084fc;
    color: #0f172a;
    transform: scale(0.95);
    box-shadow: 0 0 25px rgba(192, 132, 252, 0.9);
}

.keyboard__key--wide {
    width: 15% !important;
}

.keyboard__key--extra-wide {
    width: 36%;
    max-width: 500px;
}

/* ===============================
   INDICATOR DOT
=================================*/
.keyboard__key--activatable::after {
    content: '';
    top: 10px;
    right: 10px;
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(139, 92, 246, 0.5);
    border-radius: 50%;
}

/* Active pulsing dot */
.keyboard__key--active::after {
    background: #c084fc;
    animation: pulseDot 1.2s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0.3;
    }
}

.keyboard__key--dark {
    background: rgba(76, 29, 149, 0.6);
    color: #ffffff;
}

.hide-me {
    display: none;
}

.backspace-btn {
    width: 200px !important;
    margin-left: 0px !important;
    margin-right: 3px !important;
}

.nr-0 {
    margin-right: 33px !important;
}

}