@import "./fontiran.css";

:root {
    --bs-body-bg:#e2e7ed !important;
    --gl-tooltip-background: rgba(17, 17, 17, .6);
    --gl-tooltip-border-radius: 4px;
    --gl-tooltip-color: #fff;
    --gl-tooltip-font-size: 0.775rem !important;
}

html, body {
    font-family: IRANSansX, sans-serif !important;
}

[data-pc-direction=rtl] .form-floating > label {
    width: auto;
    left: auto;
    right: 0px;
    opacity: 0.5;
}

.blured-content {
    filter: blur(4px);
}

.blured-card {
    filter: blur(1px);
}

@media (min-width: 992px) {
    /* desktop breakpoint */
    .row-cols-lg-7 > * {
        flex: 0 0 calc(100% / 7);
        max-width: calc(100% / 7);
    }
}

button.accordion-button:disabled::after {
    display: none !important;
}

.report-card {
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.report-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.progress-thumb {
    position: relative;
    width: 48px;
    height: 48px;
}

.progress-circle {
    position: relative;
    width: 48px;
    height: 48px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke: #e9ecef;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
}

.activity-summary {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.activity-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.activity-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem;
    border-radius: 0.25rem;
    background-color: var(--bs-body-bg);
}

.activity-category i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.activity-label {
    font-size: 0.65rem;
    color: #6c757d;
}

.activity-value {
    font-size: 0.75rem;
    font-weight: 500;
}

.detailed-time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.time-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.time-label {
    color: #6c757d;
}

.time-value {
    font-weight: 500;
}

.description-content {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 0.5rem;
    border-radius: 0.25rem;
    line-height: 1.5;
}

[data-bs-toggle="collapse"] .fa-chevron-down {
    transition: transform 0.2s ease;
}

[data-bs-toggle="collapse"][aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.user-avtar {
    color: #fff !important;
    background: linear-gradient(-0deg, #2f489f, #3066de) !important;
}


/* Text inputs & textareas when not empty */
.filled {
    border-color: rgb(from var(--bs-primary) r g b / 55%) !important;
    background-color: rgb(from var(--bs-primary) r g b / 9%);
}

/* If you want selects to not change background like inputs: */
select.filled {
    border-color: rgb(from var(--bs-primary) r g b / 55%) !important;
}

jdp-container {
    z-index: 100000000 !important;
}

.peginate div {
    flex-direction: column-reverse;
    gap: 2px;
}

#study-potential-chart .apexcharts-datalabel {
    direction: rtl;
    unicode-bidi: bidi-override;
}

canvas#studyProgressChart {
    width: 100%;
    height: 300px; /* default for mobile */
    min-height: 300px;
}

/* For desktop and larger screens */
@media (min-width: 768px) {
    /* adjust breakpoint as needed */
    canvas#studyProgressChart {
        height: 400px;
        min-height: 400px;
    }
}


.hover-scale {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-scale:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}


.card-overlay {
    pointer-events: none; /* so it doesn’t block clicks */
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    z-index: 2;
}

.overlay-text {
    z-index: 3;
}


.bg-blur {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}


.headings {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 2em 0;
}

.title {
    margin: 0;
}

.hr {
    display: block;
    flex: 1;
    margin: 0 30px;
    height: 3px;
    background: #D4D4D4;
}

/* Add border to unselected tabs */
.nav-pills .nav-link {
    border: 1px solid transparent; /* default transparent for smooth layout */
    transition: border 0.2s;
}

/* Only unselected tabs */
.nav-pills .nav-link:not(.active) {
    border: 2px solid var(--bs-border-color); /* light gray border for unselected tabs */
    background-color: rgba(0, 0, 0, 0.1); /* optional: make them white */
}

/* Optional: hover effect */
.nav-pills .nav-link:not(.active):hover {
    border-color: var(--bs-primary); /* Bootstrap primary color on hover */
}

.bg-light-ed {
    color: var(--pc-heading-color) !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
}


.pc-sidebar .pc-navbar > .pc-item.active > .pc-link {
    font-weight: 500;
    color: var(--bs-primary-light);
}

