﻿/* ============================================
   Login Page Modern Styling
   Matching NewReceipt.css and NewEOD.css patterns
   ============================================ */

/* Global adjustments */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.custom-body {
    height: 100vh;
    background: #F5F7F8;
}

/* ============================================
   Logo Styles (Preserved)
   ============================================ */
.shadow-logo {
    background-image: url('NewImages/shadow.png');
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.symposium-logo {
    background-image: url('NewImages/symposium logo.png');
    background-repeat: no-repeat;
    width: 159px;
    height: 159px;
}

.download-logo {
    background-image: url('NewImages/download-update.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: brightness(0);
}

.exit-logo {
    background-image: url('NewImages/exit.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: brightness(0);
}

/* Badge-style container for action buttons */
.action-button-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 8px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    width: 100%;
    height: 100%;
    min-height: 44px;
    box-sizing: border-box;
    cursor: pointer;
    border: 2px solid transparent;
}

.action-button-container.download-button {
    background: #E6E6E6;
    border-color: #00FF95;
    box-shadow: 0 2px 6px rgba(0, 255, 149, 0.3);
}

.action-button-container.download-button:hover {
    background: #D0D0D0;
    border-color: #00e685;
    box-shadow: 0 4px 12px rgba(0, 255, 149, 0.4);
    transform: translateY(-1px);
}

.action-button-container.exit-button {
    background: #E6E6E6;
    border-color: #FF5469;
    box-shadow: 0 2px 6px rgba(255, 84, 105, 0.3);
}

.action-button-container.exit-button:hover {
    background: #D0D0D0;
    border-color: #e04456;
    box-shadow: 0 4px 12px rgba(255, 84, 105, 0.4);
    transform: translateY(-1px);
}

.login-shadow-logo {
    background-image: url('NewImages/shadow_1.png');
    background-repeat: no-repeat;
    max-width: 100%;
}

.log-in-staff-logo {
    background-image: url('NewImages/user small active.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 48px;
    height: 48px;
    display: block;
}

.store-message-shadow-logo {
    background-image: url('NewImages/gray shadow.png');
    background-repeat: no-repeat;
    max-width: 100%;
}

.hit-logo {
    background-image: url('NewImages/hit_logo_only.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 140px;
    height: 80px;
    max-width: 100%;
    max-height: 100%;
}

/* ============================================
   Compatibility Check Container (registerState == 0)
   ============================================ */
.compatibility-check {
    width: 40%;
    height: 25%;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.compatibility-check:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* ============================================
   Register Client Form (registerState == 1)
   ============================================ */
.register-check {
    width: 60%;
    height: 60%;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 24px;
    transition: all 0.3s ease;
}

.register-divider {
    border: 1px solid #DFE3E4;
    width: 95%;
    margin: 16px auto;
    opacity: 1;
}

/* Modern Input Fields */
.register-check .custom-input {
    background: #FFFFFF;
    border: 2px solid #DFE3E4;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #1c2323;
    transition: all 0.2s ease;
    min-height: 44px;
}

.register-check .custom-input:focus {
    border-color: #00a1ff;
    box-shadow: 0 0 0 3px rgba(0, 161, 255, 0.1);
    outline: none;
}

.register-check .custom-input::placeholder {
    color: #909494;
}

/* Keyboard Buttons */
.register-keyboard {
    width: 35%;
    height: 70%;
    min-height: 44px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F7F8 100%);
    border: 2px solid #DFE3E4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.register-keyboard:hover {
    background: linear-gradient(135deg, #F5F7F8 0%, #FFFFFF 100%);
    border-color: #00a1ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 161, 255, 0.15);
}

.register-keyboard i {
    color: #475859;
    font-size: 18px;
}

/* Client Toggle Button */
.register-client {
    border: 2px solid #DFE3E4;
    border-radius: 10px;
    width: 70%;
    height: 85%;
    min-height: 44px;
    background: linear-gradient(135deg, #FF5469 0%, #e04456 100%);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 84, 105, 0.3);
}

.register-client:hover {
    background: linear-gradient(135deg, #e04456 0%, #cc3344 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 84, 105, 0.4);
}

.register-client-selected {
    background: linear-gradient(135deg, #00a1ff 0%, #0083ff 100%) !important;
    border-color: #00a1ff !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(0, 161, 255, 0.3) !important;
}

.register-client-selected:hover {
    background: linear-gradient(135deg, #0083ff 0%, #006fe0 100%) !important;
}

/* Language Flag Selection */
.register-language-selected {
    width: auto;
    background: linear-gradient(135deg, #00FF95 0%, #00e685 100%);
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 255, 149, 0.3);
    transition: all 0.2s ease;
}

/* Register Footer */
.register-footer {
    background: linear-gradient(135deg, #F5F7F8 0%, #FFFFFF 100%);
    border-top: 2px solid #DFE3E4;
    border-radius: 0 0 12px 12px;
    padding: 16px;
}

.register-footer .custom-default-button {
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    background: linear-gradient(135deg, #00a1ff 0%, #0083ff 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 161, 255, 0.3);
    cursor: pointer;
}

.register-footer .custom-default-button:hover {
    background: linear-gradient(135deg, #0083ff 0%, #006fe0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 149, 0.4);
}

.register-footer .custom-default-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 161, 255, 0.3);
}

/* ============================================
   Loading State (registerState == 2)
   ============================================ */
.loading-logo {
    width: 65%;
    height: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-logo-footer {
    box-shadow: 0 8px 24px rgba(71, 88, 89, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.loading-logo-footer:hover {
    box-shadow: 0 12px 32px rgba(71, 88, 89, 0.4);
    transform: scale(1.02);
}

/* ============================================
   Main Login Interface (registerState == 3)
   ============================================ */

/* Staff Login Section - Not Logged In */
.staff-not-logged-in {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 20px;
    transition: all 0.3s ease;
}

.staff-not-logged-in:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Staff Login/Logout Buttons */
.staff-login-button,
.staff-logout-button {
    width: 80%;
    height: 55%;
    min-height: 44px;
    background: linear-gradient(135deg, #FF5469 0%, #e04456 100%);
    border-radius: 8px;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 84, 105, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.staff-login-button:hover,
.staff-logout-button:hover {
    background: linear-gradient(135deg, #e04456 0%, #cc3344 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 84, 105, 0.4);
}

.staff-login-button:active,
.staff-logout-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 84, 105, 0.3);
}

/* Staff Keyboard Button */
.staff-keyboard {
    width: 70%;
    height: 65%;
    min-height: 44px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F7F8 100%);
    border: 2px solid #DFE3E4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.staff-keyboard:hover {
    background: linear-gradient(135deg, #F5F7F8 0%, #FFFFFF 100%);
    border-color: #00a1ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 161, 255, 0.15);
}

.staff-keyboard i {
    color: #475859;
    font-size: 18px;
}

/* Staff Input Fields */
.staff-not-logged-in .custom-input {
    background: #FFFFFF;
    border: 2px solid #DFE3E4;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #1c2323;
    transition: all 0.2s ease;
    min-height: 44px;
}

.staff-not-logged-in .custom-input:focus {
    border-color: #00a1ff;
    box-shadow: 0 0 0 3px rgba(0, 161, 255, 0.1);
    outline: none;
}

.staff-not-logged-in .custom-input::placeholder {
    color: #909494;
}

/* Staff Header - Logged In */
.staff-header-logged-in {
    background: #FFFFFF;
    border-radius: 12px 12px 0 0;
    padding: 22px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid #DFE3E4;
}

.staff-header-title {
    color: #1c2323;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    justify-content: space-between;
}

.staff-header-title > div:first-child {
    flex: 1;
}

.staff-header-title > div:last-child {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.staff-header-logged-in .log-in-staff-logo {
    width: 56px;
    height: 56px;
    background-size: contain;
    background-color: #FFFFFF;
    padding: 6px;
}

.staff-connected-label {
    color: #475859;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.staff-name {
    color: #1c2323;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.staff-header-logged-in .staff-logout-button {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    background: #FF5469;
    border-radius: 8px;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255, 84, 105, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.staff-header-logged-in .staff-logout-button i {
    font-size: 20px;
    line-height: 1;
}

.staff-header-logged-in .staff-logout-button:hover {
    background: #e04456;
    box-shadow: 0 3px 8px rgba(255, 84, 105, 0.3);
}

.staff-header-logged-in .staff-logout-button:active {
    background: #cc3344;
    box-shadow: 0 1px 2px rgba(255, 84, 105, 0.2);
}

/* Staff Footer - Logged In */
.staff-footer-logged-in {
    background: #FFFFFF;
    border-radius: 0 0 12px 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Worksheet Button */
.worksheet-button-container {
    width: 100%;
    height: 43px;
    margin-bottom: 12px;
}

.worksheet-button {
    width: 95%;
    height: 90%;
    min-height: 44px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.worksheet-button-on-duty {
    background: linear-gradient(135deg, #00FF95 0%, #00e685 100%);
    color: #1c2323;
    box-shadow: 0 2px 8px rgba(0, 255, 149, 0.3);
}

.worksheet-button-on-duty:hover {
    background: linear-gradient(135deg, #00e685 0%, #00d675 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 149, 0.4);
}

.worksheet-button-off-duty {
    background: linear-gradient(135deg, #FF5469 0%, #e04456 100%);
    box-shadow: 0 2px 8px rgba(255, 84, 105, 0.3);
}

.worksheet-button-off-duty:hover {
    background: linear-gradient(135deg, #e04456 0%, #cc3344 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 84, 105, 0.4);
}

.worksheet-button:active {
    transform: translateY(0);
}

/* Redirect Buttons */
.redirect-button-container {
    width: 50%;
    height: 43px;
    margin-bottom: 12px;
}

.redirect-button {
    width: 90%;
    height: 90%;
    min-height: 44px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F7F8 100%);
    border: 2px solid #DFE3E4;
    border-radius: 8px;
    color: #1c2323;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.redirect-button:hover {
    background: linear-gradient(135deg, #F5F7F8 0%, #FFFFFF 100%);
    border-color: #00a1ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 161, 255, 0.2);
}

.redirect-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Staff List Container */
.staffs-container {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.staffs-container:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.staffs-header {
    border-bottom: 2px solid #DFE3E4;
    color: #1c2323;
    font-weight: 700;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.log-in-staff-container {
    margin: 1% 0%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Staff Cards */
.log-in-staff {
    width: 18.8%;
    height: 100px;
    margin: 0.5%;
    background: #F5F7F8;
    border: 2px solid #DFE3E4;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 8px;
}

.log-in-staff:hover {
    background: #F5F7F8;
    border-color: #00a1ff;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 161, 255, 0.2);
}

.log-in-staff-selected {
    background: linear-gradient(135deg, #00FF95 0%, #00e685 100%) !important;
    border-color: #00FF95 !important;
    box-shadow: 0 4px 12px rgba(0, 255, 149, 0.3) !important;
    transform: translateY(-2px);
}

.log-in-staff-selected:hover {
    background: linear-gradient(135deg, #00e685 0%, #00d675 100%) !important;
}

.log-in-staff-name {
    overflow: hidden;
    word-break: break-word;
    font-size: 12px;
    color: #1c2323;
    font-weight: 500;
    text-align: center;
    margin-top: 4px;
}

.log-in-staff-selected .log-in-staff-name {
    color: #1c2323;
    font-weight: 600;
}

/* Store Messages */
.store-messages-container {
    overflow: hidden;
    display: flex;
    gap: 12px;
    padding: 0 8px;
}

.store-messages-message-container {
    width: 25%;
    height: 100%;
    float: left;
}

.store-messages-message {
    width: 95%;
    height: 80%;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    border: 1px solid #DFE3E4;
    padding: 16px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    animation: none !important;
}

/* Override fade-in animation completely - messages must stay visible */
.store-messages-message.custom-fade-in-animation {
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force all store messages to always be visible - no conditions */
.store-messages-container .store-messages-message,
.store-messages-message-container .store-messages-message,
.store-messages-message.store-messages-message-show,
.store-messages-message:not(.store-messages-message-show),
.store-messages-message.custom-fade-in-animation {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    animation: none !important;
}

/* Login Footer */
.login-footer {
    width: 95%;
    border-top: 2px solid #DFE3E4;
    padding-top: 16px;
    margin-top: 16px;
}

.store-message-description {
    overflow-y: auto;
    word-break: break-word;
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   Modals - Modern Styling
   ============================================ */

/* Store Message Modal */
#storeMessage .custom-modal-small-small {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-height: 95vh;
    overflow: hidden;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
}

#storeMessage .custom-modal-small-small > .custom-flex-55 {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

#storeMessage .custom-modal-small-small > .custom-modal-footer {
    flex: 0 0 auto;
    min-height: 60px;
}

#storeMessage .custom-modal-header {
    background: linear-gradient(135deg, #00a1ff 0%, #0090e6 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 16px 20px;
    border: none;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#storeMessage .custom-modal-header .header-text-black {
    color: white;
    font-weight: 600;
    font-size: 18px;
}

#storeMessage .custom-modal-footer {
    background: #F5F7F8;
    border-radius: 0 0 12px 12px;
    padding: 12px 16px;
    border-top: 1px solid #DFE3E4;
    display: flex;
    justify-content: center;
    align-items: center;
}

#storeMessage .custom-modal-footer-button {
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    touch-action: manipulation;
    background: linear-gradient(135deg, #00a1ff 0%, #0090e6 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 161, 255, 0.3);
}

#storeMessage .custom-modal-footer-button:hover {
    background: linear-gradient(135deg, #0090e6 0%, #007acc 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 161, 255, 0.4);
}

#storeMessage .custom-modal-footer-button:active {
    transform: translateY(0);
}

/* Unregister POS Modal */
#unregisterPos .custom-modal-small-small {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-height: 95vh;
    overflow: hidden;
    background: #FFFFFF;
    max-width: 500px;
    width: 90%;
}

#unregisterPos .custom-modal-header {
    background: linear-gradient(135deg, #FF5469 0%, #e04456 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 20px;
    border: none;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#unregisterPos .custom-modal-header .header-text-black {
    color: white;
    font-weight: 600;
    font-size: 20px;
}

#unregisterPos .custom-modal-footer {
    background: #F5F7F8;
    border-radius: 0 0 12px 12px;
    padding: 16px 20px;
    border-top: 1px solid #DFE3E4;
    display: flex;
    justify-content: center;
    gap: 12px;
}

#unregisterPos .custom-modal-footer-button {
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    touch-action: manipulation;
    cursor: pointer;
}

#unregisterPos .custom-default-button-confirm {
    background: linear-gradient(135deg, #00FF95 0%, #00e685 100%);
    color: #1c2323;
    box-shadow: 0 2px 8px rgba(0, 255, 149, 0.3);
}

#unregisterPos .custom-default-button-confirm:hover {
    background: linear-gradient(135deg, #00e685 0%, #00d675 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 149, 0.4);
}

#unregisterPos .custom-default-button-cancel {
    background: #E6E6E6;
    color: #475859;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#unregisterPos .custom-default-button-cancel:hover {
    background: #d0d6d7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#unregisterPos .custom-modal-footer-button:active {
    transform: translateY(0);
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #F5F7F8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #DFE3E4;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #909494;
}

/* ============================================
   Touch-Friendly Enhancements
   ============================================ */
* {
    -webkit-tap-highlight-color: transparent;
}

button, .btn, a, .row[data-bind*="click"], .log-in-staff, .register-keyboard, .staff-keyboard, .redirect-button, .worksheet-button, .register-client {
    touch-action: manipulation;
}

/* Smooth Transitions */
.log-in-staff, .register-keyboard, .staff-keyboard, .redirect-button, .worksheet-button, .register-client, .compatibility-check, .register-check {
    transition: all 0.2s ease;
}

/* ============================================
   Responsive Design - Small Screens (≤720px)
   ============================================ */
@media (max-width: 720px) {
    /* Compatibility Check */
    .compatibility-check {
        width: 90%;
        height: auto;
        min-height: 120px;
        padding: 20px;
    }

    /* Register Check */
    .register-check {
        width: 95%;
        height: auto;
        min-height: 400px;
        padding: 16px;
    }

    .register-keyboard {
        width: 40%;
        min-height: 44px;
    }

    .register-client {
        width: 80%;
        min-height: 44px;
    }

    /* Loading Logo */
    .loading-logo {
        width: 90%;
        height: auto;
        min-height: 300px;
    }

    /* Staff Login Section */
    .staff-not-logged-in {
        padding: 16px;
    }

    .staff-login-button,
    .staff-logout-button {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }

    .staff-keyboard {
        width: 80%;
        min-height: 48px;
    }

    /* Staff List */
    .staffs-container {
        padding: 12px;
    }

    .log-in-staff {
        width: 48%;
        margin: 1%;
        min-height: 100px;
    }

    /* Redirect Buttons */
    .redirect-button-container {
        width: 100%;
        margin-bottom: 8px;
    }

    .redirect-button {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }

    /* Worksheet Button */
    .worksheet-button-container {
        margin-bottom: 8px;
    }

    .worksheet-button {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }

    /* Store Messages */
    .store-messages-message-container {
        width: 50%;
    }

    .store-messages-message {
        width: 98%;
        padding: 10px;
    }

    /* Footer */
    .login-footer {
        width: 100%;
        padding: 12px;
    }

    /* Modals */
    #storeMessage .custom-modal-small-small,
    #unregisterPos .custom-modal-small-small {
        width: 95%;
        margin: 2vh auto;
        max-height: 90vh;
    }

    #storeMessage .custom-modal-header,
    #unregisterPos .custom-modal-header {
        padding: 12px 16px;
        font-size: 16px;
        flex: 0 0 auto;
    }

    #storeMessage .custom-modal-small-small > .custom-flex-55 {
        flex: 1 1 auto;
        min-height: 100px;
        max-height: calc(90vh - 120px);
    }

    #storeMessage .custom-modal-footer {
        padding: 16px 12px;
        min-height: 70px;
        flex: 0 0 auto;
    }

    #storeMessage .custom-modal-footer .shadow-logo {
        width: 100%;
        height: 100%;
    }

    #storeMessage .custom-modal-footer .shadow-logo > div {
        width: 100% !important;
        height: 100% !important;
    }

    #storeMessage .custom-modal-footer-button,
    #unregisterPos .custom-modal-footer-button {
        width: 100% !important;
        margin-bottom: 0;
        min-height: 48px;
        font-size: 16px;
    }

    #unregisterPos .custom-modal-footer {
        flex-direction: column;
        padding: 16px 12px;
        flex: 0 0 auto;
    }

    /* Version Badges - Small Screens */
    .version-badge,
    .info-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .version-info-label {
        font-size: 10px;
        margin-right: 6px;
    }

    .version-info-container {
        flex-wrap: wrap;
        padding: 6px 10px;
        width: auto;
        margin: 4px;
    }

    /* Logo Image - Small Screens */
    .store-logo-image {
        max-height: 150px !important;
    }
}

/* ============================================
   Version & Info Badges - Two Column Layout
   ============================================ */
.version-info-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
}

.version-info-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.version-info-container {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 2px solid #DFE3E4;
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    box-sizing: border-box;
    width: 100%;
    white-space: nowrap;
}

.version-info-label {
    font-size: 11px;
    color: #475859;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 8px;
}

.version-badge,
.info-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    box-shadow: none;
}

.version-badge {
    background: #E3F2FD;
    color: #1976D2;
    border: 1px solid #BBDEFB;
}

.info-badge {
    background: #E8F5E9;
    color: #388E3C;
    border: 1px solid #C8E6C9;
}

/* Logo Image Constraints */
.store-logo-image {
    max-width: 70% !important;
    max-height: 200px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* ============================================
   Additional Modern Enhancements
   ============================================ */

/* Input focus animations */
.register-check .custom-input:focus,
.staff-not-logged-in .custom-input:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 161, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(0, 161, 255, 0.1);
    }
}

/* Button press animations */
.staff-login-button:active,
.staff-logout-button:active,
.worksheet-button:active,
.redirect-button:active,
.register-keyboard:active,
.staff-keyboard:active {
    animation: buttonPress 0.15s ease;
}

@keyframes buttonPress {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(1px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Card hover effects */
.log-in-staff:hover {
    animation: cardHover 0.3s ease;
}

@keyframes cardHover {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-4px);
    }
}
