/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}*/

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/**html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}*/




/*Extra Add by Myself*/

/* Default styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* For tablets (screen width between 600px and 1024px) */
@media (min-width: 600px) and (max-width: 1024px) {

    html {
        position: relative;
        min-height: 100%;
        font-size: 16px; /* Base font size for tablets */
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .tableSale {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        font-size: 14px; /* Optional: adjust text */
    }

    .table-container1 {
        width: 100%; /* Stack user list above or below */
        max-height: 40%;
        margin-left: 0;
    }

    #keyboard button {
        font-size: 18px;
        padding: 12px;
    }
}


/* For mobile devices (screen width less than 600px) */
@media (max-width: 599px) {
    html {
        position: relative;
        min-height: 100%;
        font-size: 14px; /* Base font size for mobile */
        overflow: hidden;
    }
}

/* iPad Safari REAL FIX */
@media only screen and (min-device-width: 768px) and (max-device-width: 1366px) {
    .header-inner {
        padding-left: 40px;
        padding-right: 40px;
    }


    html, body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
 
    .container
    {
        max-width: 100% !important;
        padding-left: 50px !important;
        padding-right: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    .mainTable {
        max-width: 95% !important;
       
       
        height: 68vh;
      
        padding-bottom: 10px; /*  buttons ke liye space */
    }
    .buttonBox-container {
        grid-template-columns: 1fr; /* stack */
        max-width:95%;
    }

    .btn-left {
        justify-content: flex-start;
    }

    .btn-right {
        justify-content: flex-end;
    }
    .tableSale {
        flex: 1;
        height: 100%;
    }

    .table-container1 {
        max-height: calc(100vh - 180px);
        overflow-y: auto;
        margin-top: 0;
    }

    #mainContent {
        height: 100vh;
        overflow-y: auto; /* scrollbar yahin rahega */
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;

    }
    .box-container {
        max-width: 95%;
    }
}

.top-header {
    position: sticky;
    margin-top: 40px;
    margin-bottom: 20px;
    z-index: 1000;
}

.header-inner {
    max-width: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container {
    display: flex;
    flex-wrap: wrap;
}

.item {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, and base size */
    margin: 10px;
    background-color: #f0f0f0;
    padding: 20px;
}
/* For Svg icon image color*/
img {
    filter: invert(100%) sepia() saturate(0%) hue-rotate(0);
}

/* Keyboard container */
/* Keyboard container */
.keyboard {
    display: grid;
    grid-template-columns: repeat(10, 40px); /* small keys */
    gap: 3px;
    padding: 5px;
    background: linear-gradient(145deg, #0d1b2a, #112240); /* dark blue nebula */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3), 0 0 25px rgba(0, 123, 255, 0.2);
    width: max-content;
    font-family: 'Courier New', monospace;
}

/* Each key */
.key {
    padding: 6px 0;
    text-align: center;
    background: linear-gradient(135deg, #6a1b9a, #4a148c, #232734);
    border-radius: 6px;
    border: 1px solid #007bff; /* neon blue border */
    color: white; /* cyan-blue text */
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 4px rgba(0, 191, 255, 0.3);
    font-size: 14px;
}

    .key:hover {
        background: #007bff; /* bright blue on hover */
        color: #112240; /* dark text on hover */
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.7), 0 0 15px rgba(0, 123, 255, 0.5);
        transform: translateY(-1px);
    }

/* Special keys */
.key-space {
    grid-column: span 5; /* wide spacebar */
}

.key-back {
    background: #0056b3;
    color: #fff;
    border-color: #3399ff;
}

    .key-back:hover {
        background: #3399ff;
        color: #112240;
        box-shadow: 0 0 8px rgba(51, 153, 255, 0.7), 0 0 15px rgba(51, 153, 255, 0.5);
    }