.pc-sidebar .pc-navbar > .pc-item.active > .pc-link:after {
    background: var(--bs-primary);
}

.pc-sidebar .pc-navbar > .pc-item > .pc-link:after {
    opacity: 1;
    z-index: -1;
}

.pc-sidebar .pc-navbar > .pc-item:hover:not(.active) > .pc-link:after {
    background: var(--bs-primary);
    opacity: 0.1;
}


/* CSS */
.btn-act {
    appearance: button;
    background-color: var(--btn-light);
    border: solid transparent;
    border-radius: 9px;
    border-width: 0 0 4px;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .8px;
    line-height: 20px;
    margin: 0;
    outline: none;
    overflow: visible;
    text-align: center;
    text-transform: uppercase;
    touch-action: manipulation;
    transform: translateZ(0);
    transition: filter .2s;
    user-select: none;
    -webkit-user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    width: 100%;
}

.btn-act:after {
    background-clip: padding-box;
    background-color: var(--btn-main);
    border: solid transparent;
    border-radius: 9px;
    border-width: 0 0 4px;
    bottom: -4px;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}

.btn-act,
.btn-act:focus {
    user-select: auto;
}

.btn-act:hover:not(:disabled) {
    filter: brightness(1.1);
    -webkit-filter: brightness(1.1);
}

.btn-act:disabled {
    cursor: auto;
}

.btn-act:active {
    border-width: 4px 0 0;
    background: none;
}


.btn-ai {
    --btn-main: #28a9e1;
    --btn-light: #1466b8;
}

.btn-my {
    --btn-main: #fd9137;
    --btn-light: #e15011;
}

.btn-consultant {
    --btn-main: #e23079;
    --btn-light: #9c1040;
}


.btn-act-primary {
    --btn-main: #354b9a;
    --btn-light: #1b255d;
}

.btn-act-danger {
    --btn-main: #da190c;
    --btn-light: #a9130a;
}

.btn-act-success {
    --btn-main: #07a846;
    --btn-light: #065023;
}


/*
Source - https://stackoverflow.com/q/29484405
Posted by Alex, modified by community. See post 'Timeline' for change history
Retrieved 2026-07-05, License - CC BY-SA 3.0
*/

.arrow_btn {
    position: relative;
    background: #07a846;
    border: 3px solid #07a846;
    border-radius: 5px;
    padding: 0px 12px;
    color: white;
}
.arrow_btn:after{
    left: 100%;
    top: 50%;
    border: solid transparent;
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    border-radius: 5px;
}
.arrow_btn:after {
    border-color: rgba(250, 150, 62, 0);
    border-left-color: #07a846;
    border-width: 14px;
    margin-top: -14px;
    border-radius: 5px;
}

.bg-schedule{
    background-color: #ffedf9;
    opacity: 0.8;
    background: repeating-linear-gradient( -45deg, #ffd2f4, #ffd2f4 3px, #ffedf9 3px, #ffedf9 20px );
}
.text-schedule{
    font-weight: 900;
    color: var(--bs-pink-900) !important;
}


.timeline{
    position:relative;
}

.timeline::before{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    right:18px;
    width:2px;
    background:#dee2e6;
}

.timeline-item{
    position:relative;
    display:flex;
    gap:.75rem;
    margin-bottom:1rem;
}

.timeline-icon{
    width:36px;
    height:36px;
    border-radius:50%;
    background:#fff;
    border:2px solid #dee2e6;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:2;
    flex-shrink:0;
}

.timeline-content{
    flex:1;
    border:1px solid #dee2e6;
    border-radius:.5rem;
    padding:.65rem .85rem;
    background:#fff;
}

.timeline-now{
    display:flex;
    align-items:center;
    margin:.6rem 0 1rem;
    z-index:5;
    position:relative;
}

.timeline-now .line{
    flex:1;
    height:2px;
    background:#dc3545;
    margin-right:.75rem;
}

.timeline-now .badge{
    font-size:.75rem;
}
