/* ===============================
   GLOBAL RESET
=================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===============================
   GREEN COLOR PALETTE
=================================*/
:root {
    --primary: #22c55e;        /* Bright Green */
    --secondary: #15803d;      /* Deep Green */
    --accent: #4ade80;         /* Light Green */
    --dark-bg: #0f172a;
    --card-bg: rgba(30,41,59,0.85);
}

/* ===============================
   SCROLLBAR (Green Glow)
=================================*/
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

/* ===============================
   BODY (Green Animated Gradient)
=================================*/
body {
    background: linear-gradient(-45deg, #0f172a, #064e3b, #1e293b, #065f46);
    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 (Green Glow Focus)
=================================*/
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 (Green Glass)
=================================*/
.card {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    border: 1px solid rgba(34,197,94,0.3) !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(34,197,94,0.4);
}

/* Floating Icon */
.card i {
    color: var(--primary) !important;
    animation: float 3s ease-in-out infinite;
}

.card a {
    text-decoration: none;
    color: var(--primary) !important;
}

/* ===============================
   BUTTONS (Green Gradient)
=================================*/
.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 EFFECT
=================================*/
.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;
}

/* ===============================
   IMAGE
=================================*/
.img {
    height: 50px;
}

/* ===============================
   HEIGHT UTILITIES
=================================*/
.h-h { height: calc(100vh - 93vh); width: 100%; }
.h-side { height: 82vh; overflow-y: auto; }
.h-mid { height: 81vh; width: 65%; overflow-y: auto; }
.h-f { height: calc(100vh - 96vh); width: 100%; }
.tableHeight { height: calc(100vh - 10vh); overflow-y: auto; }

/* ===============================
   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); }
}

/* ===============================
   RESPONSIVE
=================================*/
@media (max-width: 575px) {
    .fa-2x {
        font-size: 20px !important;
    }
}

@media (max-width: 550px) {
    .h-mid {
        width: 100%;
    }
}

/* ===============================
   KEYBOARD (Green 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 Green Glow)
=================================*/
.keyboard {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 5px 0;

    background: #14532d; /* Deep Green */
    box-shadow: 0 0 30px rgba(34,197,94,0.4);

    animation: keyboardGlow 4s ease-in-out infinite alternate;

    user-select: none;
    transition: bottom 0.4s;
}

/* Soft breathing green glow */
@keyframes keyboardGlow {
    0% {
        box-shadow: 0 0 20px rgba(34,197,94,0.3);
    }
    100% {
        box-shadow: 0 0 60px rgba(74,222,128,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(34,197,94,0.4);

    background: rgba(34,197,94,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, #22c55e, #16a34a);
    box-shadow: 0 0 18px rgba(34,197,94,0.7);
    transform: translateY(-3px);
}

/* Press animation */
.keyboard__key:active {
    background: #4ade80;
    color: #0f172a;
    transform: scale(0.95);
    box-shadow: 0 0 25px rgba(74,222,128,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(34,197,94,0.5);
    border-radius: 50%;
}

/* Active pulsing dot */
.keyboard__key--active::after {
    background: #4ade80;
    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(22,163,74,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;
}

}