/* Colors */
:root {
    --primary_dark_blue: #002e5b;
    --danger_text: #58151c;

    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #f8961e;
    --info: #4895ef;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;

    --light-orange: #ffe6c9;
    --light-orange-hover: #fddbaf;
    --dark-orange: #d48f3f;
    --orange-button-text: #4b3418;
}

* {
    font-family: "Noto Kufi Arabic", sans-serif;
}

p {
    font-size: 16px;
}

.text_primary {
    color: var(--primary_dark_blue);
}

#page_container {
    box-shadow: 5px -1px 5px 0px rgb(0 0 0 / 50%),
        -5px -1px 5px 0px rgb(0 0 0 / 50%);
}

/* custom blue button */
.btn-blue {
    background-color: var(--primary_dark_blue);
    font-size: 11px;
    font-weight: 700;
    box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.5);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #7A7A7A8A;
    border-radius: 6px 6px 6px 6px;
    padding: 12px 12px 12px 12px;
    color: white;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-blue:hover {
    background-color: #FFFFFF;
    color: var(--primary_dark_blue);
}

.bold_text {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary_dark_blue);
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/
#header {
    background:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url("../../img/gradient_bg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

.header_text {
    color: #333;
    font-size: 14px;
    text-align: center;
}

.language_switcher {
    text-decoration: none;
    color: var(--primary_dark_blue);
    font-size: 11px;
    padding: 5px 10px 5px 10px;
    background-color: #FFFFFF91;
    border-radius: 8px 8px 8px 8px;
}

.language_switcher:hover {
    background-color: #617C962B;
    border-color: #617c96;
}

.top_divider span {
    display: block;
    width: 47%;
    border-top: 1px solid #617C961A;
    margin: 0 auto;
}

.top_divider {
    width: 100%;
    text-align: center;
    margin: 0px 0px -17px 0px;
}


/*
|--------------------------------------------------------------------------
| Navbar
|--------------------------------------------------------------------------
*/

#navbar .navbar {
    background-color: transparent;

}

#navbar .nav-link {
    color: var(--primary_dark_blue) !important;
    padding: 18px 4px !important;
    font-size: 15px;
    font-weight: 600;
    margin-inline-end: 16px;
    line-height: 1;
}

#navbar .nav-link {
    position: relative;
    transition: border-color 0.3s ease;
    border-bottom: 2px solid transparent;
}

#navbar .nav-link:hover,
#navbar .nav-link.active {
    border-bottom: 2px solid #007bff;
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

#footer {
    background-color: #d3d9f7;
    padding: 20px 20px 20px 20px;
}

.footer_heading {
    color: var(--primary_dark_blue);
    font-size: 16px;
    font-weight: 500;
    -webkit-text-stroke-width: 1px;
    stroke-width: 1px;
    -webkit-text-stroke-color: var(--primary_dark_blue);
    stroke: var(--primary_dark_blue);
    color: var(--primary_dark_blue);
}

#footer h2 {
    font-size: 16px;
    font-weight: 700;
    color: #54595f;
    margin-bottom: 20px;
}

.footer_divider {
    background-color: #7A7A7A2E;
    height: 2.2px !important;
    opacity: 1;
}

.footer_links_item a {
    font-size: 14px;
    color: var(--primary_dark_blue);
    font-weight: 600;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

.footer_links_item {
    margin-bottom: 5px;
}

.footer_links_item:hover a {
    color: #bf1e2d;
}

.list-unstyled {
    padding-right: 0;
}

#copyright {
    font-size: 12px;
    font-weight: 500;
    -webkit-text-stroke-width: 1px;
    stroke-width: 1px;
    -webkit-text-stroke-color: var(--primary_dark_blue);
    stroke: var(--primary_dark_blue);
    color: var(--primary_dark_blue);
    text-align: center;
    padding: 10px 30px 10px 30px;
}

.social_icon {
    background-color: #617c96;
    color: white;
    margin-left: 5px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0px;
    text-decoration: none;
    text-align: center;
    font-size: 20px;
    font-weight: normal;
    line-height: 40px;
    border-radius: 25px;
    -moz-border-radius: 25px;
    -webkit-border-radius: 25px;
}

.social_icon:hover {
    color: #617c96;
    background-color: white;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

/* set footer to bottom of page */
html,
body {
    height: 100%;
    margin: 0;
}

#page_container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* full viewport height */
}

#content {
    flex: 1;
    /* take all remaining space */
}

/*
|--------------------------------------------------------------------------
| Auth
|--------------------------------------------------------------------------
*/

.login_bg {
    position: relative;
    /* needed for pseudo-element */
    overflow: hidden;
    /* optional, prevents overflow of pseudo-element */
}

.login_bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../img/login_bg.png");
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    z-index: -1;
}

.auth_card {
    max-width: 500px;
    margin: 50px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
}

.auth_card p {
    font-size: 20px;
    line-height: 1.4;
}

/*
|--------------------------------------------------------------------------
| dashboard
|--------------------------------------------------------------------------
*/

/* Custom gradient for the main balance card */
.balance-gradient {
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* A subtle glow effect for cards on hover */
.card-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    /* Default shadow for definition */
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    /* Subtle border for definition */
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.075);
}

.icon-lg {
    width: 40px;
    height: 40px;
}

/* Style to make the free balance card stand out */
.free-balance-highlight {
    background-image: linear-gradient(135deg, #e6f9f2 0%, #ffffff 100%);
    border-color: #20c997 !important;
}

.quota-text {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 18px;
}

.sidebar_card a:hover {
    text-decoration: underline !important;
    color: var(--danger_text);
}

/*
|--------------------------------------------------------------------------
| Offers
|--------------------------------------------------------------------------
*/

.offer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.offer-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.offer-header {
    padding: 20px;
    text-align: center;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.offer-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.offer-price {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.offer-period {
    font-size: 14px;
    opacity: 0.9;
}

.offer-card .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.offer_filter_tabs.nav-pills .nav-link {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    color: #6c757d;
}

.offer_filter_tabs.nav-pills .nav-link.active {
    background-color: #667eea !important;
    /* Custom purple color */
    color: white;
    box-shadow: 0 0.5rem 1rem rgba(102, 126, 234, 0.25);
}

.back-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary_dark_blue);
}

.offer-card .btn_offer {
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 16px;
}

.offer-card .btn_offer {
    background: var(--primary);
    color: white;
}

.offer-card .btn_offer:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}


/*
|--------------------------------------------------------------------------
| packs
|--------------------------------------------------------------------------
*/

.pack-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex;
    flex-direction: column;
}

.pack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.075);
}

.pack-card .card-body {
    flex-grow: 1;
}

.pack-card .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-pills .nav-link {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    color: #6c757d;
}

.nav-pills .nav-link.active {
    background-color: #667eea !important;
    /* Custom purple color */
    color: white;
    box-shadow: 0 0.5rem 1rem rgba(102, 126, 234, 0.25);
}

.back-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #0d6efd;
}



/*
|--------------------------------------------------------------------------
| Dashboard Semi Circle Cards
|--------------------------------------------------------------------------
*/
.progress_card {
    position: relative;
    width: auto;
    height: 100px;
    /* height: 150px; */
}

.progress_card svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.label {
    position: static;
    /* remove absolute positioning */
    font-weight: bold;
    color: #16325b;
    font-size: 18px;
}

/* Text content below the meter */
.text p {
    line-height: 1.4;
    font-size: 13px;
    color: var(--primary_dark_blue);
}

.text p:first-child {
    font-size: 12px;
}

