﻿html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 3px;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    width: 100%;
    height: 100%;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 20px;
}

/* Dashboard */
.dashboard-stats__item {
    position: relative;
    overflow: visible;
    padding: 30px 20px;
    margin-bottom: 40px;
    border-radius: 2px;
    background-color: #464960;
}

    .dashboard-stats__item > .style_icon {
        position: absolute;
        bottom: -20%;
        left: -5%;
        font-size: 100px;
        color: rgba(255, 255, 255, 0.15);
    }

.dashboard-stats__title {
    margin: 0;
    text-align: right;
    font-size: 36px;
    color: white;
}

    .dashboard-stats__title > small {
        display: block;
        font-size: 17px;
        text-transform: capitalize;
        color: rgba(255, 255, 255, 0.7);
    }

@media (min-width: 576px) {
    .card-columns {
        column-count: 2;
    }
}

@media (min-width: 768px) {
    .card-columns {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .card-columns {
        column-count: 4;
    }
}

@media (min-width: 1200px) {
    .card-columns {
        column-count: 5;
    }
}

.bg-primary {
    background-color: #464960 !important;
}

.bg-accent {
    background-color: #A471C6 !important;
}

.bg-pink {
    background-color: #F06292 !important;
}

.bg-orange {
    background-color: #FF8A65 !important;
}

.bg-teal {
    background-color: #4DB6AC !important;
}

/* For line breaks in text */
.multiline {
    white-space: pre-wrap;
}

.drag-drop-zone {
    border: 3px dashed #e68710;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
    color: #aeaeae;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 1.5rem 0 2rem 0;
    position: relative;
}

    .drag-drop-zone:hover {
        background-color: #f5f5f5;
    }

    .drag-drop-zone input[type=file] {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

/* For checkbox alignment */
.move-left {
    width: auto;
    box-shadow: none;
}

/* Form validation messages in Cards */
.card .card-body .validation-errors .validation-message {
    color: red;
}

.card .card-body .validation-message {
    color: red;
}

.card .card-body .form-control.invalid {
    border-color: #dc3545;
}

.navbar-form {
    padding: 1px 1px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);
    margin: 1px 1px;
}

/* For Radzen Tabs to wrap on mobile screens */
ul[role=tablist] {
    flex-wrap: wrap;
}

.w-60 {
    width: 60% !important;
}

.w-40 {
    width: 40% !important;
}

.w-20 {
    width: 20% !important;
}

/* Ensure all elements use border-box sizing */
* {
    box-sizing: border-box;
}

/* Ensure container-fluid scales correctly */
.container-fluid {
    max-width: 100%;
    padding: 0;
    margin: 0; /* Add margin reset if needed */
}

/* Ensure main element does not cause overflow */
main[role="main"] {
    max-width: 100%;
    overflow-x: hidden;
}
