/* Module Reset CSS - Enterprise V9 */
/* ביטול עיצוב גלובלי למודולים ספציפיים */

@layer resets {
/* ביטול רקע גלובלי */
.module-body {
    background: none;
    background-image: none;
    background-attachment: initial;
    background-size: initial;
    background-position: initial;
}

.module-body::before {
    display: none;
}

/* ביטול עיצוב גלובלי לתוכן */
.module-content-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

/* ביטול עיצוב גלובלי לטבלאות */
.module-content-wrapper .table-modern {
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.module-content-wrapper .table-modern thead {
    background: none;
    border-radius: 0;
}

.module-content-wrapper .table-modern thead th {
    background: none;
    border: none;
    border-radius: 0;
    color: inherit;
    font-weight: normal;
    text-align: inherit;
    padding: inherit;
}

/* ביטול עיצוב גלובלי לכפתורים */
.module-content-wrapper .btn {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
    font-weight: normal;
    padding: inherit;
    margin: inherit;
    transition: none;
    transform: none;
}

.module-content-wrapper .btn::before {
    display: none;
}

.module-content-wrapper .btn:hover {
    background: none;
    transform: none;
    box-shadow: none;
}

/* ביטול עיצוב גלובלי לכרטיסים */
.module-content-wrapper .card {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

/* ביטול עיצוב גלובלי לטופסים */
.module-content-wrapper .form-control,
.module-content-wrapper .form-select {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
    font-size: inherit;
    padding: inherit;
}

.module-content-wrapper .form-control:focus,
.module-content-wrapper .form-select:focus {
    background: none;
    border: none;
    box-shadow: none;
    outline: none;
}

/* ביטול עיצוב גלובלי לטקסט */
.module-content-wrapper {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* ביטול עיצוב גלובלי לניווט */

/* ביטול עיצוב גלובלי למודלים */
.module-content-wrapper .modal-content {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

/* ביטול עיצוב גלובלי לדפדוף */
.module-content-wrapper .pagination .page-link {
    background: none;
    border: none;
    border-radius: 0;
    color: inherit;
    margin: 0;
}

/* ביטול עיצוב גלובלי לתגיות */
.module-content-wrapper .badge {
    background: none;
    border: none;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    padding: inherit;
}

/* ביטול עיצוב גלובלי להתראות */
.module-content-wrapper .alert {
    background: none;
    border: none;
    border-radius: 0;
    color: inherit;
    padding: inherit;
    margin: inherit;
}

/* ביטול עיצוב גלובלי לרשימות */
.module-content-wrapper .list-group-item {
    background: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: inherit;
}

/* ביטול עיצוב גלובלי להתקדמות */
.module-content-wrapper .progress {
    background: none;
    border-radius: 0;
    overflow: visible;
}

/* ביטול עיצוב גלובלי לקבוצות קלט */
.module-content-wrapper .input-group .form-control {
    background: none;
    border: none;
    border-radius: 0;
}

.module-content-wrapper .input-group-text {
    background: none;
    border: none;
    border-radius: 0;
}

/* ביטול עיצוב גלובלי לדרופדאונים - רק לדרופדאונים שלא בתוך navbar */
.module-content-wrapper .dropdown-menu:not(.navbar .dropdown-menu) {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.module-content-wrapper .dropdown-item:not(.navbar .dropdown-item) {
    background: none;
    border: none;
    color: inherit;
    padding: inherit;
}

.module-content-wrapper .dropdown-item:not(.navbar .dropdown-item):hover {
    background: none;
    color: inherit;
}

/* ביטול אנימציות גלובליות */
.module-content-wrapper * {
    animation: none;
    transition: none;
    transform: none;
}

/* ביטול עיצוב גלובלי לכפתורי פעולה */
.module-content-wrapper .action-buttons .btn,
.module-content-wrapper .btn-filter,
.module-content-wrapper .btn-export,
.module-content-wrapper .btn-add,
.module-content-wrapper .btn-edit,
.module-content-wrapper .btn-delete {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: inherit;
    font-weight: inherit;
    padding: inherit;
    margin: inherit;
    transition: none;
    transform: none;
}

.module-content-wrapper .action-buttons .btn::before,
.module-content-wrapper .btn-filter::before,
.module-content-wrapper .btn-export::before,
.module-content-wrapper .btn-add::before,
.module-content-wrapper .btn-edit::before,
.module-content-wrapper .btn-delete::before {
    display: none;
}

/* ביטול עיצוב גלובלי לכרטיסים מודרניים במודולים אחרים */
.module-content-wrapper:not(.dashboard-page) .modern-card,
.module-content-wrapper:not(.dashboard-page) .gradient-card {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.module-content-wrapper:not(.dashboard-page) .modern-card::before,
.module-content-wrapper:not(.dashboard-page) .gradient-card::before {
    display: none;
}

/* החזרת עיצוב לדאשבורד - שימוש בקובץ הגלובלי */
.dashboard-page .gradient-card,
.dashboard-page .modern-card {
    /* העיצוב מגיע מקובץ shared-components.css */
    position: relative;
}

/* הגדרת רקעים שונים לכל gradient-card-X בדאשבורד עם אפקטים */
.dashboard-page .gradient-card-1 {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 
                0 0 20px rgba(102, 126, 234, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-page .gradient-card-1:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 30px rgba(102, 126, 234, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dashboard-page .gradient-card-2 {
    background: linear-gradient(135deg, var(--warning-400) 0%, var(--error-500) 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 
                0 0 20px rgba(240, 147, 251, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-page .gradient-card-2:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 30px rgba(240, 147, 251, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dashboard-page .gradient-card-3 {
    background: linear-gradient(135deg, var(--info-500) 0%, var(--info-400) 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 
                0 0 20px rgba(79, 172, 254, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-page .gradient-card-3:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 30px rgba(79, 172, 254, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dashboard-page .gradient-card-4 {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-400) 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 
                0 0 20px rgba(67, 233, 123, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-page .gradient-card-4:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 30px rgba(67, 233, 123, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dashboard-page .gradient-card-5 {
    background: linear-gradient(135deg, var(--warning-400) 0%, var(--warning-300) 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 
                0 0 20px rgba(250, 112, 154, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-page .gradient-card-5:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 30px rgba(250, 112, 154, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dashboard-page .gradient-card-6 {
    background: linear-gradient(135deg, var(--info-200) 0%, var(--warning-200) 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 
                0 0 20px rgba(168, 237, 234, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-page .gradient-card-6:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 30px rgba(168, 237, 234, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* הערה: ::before מוגדר ב-shared-components.css עם אפקט shimmer */
/* כאן רק מוודאים שההגדרות לא מחליפות את העיצוב */

/* פס עליון צבעוני לכל כרטיס KPI בדאשבורד */
.dashboard-page .gradient-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--warning-500) 0%, var(--warning-400) 100%);
    z-index: 3;
    pointer-events: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.dashboard-page .gradient-card-1::after {
    background: linear-gradient(90deg, var(--warning-500) 0%, var(--warning-400) 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.dashboard-page .gradient-card-2::after {
    background: linear-gradient(90deg, var(--warning-500) 0%, var(--warning-400) 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.dashboard-page .gradient-card-3::after {
    background: linear-gradient(90deg, var(--warning-500) 0%, var(--warning-400) 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.dashboard-page .gradient-card-4::after {
    background: linear-gradient(90deg, var(--warning-500) 0%, var(--warning-400) 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.dashboard-page .gradient-card-5::after {
    background: linear-gradient(90deg, var(--warning-500) 0%, var(--warning-400) 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.dashboard-page .gradient-card-6::after {
    background: linear-gradient(90deg, var(--warning-500) 0%, var(--warning-400) 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.dashboard-page .card-icon {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.dashboard-page .card-icon i {
    font-size: 3rem;
    opacity: 1;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                 0 0 20px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.dashboard-page .gradient-card:hover .card-icon i {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.dashboard-page .card-number {
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0 12px 0;
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                 0 0 20px rgba(255, 255, 255, 0.1);
    letter-spacing: -1px;
    line-height: 1.2;
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.dashboard-page .card-label {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.dashboard-page .gradient-card small {
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: block;
    margin-top: 8px;
    line-height: 1.4;
}

.dashboard-page .modern-icon {
    color: var(--icon-color, var(--primary-500));
    font-size: 2rem;
    margin-bottom: 1rem;
}

.dashboard-page .icon-2xl {
    font-size: 2.5rem;
}

.dashboard-page .icon-xl {
    font-size: 2rem;
}

/* עיצוב כותרת הדאשבורד */
.dashboard-page h1 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-page .text-white {
    color: var(--text-primary);
}

.dashboard-page .text-white-50 {
    color: var(--text-secondary);
}

/* עיצוב כפתורים בדאשבורד */
.dashboard-page .btn {
    background: var(--btn-bg, var(--primary-500));
    border: 1px solid var(--btn-border, var(--primary-500));
    border-radius: 0.35rem;
    color: var(--btn-text, var(--text-inverse));
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    margin: 0 0.25rem;
    transition: all 0.15s ease-in-out;
}

.dashboard-page .btn:hover {
    background: var(--btn-hover-bg, var(--primary-700));
    border-color: var(--btn-hover-border, var(--primary-700));
    transform: translateY(-1px);
}

.dashboard-page .btn-primary {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.dashboard-page .btn-success {
    background: var(--success-500);
    border-color: var(--success-500);
}

.dashboard-page .btn-warning {
    background: var(--warning-500);
    border-color: var(--warning-500);
    color: var(--text-inverse);
}

/* עיצוב התראות בדאשבורד */
.dashboard-page .alert {
    background: var(--alert-bg, var(--warning-50));
    border: 1px solid var(--alert-border, var(--warning-200));
    border-radius: 0.35rem;
    color: var(--alert-text, var(--warning-700));
    padding: 1rem;
    margin-bottom: 1rem;
}

.dashboard-page .alert-warning {
    background: var(--warning-50);
    border-color: var(--warning-200);
    color: var(--warning-700);
}

/* עיצוב progress bar בדאשבורד */
.dashboard-page .progress {
    background: var(--bg-secondary);
    border-radius: 0.35rem;
    height: 1rem;
    overflow: hidden;
}

.dashboard-page .progress-bar {
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-700) 100%);
    border-radius: 0.35rem;
}

/* עיצוב קומפקטי לפעילות אחרונה בדאשבורד */
.recent-activity-list {
    padding: 0;
    margin: 0;
}

.recent-activity-list .activity-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-primary);
    font-size: 0.98em;
    transition: background 0.15s;
}

.recent-activity-list .activity-row:last-child {
    border-bottom: none;
}

.recent-activity-list .activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    color: var(--text-inverse);
    background: var(--primary-500);
    flex-shrink: 0;
}

.recent-activity-list .activity-row.bg-success .activity-icon {
    background: var(--success-500);
}

.recent-activity-list .activity-row.bg-warning .activity-icon {
    background: var(--warning-500);
}

.recent-activity-list .activity-row.bg-danger .activity-icon {
    background: var(--error-500);
}

.recent-activity-list .activity-row.bg-info .activity-icon {
    background: var(--info-500);
}

.recent-activity-list .activity-row.bg-secondary .activity-icon {
    background: var(--text-secondary);
}

.recent-activity-list .activity-row.bg-primary .activity-icon {
    background: var(--primary-500);
}

.recent-activity-list .activity-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.recent-activity-list .activity-title {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-activity-list .activity-desc {
    color: var(--text-secondary);
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-activity-list .activity-date {
    color: var(--text-tertiary);
    font-size: 0.92em;
    margin-right: 1rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.recent-activity-list .activity-row:hover {
    background: var(--bg-secondary);
}
} /* סיום @layer resets */
