﻿
html {
    /* هذا السطر يجعل 1rem تساوي 14.4px بدلاً من 16px */
    /* مما يصغر كل شيء في MudBlazor بنسبة 10% بشكل متناسق تماماً */
    font-size: 90% !important;
}
.mud-input {
    /*font-size: var(--mud-typography-default-size);*/
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    /*font-size: var(--mud-typography-default-size);*/
}


    .mud-expand-panel .mud-expand-panel-header {
        font-size: var(--mud-typography-subtitle1-size);
    }

.mud-button-year {
    font-size: var(--mud-typography-default-size);
}

.mud-table-cell {
    font-size: var(--mud-typography-default-size);
}

.mud-typography-body1 {
    font-size: var(--mud-typography-body1-size);
}

.mud-typography-body2 {
    font-size: var(--mud-typography-body2-size);
}

.mud-button-outlined-size-small {
    font-size: var(--mud-typography-body2-size);
}




.mud-nav-link {
    white-space: normal !important;
}

.user-button {
    text-transform: none;
    background: rgba(var(--mud-palette-primary-rgb), 0.1)
}

.side-menu .mud-chip.mud-chip-size-small {
    font-size: 0.625rem;
    height: 1.125rem;
}
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e52660;
}

.validation-message {
    color: #e52660;
}
.my-custom-class {
    backdrop-filter: blur(10px);
}

.hz-container {
    display: flex;
    overflow-x: auto;
}

    .hz-container::-webkit-scrollbar {
        display: none;
    }


.bounceIn {
    opacity: 0;
    animation-delay: 0.5s;
    animation-duration: 0.5s;
    animation-name: bounceIn;
    animation-fill-mode: forwards;
}

.bounceOut {
    animation-duration: 0.5s;
    animation-name: bounceOut;
    animation-fill-mode: forwards;
}

.backInDown {
    opacity: 0;
    animation-delay: 0.5s;
    animation-duration: 0.5s;
    animation-name: backInDown;
    animation-fill-mode: forwards;
}

.backOutDown {
    animation-duration: 0.5s;
    animation-name: backOutDown;
    animation-fill-mode: forwards;
}

.rotateIn {
    opacity: 0;
    animation-delay: 0.5s;
    animation-duration: 0.5s;
    animation-name: rotateIn;
    animation-fill-mode: forwards;
}

.rotateOut {
    animation-duration: 0.5s;
    animation-name: rotateOut;
    animation-fill-mode: forwards;
}


chart: {
    fontFamily: var(--mud-typography-subtitle1-family);
    background-color: #42424200 !important;
}

.apexcharts-svg {
    background-color: #42424200 !important;
}
.apexcharts-canvas {
    background-color: #42424200 !important;
}
.mud-data-grid .mud-table-cell.edit-mode-cell .mud-input .mud-input-outlined-border {
    /*border:inherit !important;*/
} 


.linear-progress {
    background: silver;
    width: 50vw;
    height: 1rem;
    border-radius: 10rem;
    overflow: hidden;
    position: relative;
}

    .linear-progress:after {
        content: '';
        position: absolute;
        inset: 0;
        background: blue;
        scale: var(--blazor-load-percentage, 0%) 100%;
        transform-origin: left top;
        transition: scale ease-out 0.5s;
    }

.mud-grid-spacing-xs-3 {
/*    width: calc(100% + 9px) !important;
    margin: -2px !important;*/
}

    .mud-grid-spacing-xs-3 > .mud-grid-item {
        /*padding: 4px !important;*/
    }

    .mud-grid-spacing-xs-3 > .mud-grid-item {
        /*padding: 5px !important;*/
    }

