﻿html {
    background-image: linear-gradient(to right, #141e30, #243b55);
    height: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body, form {
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    height: 100%;
}

.backtotop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

    .backtotop img {
        width: 40px;
        height: auto;
    }

.allcontent {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: white;
    margin: 0 auto;
    text-align: center;
}

.mainpageview {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.maintenancenotification {
    background-color: #1D327A;
    width: 100%;
    top: 0;
    z-index: 9999999;
    visibility: hidden;
    height: 0px;
    padding: 0px;
}

.header {
    padding: 10px 20px;
    background: linear-gradient(90deg, #0D1B2A 0%, #1B263B 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 999;
    animation: headerAnimation 0.6s ease-out;
}

@keyframes headerAnimation {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-box {
    display: flex;
    align-items: center;
    flex: 1 1 300px; /* flexible, but won't shrink smaller than 300px */
    box-sizing: border-box;
    padding: 10px;
    margin: 5px;
    text-align: left;
}

.left-box {
    gap: 20px;
}

.header-box .left-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-box.middle-box {
    flex-grow: 1;
    min-width: 0; /* Prevent overflow weirdness */
}

.header-box .right-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    flex: 1;
    padding-right: 20px;
    flex-wrap: nowrap;
}

.header-box a {
    color: #c8daf0;
    text-decoration: none;
}

    .header-box a:hover {
        color: #8fb7e8
    }

.logo-link {
    display: flex;
    align-items: center;
}

    .logo-link img {
        border-radius: 8px;
        transition: transform 0.3s ease;
    }

    .logo-link:hover img {
        transform: scale(1.05);
    }

.logo-glow {
    filter: drop-shadow(0 0 1px white) drop-shadow(0 0 5px white);
    transition: filter 0.3s ease-in-out;
}

    /* Optional: add a hover effect if you want to make it shine a bit more on hover */
    .logo-glow:hover {
        filter: drop-shadow(0 0 3px white) drop-shadow(0 0 10px white);
    }

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.toplogoscompany {
    font-weight: bold;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    margin-top: -10px;
}

.toplogosslogan {
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.5px;
    font-size: 15px;
    color: #ddd;
}

.balance-panel {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    flex-wrap: nowrap;
}

.balance-box {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    min-width: 80px;
    line-height: 1.2;
    background: linear-gradient(135deg, #1a8a34, #4fd066); /* or red variant if needed */
    padding: 6px 12px;
    font-size: 12px;
    color: white;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .balance-box div:first-child {
        font-weight: 500;
        color: #ccc;
        font-size: 10px;
    }

.balance-amount {
    font-size: 15px;
    font-weight: bold;
    color: white;
    margin-top: 1px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.balance-refresh {
    width: 16px;
    height: 16px;
    cursor: pointer;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
    margin-left: 0px;
    height: 20px;
    width: 20px;
    margin-left: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .balance-refresh:hover {
        transform: rotate(90deg);
    }

.balance-positive {
    background: rgba(0, 128, 0, 0.15);
    border: 1px solid rgba(0, 255, 128, 0.3);
    border-radius: 6px;
    padding: 4px;
    box-shadow: inset 0 0 5px rgba(0, 255, 128, 0.1);
}

.balance-negative {
    background: rgba(255, 0, 0, 0.12);
    border: 1px solid rgba(255, 64, 64, 0.25);
    border-radius: 6px;
    padding: 4px;
    box-shadow: inset 0 0 5px rgba(255, 0, 0, 0.1);
}

.logincontainer2 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

    .logincontainer2 a {
        font-size: 10px !important;
    }

.transcom-auth-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    padding-right: 15px;
}

.transcom-btn-login {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #007acc;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

    .transcom-btn-login:hover {
        background-color: #005fa3;
        transform: translateY(-2px);
    }

.transcom-btn-signup {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    background-color: #ffffff;
    color: #007acc;
    border: 2px solid #007acc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

    .transcom-btn-signup:hover {
        background-color: #e6f4ff;
        transform: translateY(-2px);
    }

.loggedin-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start; /* left-align contents inside */
    width: fit-content;
    max-width: 300px;
}

.smallphoto {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(255,255,255,0.7);
    transition: box-shadow 0.3s ease;
    margin-bottom: 25px;
}

    .smallphoto:hover {
        box-shadow: 0 0 12px rgba(0, 150, 255, 0.8);
    }

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center; /* <-- Center text block properly */
}

.user-name {
    font-weight: bold;
    font-size: 13px;
    color: white;
}

.user-links {
    font-size: 12px;
    margin-top: 2px;
}

.language-switcher {
    margin-top: 5px;
    display: flex;
    gap: 5px;
}

    .language-switcher img {
        width: 20px;
        height: 14px;
        cursor: pointer;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

        .language-switcher img:hover {
            transform: scale(1.1);
            filter: brightness(1.2);
        }

.menuouter {
    position: sticky;
    top: 0;
    z-index: 9999; /* high enough to sit above banners etc. */
    background-color: white; /* or your preferred colour */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* subtle shadow for elevation */
}

    .menuouter .RadMenu {
        text-align: center !important;
        word-wrap: normal !important;
    }

        .menuouter .RadMenu .rmItem {
            float: none !important;
            text-align: left !important;
        }

    .menuouter .RadMenu_Bootstrap .rmRootGroup {
        border-radius: 0px !important;
        background-color: #f0f0f0 !important;
    }

.menu {
    z-index: 3000 !important;
    text-transform: uppercase;
    border-bottom: solid 1px #b9b9b9;
    text-align: left;
}

.menuitemplate {
    white-space: normal !important;
    font-size: 10px;
    padding-top: 10px;
    border: solid 1px gray;
}

.menuitemtemplate a {
    text-decoration: none;
}

.menuitemtemplate:hover {
    background-color: #d0d0d0;
}

.menuitemtemplateimage {
    border-radius: 5px;
    margin-top: 5px;
}

.menuitemtemplateheading {
    font-size: 22px;
    margin-top: 4px;
    margin-bottom: 2px;
    color: #1D327A;
    text-decoration: none;
}

    .menuitemtemplateheading:hover {
        text-decoration: none;
        color: #1D327A;
    }

.menuitemtemplatetext {
    white-space: normal !important;
    font-size: 10px;
    color: rgba(38, 38, 38, 1);
    text-decoration: none;
    text-transform: uppercase;
}

    .menuitemtemplatetext:hover {
        text-decoration: none;
        color: rgba(38, 38, 38, 1) !important;
    }

.footer {
    font-size: 12px;
    background: rgba(38, 38, 38, 1) 0% 0% no-repeat padding-box;
    color: #909090;
    opacity: 1;
    text-align: center;
    vertical-align: top;
    margin-top: auto;
}

    .footer a {
        font-size: 13px;
        opacity: 1;
        margin: 0 !important;
        padding: 0 !important;
        text-transform: uppercase;
        line-height: 19px;
        letter-spacing: 0.3px !important;
        text-decoration: none;
        color: #c8daf0;
    }

        .footer a:hover {
            text-decoration: none;
            color: #8fb7e8;
        }

    .footer .t-col {
        text-align: center !important;
    }

footer {
    color: #ffffff;
    padding: 0;
    font-family: Arial, sans-serif;
}

.footerinner {
    padding: 20px;
}

.footerlink {
    font-size: 11px;
    color: white;
    margin-bottom: 4px;
    padding-right: 10px;
    border-right: solid 1px #a8a8a8;
    display: inline-block;
    padding-left: 10px;
}

.footerlinklast {
    font-size: 13px;
    color: white;
    margin-bottom: 4px;
    padding-left: 10px;
    display: inline-block;
}

.copyright3 {
    text-align: center;
    color: white;
    text-transform: uppercase;
    font-size: 7px !important;
    display: block;
}

    .copyright3 a {
        color: #c8daf0;
        text-decoration: none;
        font-size: 10px
    }

        .copyright3 a:hover {
            color: #8fb7e8
        }

.payfastlogo {
    max-width: 80px;
    margin-right: 20px;
    vertical-align: middle;
}

.mastercardlogo {
    max-width: 80px;
    vertical-align: middle;
}

.visalogo {
    max-width: 80px;
    vertical-align: middle;
}
