:root {
    --header-height: 50px;
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --success-color: #2bb673;
    --warning-color: #f7b84b;
    --danger-color: #e63946;
    --body-bg: #f3f6f9; /*#f9f5f0;*/
    --card-bg: #fff;
    --border-color: #e9ebec;
    --text-color: #495057;
    --text-muted: #7c8a96;
    --font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
#loading{
    z-index: 99999;
    width: 100%;
    height: 100%;
    line-height: 50%;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 30vh;
    text-align: center;
    cursor:  progress;
    background: #00000099;
}
#loading img{
    padding: 0;
    width: 100px;
    height: 100px;
    border-radius: 100%;
    background: #ffffff;
    position: relative;
    border: solid 1px #286090;
}
/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #4285f4;
  border-radius: 10px;
  border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b78e7;
}
/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #ddd #f1f1f1;
}
html,body {
    background-color: var(--body-bg);
    font-family: var(--font-family);
    color: var(--text-color);
	font-size: 15px;
}
img{
  max-width: 100%
}
[data-title] {  
    position: relative;
    cursor: pointer;
}
[data-title]:hover:before {
    content: attr(data-title);
    position: absolute;
    top: calc( 100% + 10px );
    left: 0px;
    display: inline-block;
    padding: 0px 8px 3px 8px;
    background: #444;
    color: #fff;
    z-index: 9999;
    font-size: 10px;
}
[data-title]:hover::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 7px;
    display: inline-block;
    border: 7px solid transparent;	
    border-bottom: 7px solid #444;
    z-index: 9999;
}

/* main */
.main-content {
    padding-top: 20px;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    min-height: 100vh;
}
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    background-color: var(--card-bg);
}
.page-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

/*bootstrap*/
.form-control ,
.form-select{
  padding:.2rem .5rem;
  line-height:1;
  border-radius: 0;
  min-height: 30px;
}
.form-control:focus ,
.form-select:focus{
  box-shadow: none;
}
.table>:not(caption)>*>* {
  border-top-width:var(--bs-border-width);
}
/*endbootstrap*/


.page-title {
    margin-bottom: 0;
    color: #343a40;
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}
/* Tables */
.table-card, 
.form-card {
    margin-bottom: 1.5rem;
    border: solid 1px #dfdfdf;
    border-radius: 0;
}
.table-card .card-header {
    padding: 0.8rem;
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.table-card .card-header .card-title {
    margin: 0;
}
.main-table thead th{
    background: #f3f6f9;
    padding: 0.5rem 1rem;
}
.main-table thead td{
    background: #f3f6f9;
    padding: 0.4rem 0.2rem;
}
.main-table tbody td{
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}
.main-table tbody tr:hover td{
    background: #f6f6f6;
}



/* End Tables */
/* بطاقات الإحصائيات */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.875rem;
}

.stats-col {
    flex: 1;
    padding: 0 0.875rem;
    min-width: 250px;
    margin-bottom: 1.75rem;
}

.stat-card {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.25rem;
    transition: var(--transition);
}

.stat-icon.primary {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15) 0%, rgba(58, 12, 163, 0.15) 100%);
    color: var(--primary-color);
}

.stat-icon.success {
    background: linear-gradient(135deg, rgba(43, 182, 115, 0.15) 0%, rgba(37, 157, 101, 0.15) 100%);
    color: var(--success-color);
}

.stat-icon.warning {
    background: linear-gradient(135deg, rgba(247, 184, 75, 0.15) 0%, rgba(233, 159, 32, 0.15) 100%);
    color: var(--warning-color);
}

.stat-icon.danger {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(209, 42, 55, 0.15) 100%);
    color: var(--danger-color);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-info {
    flex: 1;
}

.stat-info .value {
    font-weight: 700;
    color: #343a40;
    margin: 0;
    line-height: 1.2;
}

.stat-info .label {
    color: var(--text-muted);
    margin: 0;
    margin-top: 0.25rem;
    font-weight: 500;
}

.stat-info .trend {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    margin-top: 0.5rem;
}

.trend-up {
    color: var(--success-color);
}

.trend-down {
    color: var(--danger-color);
}

.trend i {
    margin-right: 3px;
}

/* تحسين الجدول */


.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

.status-active {
    background-color: rgba(43, 182, 115, 0.15);
    color: var(--success-color);
}

.status-pending {
    background-color: rgba(247, 184, 75, 0.15);
    color: var(--warning-color);
}

.status-canceled {
    background-color: rgba(230, 57, 70, 0.15);
    color: var(--danger-color);
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    margin-right: 12px;
    background-color: #f3f6f9;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-name {
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.user-email {
    color: var(--text-muted);
    font-size: 0.825rem;
    margin: 0;
    margin-top: 2px;
}

.actions-cell {
    text-align: left;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f6f9;
    color: var(--text-color);
    border: none;
    font-size: 0.95rem;
    margin-left: 5px;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}


/* مسؤول عن التجاوب */
@media (max-width: 1200px) {
    .stats-col {
        min-width: 200px;
        flex-basis: 50%;
    }
}


@media (max-width: 576px) {

    .page-title {
        font-size: 1.25rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-tools {
        margin-top: 0.75rem;
        width: 100%;
        justify-content: space-between;
    }

    .main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}