.mud-card-header {
    display: flex;
    align-items: center;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.pb-12, .py-12 {
    padding-bottom: 13px !important;
}

/*.mud-input-control {
    margin-top: 1px;
}*/

.mud-drawer-overlay {
    pointer-events: none !important;
}
.mud-dialog-width-full {
    width: calc(100% - 11px) !important;
    max-height: calc(100% - 11px) !important;
}

.mud-popover {
    z-index: calc(var(--mud-zindex-dialog) + 1) !important;
}

/* منع قص القوائم المنسدلة */
.mud-dialog-content {
    overflow: visible !important;
}

    /* لكن نسمح بالتمرير العمودي للمحتوى الطويل */
    .mud-dialog-content.mud-dialog-no-overflow {
        overflow: visible !important;
    }
.animated-dialog {
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: fadeSlideIn 0.4s ease-out;
}

@keyframes fadeSlideIn {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

:root {
    --title-grad: linear-gradient(90deg,var(--mud-palette-primary) 0%,var(--mud-palette-primary) 50%,var(--mud-palette-primary) 100%);
    --title-accent: var(--mud-palette-primary);
}

.title {
    margin: 0;
    display: inline-block;
    font-size: var(--mud-typography-default-size);
}

/* نمط التدرّج */
.title--gradient {
    background: var(--title-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
    padding-right: 15px;
    padding-left: 15px;
}

    /* شريط سفلي رفيع لإبراز العنوان */
    .title--gradient::after {
        content: "";
        display: block;
        height: 3px;
        margin-top: .35rem;
        border-radius: 2px;
        background: var(--title-accent);
        transform: translateY(0);
    }

/* إزالة الخط السفلي */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* تنسيق الكارد */
.clickable-card {
    padding: 20px;
    border: 1px solid 1px solid var(--mud-palette-table-striped);
    border-radius: 8px;
    background: var(--mud-palette-surface);
    transition: all 0.3s ease;
    cursor: pointer;
}

    /* تأثير hover */
    .clickable-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        background: var(--mud-palette-background);
    }

.lp-app-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
}

/*************************/
.image-upload-container {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 8px;
    background-color: var(--mud-palette-surface);
    overflow: hidden;
}

/* ============================= */
/* 📸 قسم الصورة */
.image-preview-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* تأثير خفيف */
.image-hover {
    transition: transform 0.5s ease;
}
.image-preview-section:hover .image-hover {
    transform: scale(1.03);
}
/* ============================= */
/* 🎛️ قسم الأزرار */
.image-controls-section {
    order: 2;
    width: 250px;
    flex-shrink: 0;
    padding: 16px;
    background-color: var(--mud-palette-background-gray);
    display: flex;
    flex-direction: column;
}


    /* منع الأزرار من التمدد */
    .image-controls-section .mud-button-root {
        width: 100% !important;
        flex:1;
    }

   /* .image-controls-section .mud-stack {
        align-items: stretch;
    }*/
/* ============================= */
/* 📱 موبايل */
@media (max-width: 768px) {

    .image-upload-container {
        flex-direction: column;
        gap: 12px;
    }

    .image-preview-section {
        order: 1;
        margin-bottom: 8px;
    }

    .image-controls-section {
        order: 2;
        width: 100%;
        border-top: 1px solid var(--mud-palette-divider);
    }

    /* تكبير الصورة */
    .image-preview-section .mud-avatar {
        width: 220px !important;
        height: 220px !important;
    }

    /* الأزرار بعرض كامل للموبايل */
    .image-controls-section .mud-button-root {
        width: 100% !important;
    }

    .image-controls-section .mud-stack {
        align-items: stretch;
    }
}

/* ============================= */
/* 📟 تابلت */
@media (min-width: 769px) and (max-width: 1024px) {
    .image-controls-section {
        width: 200px;
    }
}

/* ============================= */
/* 💻 شاشات كبيرة */
@media (min-width: 1400px) {
    .image-controls-section {
        width: 280px;
    }

    .image-preview-section .mud-avatar {
        width: 180px !important;
        height: 180px !important;
    }
}

.progress-indeterminate {
    width: 100%;
    height: 4px;
    background-color: rgba(25, 118, 210, 0.2);
    overflow: hidden;
    position: relative;
}

.progress-bar-indeterminate {
    position: absolute;
    height: 100%;
    width: 30%;
    background-color: #1976d2;
    animation: indeterminate 1.5s infinite ease-in-out;
}

@keyframes indeterminate {
    0% {
        left: -30%;
    }

    100% {
        left: 100%;
    }
}