/* Font Family*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");


:root {
    --primary-color: #2563EB;
    --primary-text: #333;
    --body-color: #f9fbff;
    --bg-white: #FFF;
    --box-shadow: rgba(0, 0, 0, 0.08);
    --dark-color: #333;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 15px;
    font-weight: normal;
    background: var(--body-color);
    overflow-x: hidden;
    line-height: 1.5;
    font-family: "Segoe UI", Roboto, sans-serif;
    padding-bottom: 65px;
    /* space for bottom bar */
}

a {
    text-decoration: none;
    color: inherit;
}

/* ------------------------------
   Header (App-style)
-------------------------------*/
header {
    position: fixed;
    z-index: 1030;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid #eee;
    padding: 12px 16px;
}

header h1 {
    font-size: 18px;
    font-weight: 600;
}

header i {
    font-size: 20px;
}

/* ------------------------------
   Main Section
-------------------------------*/
.main {
    margin-top: 65px;
    /* space for header */
}

/* ------------------------------
   Service Card (grid buttons)
-------------------------------*/
.service-card {
    width: 100%;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 6px var(--box-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 14px 6px;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--box-shadow);
}

.service-card i {
    font-size: 26px;
}

/* ------------------------------
   Category Card (carousel items)
-------------------------------*/
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f9f9fb;
    border: none;
    margin: 0 6px;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

.category-card:hover {
    color: var(--primary-text);
    box-shadow: 0 4px 8px var(--box-shadow);
    background: #fff;
}

/* ------------------------------
   Movie Card (grid movies)
-------------------------------*/
.movie-card {
    width: 100%;
    background-color: var(--bg-white);
    border-radius: 0px !important;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px var(--box-shadow);
}

.movie-card:hover {
    transform: scale(1.02);
}

.btn-primary{
    border-radius: 4px !important;
}

.movie-card .card-body {
    padding: 10px;
}

.movie-card .card-image-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--bg-white);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 2px 4px var(--box-shadow);
}

/* ------------------------------
   Bottom Navigation Bar (App Style)
-------------------------------*/
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF !important;
    border-top: 1px solid #2DED7A;
    z-index: 1030;
    height: 70px;
}

.bottom-bar .nav {
    height: 100%;
    align-items: center;
}

.bottom-bar .nav-link {
    color: #adb5bd;
    font-size: 12px;
    text-align: center;
    flex: 1;
    padding: 0;
}

.bottom-bar .nav-link i {
    font-size: 20px;
    display: block;
    margin-bottom: 2px;
}

.bottom-bar .nav-link.active,
.bottom-bar .nav-link:hover {
    color: var(--primary-color);
    font-weight: 600;
}

/* ------------------------------
   Responsive Adjustments
-------------------------------*/

/* Tablets */
@media screen and (max-width: 992px) {

    .service-card,
    .movie-card {
        margin-bottom: 16px;
    }
}

/* Mobile Phones */
@media screen and (max-width: 768px) {
    .category-card {
        width: 100%;
        font-size: 13px;
    }

    .movie-card {
        max-height: 280px;
    }
}

/* Small Phones */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header h1 {
        font-size: 16px;
    }

    .category-card {
        padding: 12px;
    }

    .movie-card {
        max-height: 240px;
    }

    .bottom-bar .nav-link i {
        font-size: 18px;
    }
}


/* Global Loader */
#ajaxLoader {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #2575fc;
}


/* Toast Container */
#toast-container>.toast {
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    opacity: 0.95 !important;
}

/* Success */
#toast-container>.toast-success {
    background: linear-gradient(135deg, #28a745, #218838) !important;
}

/* Error */
#toast-container>.toast-error {
    background: linear-gradient(135deg, #dc3545, #b02a37) !important;
}

/* Info */
#toast-container>.toast-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b) !important;
}

/* Warning */
#toast-container>.toast-warning {
    background: linear-gradient(135deg, #ffc107, #d39e00) !important;
    color: #222 !important;
}

/* Progress bar */
#toast-container>.toast>.toast-progress {
    background: rgba(255, 255, 255, 0.8) !important;
    height: 4px !important;
    border-radius: 10px;
}

/* Close Button */
#toast-container>.toast .toast-close-button {
    color: #fff !important;
    opacity: 0.9;
    font-size: 1.1rem;
}

#toast-container>.toast .toast-close-button:hover {
    opacity: 1;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    z-index: 2;
}

.loader-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.2);
    /* light white ring */
    border-top: 6px solid #ffffff;
    /* bright white spinner */
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Global Input Style */

.card{
    border-radius: 0px !important;
}

.btn{
   border-radius: 0px !important;
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 0px !important;
    border: 1px solid #d1d9e6;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 0.2rem rgba(106, 17, 203, 0.2);
}


.input-group-text{
    border-radius: 0px !important;
}

/* Global Label */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

/* Global Button */
.btn-primary {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Select2 Custom Style */
.select2-container .select2-selection--single {
    height: 45px !important;
    border-radius: 0px !important;
    border: 1px solid #d1d9e6 !important;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.select2-container .select2-selection__arrow {
    top: 9px !important;
    right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px !important;
    font-size: 0.95rem;
}

.select2-dropdown {
    border-radius: 0px !important;
    border: 1px solid #ccc !important;
    padding: 6px;
}

.select2-results__option {
    padding: 8px 12px;
    font-size: 0.95rem;
}

.select2-results__option--highlighted {
    background: #6a11cb !important;
    color: #fff !important;
}


.captcha-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px dashed #ced4da;
    background: #fff;
    min-height: 48px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 6px;
    font-size: 18px;
}

.captcha-refresh {
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 18px;
    color: #0d6efd;
}

.captcha-refresh:active {
    transform: scale(.98);
}

.invalid {
    border-color: #dc3545 !important;
}

.small-muted {
    font-size: .85rem;
    color: #6c757d;
}


.custom--card {
    border-radius: 15px;
    border: none;
    background: #f9fafc;
}

.account-box {
    padding: 15px 20px;
    border: 1px solid #e3e6ef;
    border-radius: 12px;
    background: #fff;
    transition: 0.3s;
}

.account-box:hover {
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.account-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.account-balance {
    font-size: 22px;
    font-weight: 700;
    color: #444;
    margin: 0;
}


/* Gateway Card & Items */
.custom--card {
    border-radius: 15px;
    border: none;
    background: #f9fafc;
    transition: 0.3s ease;
}

.custom--card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.payment-item {
    background: #fff;
    border: 1px solid #e3e6ef;
    border-radius: 12px;
    transition: all 0.3s;
}

.payment-item:hover {
    background: #f5faff;
    border-color: #007bff30;
    transform: translateY(-3px);
}

/* Gateway Image */
.payment-item__thumb-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 5px;
    border: 1px solid #eee;
}

/* Global Button */
.btn--global {
    background: #007bff;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s;
}

.btn--global:hover {
    background: #0056b3;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}
