﻿/* ================================
   GLOBAL
================================ */

body {
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ContainerBackground {
    padding-bottom: 20px;
}

/* ================================
   CARD LAYOUT
================================ */

.LoginWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ContentCard {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    position: relative;
}

/* ================================
   PAGE TITLE
================================ */

.PageTitle {
    text-align: center;
    font-weight: 700;
    font-size: 26px;
    margin: 30px 0 20px;
    color: #333;
}

/* ================================
   TABS
================================ */

.tab-header {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
}

    .tab-header .tab-item {
        flex: 1;
        text-align: center;
        padding: 12px 0;
        font-weight: 600;
        color: #666;
        border-bottom: 3px solid transparent;
        cursor: pointer;
        transition: 0.3s;
    }

        .tab-header .tab-item.active {
            color: #28a745;
            border-bottom-color: #28a745;
        }

/* ================================
   FORM
================================ */

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 15px;
}

    .form-control:focus {
        border-color: #28a745;
        box-shadow: 0 0 6px rgba(40,167,69,0.2);
        outline: none;
    }

/* ================================
   INPUT GROUP
================================ */

.input-group {
    display: flex;
    width: 100%;
}

    .input-group .form-control {
        border-radius: 6px 0 0 6px;
        border-right: none;
    }

.input-group-append button {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 6px 6px 0;
    font-weight: 600;
}

/* ================================
   OTP INPUT
================================ */

#txtLoginOtpValue,
#txtSignUpOtpValue {
    width: 100%;
    text-align: center;
    font-size: 20px;
    letter-spacing: 6px;
    padding: 10px 0;
    border-radius: 6px;
    border: 1px solid #ced4da;
}

/* ================================
   BUTTONS
================================ */

.btn-block {
    width: 100%;
    padding: 12px 0;
    border-radius: 6px;
    font-weight: 600;
}

/* ================================
   TIMER / RESEND
================================ */

.TimerText {
    color: #e67e22;
    font-weight: 600;
    display: block;
    margin-top: 10px;
}

.ResendBtn {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    display: none;
    margin-top: 10px;
}

/* ================================
   MESSAGE
================================ */

#divMessage {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    min-height: 20px;
    color: #d9534f;
}

/* ================================
   LOADER
================================ */

.preloader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    font-weight: 700;
    color: #28a745;
}

/* ================================
   COUNT BOXES
================================ */

.count-box {
    background: #ffffff;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* ================================
   TABLE WRAPPER
================================ */

.jsgrid {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 15px;
    overflow-x: auto;
}

/* ================================
   TABLE
================================ */

.jsgrid-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px; /* Important for scroll on mobile */
}

.jsgrid-header-row th {
    background: #28a745;
    color: #fff;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
}

.jsgrid-table td {
    padding: 10px 8px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.jsgrid-row:hover {
    background: #f9f9f9;
}

.jsgrid-align-center {
    text-align: center;
}

/* ================================
   SEARCH INPUT
================================ */

.search-input {
    width: 100%;
    padding: 5px 8px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

    .search-input:focus {
        border-color: #28a745;
        outline: none;
    }

/* ================================
   STATUS COLORS
================================ */

.status-active {
    color: green;
    font-weight: 600;
}

.status-inactive {
    color: red;
    font-weight: 600;
}

/* ================================
   MOBILE FIX (IMPORTANT)
================================ */

@media (max-width: 768px) {

    .ContentCard {
        padding: 20px;
    }

    .PageTitle {
        font-size: 22px;
    }

    /* Make input + button vertical */
    .input-group {
        flex-direction: column;
    }

        .input-group .form-control {
            border-radius: 6px;
            border-right: 1px solid #ced4da;
            margin-bottom: 10px;
        }

    .input-group-append button {
        width: 100%;
        border-radius: 6px;
        padding: 10px;
    }

    /* Stack OTP row */
    #loginOTPVerify .row,
    #signUpOTPVerify .row {
        display: block;
    }

    #loginOTPVerify .col-xs-6,
    #signUpOTPVerify .col-xs-6 {
        width: 100%;
        padding: 0 !important;
        margin-bottom: 10px;
    }
}

/* ================================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 992px) {

    .count-box {
        font-size: 14px;
        padding: 15px;
    }
}

@media (max-width: 768px) {

    .ContainerBackground {
        padding: 10px;
    }

    .PageTitle {
        font-size: 20px;
    }

    /* Count boxes full width */
    .row > div {
        width: 100% !important;
    }

    /* Table scroll smooth */
    .jsgrid {
        padding: 10px;
    }

    .jsgrid-table {
        font-size: 13px;
    }
}

/* ================================
   EXTRA SMALL DEVICES
================================ */

@media (max-width: 480px) {

    .PageTitle {
        font-size: 18px;
    }

    .count-box {
        font-size: 13px;
    }

    .jsgrid-table th,
    .jsgrid-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
}
/* Extra Small Devices */

@media (max-width: 480px) {

    .LoginWrapper {
        padding: 10px;
    }

    .ContentCard {
        padding: 15px;
    }

    .PageTitle {
        font-size: 20px;
    }

    #txtLoginOtpValue,
    #txtSignUpOtpValue {
        font-size: 18px;
        letter-spacing: 4px;
    }
}
