body{
    margin:0;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    background-color: #ECEAE8;
    /*background:linear-gradient(135deg,#f8fafc,#ECEAE8);*/
    font-family:'Cairo',sans-serif;
    direction:ltr;
    text-align:justify;
}

.header{
    position:fixed;
    top:0;
    right:0;
    left:0;
    height:75px;
    background:#fff;
    display:flex;
    
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
    box-shadow:0 4px 20px rgba(0,0,0,.08);
    z-index:9999;
    border-bottom:1px solid #e5e7eb;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    height:50px;
}

.logo strong{
    color:#11294C;
    font-size:18px;
    font-weight:700;
}

.toggle-btn{
    font-size:24px;
    cursor:pointer;
    color:#11294C;
}

/* SIDEBAR */
.sidebar{
    position:fixed;
    top:75px;
    height:calc(100vh - 75px);
    overflow-y:auto;
    z-index:100;
    transition:.4s;
}


.sidebar {
    left: 0;
    right: auto;
     width:370px;
}
.sidebar a{
    display:flex;
    align-items:center;
    gap:12px;
    margin:5px 12px;
    padding:14px 18px;
    color:#fff;
    text-decoration:none;
    border-radius:12px;
    transition:.3s;
    font-size:15px;
    font-weight:600;
}

.sidebar a:hover{
   background:linear-gradient(180deg,#11294C,#1e293b);
    transform:translateX(-5px);
}

.sidebar.collapsed{
    right:-260px;
}

.sidebar.collapsed {
    left: -380px;
    right: auto;
}

.content{
    flex:1;
    margin-top:75px;
    padding:25px;
    transition:.4s;
    padding-bottom:70px;
}

.content {
    margin-left: 360px;
}

.content.full {
    margin-left: 0;
    margin-right: 0;
}
.content.expanded {
    margin-right: 0 !important;
    margin-left: 0 !important;
}
.page-wrapper{
    padding-bottom:90px;
}
/* Outgoing Links */
.outgoing-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.outgoing-link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.outgoing-link-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.09);
}

.outgoing-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 14px;
    font-size: 21px;
}

.outgoing-link-info {
    flex: 1;
    min-width: 0;
}

.outgoing-link-title {
    display: block;
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.outgoing-link-title:hover {
    color: #2563eb;
    text-decoration: none;
}

.outgoing-link-subtitle {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
}

.outgoing-link-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.outgoing-link-open,
.outgoing-link-edit,
.outgoing-link-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.outgoing-link-open:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.outgoing-link-edit:hover {
    color: #0f766e;
    background: #f0fdfa;
    border-color: #99f6e4;
}

.outgoing-link-delete:hover {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.outgoing-links-empty {
    grid-column: 1 / -1;
    padding: 55px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

.outgoing-links-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 26px;
}

.outgoing-links-empty h3 {
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 19px;
    font-weight: 700;
}

.outgoing-links-empty p {
    margin-bottom: 20px;
    color: #64748b;
    font-size: 14px;
}

/* Tablet */
@media (max-width: 992px) {
    .outgoing-links-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .outgoing-link-card {
        gap: 11px;
        padding: 14px;
        border-radius: 13px;
    }

    .outgoing-link-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
        border-radius: 11px;
    }

    .outgoing-link-title {
        font-size: 13px;
    }

    .outgoing-link-actions {
        gap: 4px;
    }

    .outgoing-link-open,
    .outgoing-link-edit,
    .outgoing-link-delete {
        width: 30px;
        height: 30px;
        font-size: 12px;
        border-radius: 8px;
    }
}
/* USER AREA */
.user-area{
    display:flex;
    align-items:center;
    gap:12px;
    margin-left:15px;
}
.ui-card-title a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.course-arrow {
    margin-right: auto;
    font-size: 13px;
    color: #64748b;
    transition: transform 0.25s ease, color 0.25s ease;
}

.ui-card:hover .course-arrow {
    color: #2563eb;
    transform: translateX(-4px);
}
.avatar{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#11294C;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
}

.user-name{
    color:#11294C;
    font-weight:700;
    text-decoration:none;
    padding:6px 10px;
    border-radius:20px;
    transition:.3s;
}

.user-name:hover{
    background:#ECEAE8;
}

.login-btn{
    background:linear-gradient(90deg,#11294C,#448aff);
    color:#fff;
    padding:8px 16px;
    border-radius:5px;
    text-decoration:none;
    font-weight:700;
    white-space:nowrap;
}
/* BANNER */
.banner{
    width:100%;
    height:280px;
    overflow:hidden;
    border-radius:25px;
    margin-bottom:30px;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
}

.banner img{
    width:100%;
    height:100%;
    object-fit:cover;
}

  /* تنسيقات ضبط صور أغلفة الكتب */
    .ui-book-cover {
        width: 100%;
        height: 260px;
        overflow: hidden;
        border-radius: 8px;
        background-color: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }

    .ui-book-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
    }

    .ui-book-cover:hover img {
        transform: scale(1.03);
    }
.theses-page {
    --academic-navy: #243b53;
    --academic-text: #334155;
    --academic-muted: #64748b;
    --academic-border: #dce3ea;
    --academic-background: #ffffff;

    color: var(--academic-text);
    padding-bottom: 35px;
}

/* ========================================
   Page Header
======================================== */

.theses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.theses-header h2 {
    margin: 0;
    color: var(--academic-navy);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.5;
}

.theses-subtitle {
    margin: 7px 0 0;
    color: var(--academic-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Add Thesis Button */

.theses-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid var(--academic-navy);
    border-radius: 3px;
    background: var(--academic-navy);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.theses-add-btn:hover,
.theses-add-btn:focus {
    background: #344f6b;
    border-color: #344f6b;
    color: #ffffff;
    text-decoration: none;
}

/* Header Divider */

.theses-divider {
    height: 2px;
    margin-bottom: 25px;
    background: var(--academic-navy);
}



.theses-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Thesis Card */

.thesis-item {
    min-width: 0;
    padding: 24px 26px;
    border: 1px solid var(--academic-border);
    border-radius: 2px;
    background: var(--academic-background);
}


.thesis-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--academic-border);
}

.thesis-title-area {
    min-width: 0;
    flex: 1;
}

.thesis-title-area h3 {
    margin: 0 0 10px;
    color: var(--academic-navy);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* Thesis Type and Year */

.thesis-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--academic-muted);
    font-size: 13px;
    line-height: 1.8;
}

.meta-separator {
    color: #a0acb9;
}


.thesis-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.thesis-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--academic-border);
    border-radius: 3px;
    background: #ffffff;
    color: var(--academic-muted);
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.thesis-action:hover,
.thesis-action:focus {
    border-color: var(--academic-navy);
    background: #ffffff;
    color: var(--academic-navy);
    text-decoration: none;
}

.delete-action:hover,
.delete-action:focus {
    border-color: #a33b3b;
    color: #a33b3b;
}



.thesis-details {
    display: flex;
    flex-direction: column;
    gap: 19px;
    padding-top: 22px;
}

.thesis-field {
    min-width: 0;
}

/* Field Labels */

.field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--academic-navy);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

/* Field Values */

.field-value {
    color: var(--academic-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.9;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

/* Abstract */

.thesis-abstract {
    text-align: justify;
    line-height: 2;
}


.thesis-institution {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 17px 0;
    border-top: 1px solid var(--academic-border);
    border-bottom: 1px solid var(--academic-border);
}

.institution-field {
    min-width: 0;
}

.institution-field .field-value {
    display: block;
}

.thesis-document {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.thesis-document .field-label {
    margin: 0;
}

.thesis-document-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--academic-navy);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.thesis-document-link:hover,
.thesis-document-link:focus {
    color: #526b85;
}

.document-external-icon {
    font-size: 11px;
}

.document-unavailable {
    color: var(--academic-muted);
    font-size: 14px;
}



.theses-empty {
    padding: 45px 20px;
    border: 1px solid var(--academic-border);
    background: #ffffff;
    text-align: center;
}

.theses-empty h3 {
    margin: 0 0 10px;
    color: var(--academic-navy);
    font-size: 20px;
    font-weight: 700;
}

.theses-empty p {
    margin: 0 0 20px;
    color: var(--academic-muted);
    font-size: 14px;
    line-height: 1.8;
}


@media (max-width: 767px) {

    .theses-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .theses-header h2 {
        font-size: 21px;
    }

    .theses-add-btn {
        align-self: flex-start;
    }

    .theses-divider {
        margin-bottom: 20px;
    }

    .theses-list {
        gap: 16px;
    }

    .thesis-item {
        padding: 18px 16px;
    }

    .thesis-heading {
        gap: 10px;
        padding-bottom: 15px;
    }

    .thesis-title-area h3 {
        font-size: 16px;
        line-height: 1.8;
    }

    .thesis-meta {
        gap: 7px;
        font-size: 12px;
    }

    .thesis-action {
        width: 30px;
        height: 30px;
    }

    .thesis-details {
        gap: 17px;
        padding-top: 18px;
    }

    .field-label {
        font-size: 12px;
    }

    .field-value {
        font-size: 13px;
        line-height: 1.9;
    }

    .thesis-institution {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .thesis-document {
        align-items: flex-start;
        gap: 10px;
    }
}



@media (max-width: 420px) {

    .theses-header h2 {
        font-size: 19px;
    }

    .thesis-item {
        padding: 15px 12px;
    }

    .thesis-heading {
        flex-wrap: wrap;
    }

    .thesis-title-area {
        flex-basis: 100%;
    }

    .thesis-actions {
        margin-top: 2px;
    }

    .thesis-title-area h3 {
        font-size: 15px;
    }

    .thesis-meta {
        font-size: 11px;
    }
}

/* SECTION CARD */
.card{
    border:none;
    border-radius:20px;
    overflow:hidden;
    margin-bottom:30px;
    box-shadow:0 8px 25px rgba(0,0,0,.07);
}

.card-header{
    background:linear-gradient(90deg,#11294C,#448aff);
    color:#fff;
    padding:18px 25px;
    border:none;
}

.card-header p{
    margin:0;
    color:#fff !important;
    font-size:20px !important;
    font-weight:700 !important;
}

/* FACULTY CARDS */
.faculty-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    border:1px solid #edf2f7;
    transition:.4s;
    height:280px;
    position:relative;
    cursor:pointer;
}

.faculty-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 35px rgba(0,0,0,.12);
}

.faculty-card .card-body{
    height:200px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.faculty-logo{
    width:100px;
    height:100px;
    object-fit:contain;
    transition:.4s;
}

.faculty-card:hover .faculty-logo{
    transform:scale(1.1);
}

.faculty-name{
    text-align:center;
    padding:18px;
    background:#f8fafc;
    border-top:1px solid #eee;
    font-size:17px;
    font-weight:700;
}

/* arrow effect */
.ui-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.course-description-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f0f4ff;
    color: #2563eb;
    text-decoration: none;
    transition: 0.2s ease;
}

.course-description-arrow:hover {
    background: #2563eb;
    color: #fff;
}
.faculty-card::after{
    
    position:absolute;
    top:15px;
    left:15px;
    width:36px;
    height:36px;
    border-radius:50%;
    background:#11294C;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:.3s;
}

.faculty-card:hover::after{
    opacity:1;
}

/* GRID SPACING */
.row{
    padding:10px;
}

/* SCROLLBAR */
.sidebar::-webkit-scrollbar{
    width:6px;
}

.sidebar::-webkit-scrollbar-thumb{
    background:#448aff;
    border-radius:20px;
}
@media(max-width:768px){

    .sidebar{
        right:-260px;
    }

    .content{
        margin-right:0;
        margin-left: 0;
        padding:15px;
    }

    .logo strong{
        font-size:15px;
    }

    .faculty-card{
        height:auto;
    }
}


 
/* =====================
   FOOTER
===================== */

.pagefooter{
   

    background:linear-gradient(180deg,#11294C,#1e293b);
    color:#ffffff;

    height:50px;
    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;
    font-size:14px;
    font-weight:600;

    z-index:9999;

    width:100%;
    margin-top:40px;
   
}

 
   

/* =====================
   CLICKABLE CARDS
===================== */


/* 🌍 language simple */
.lang-switch{
    display:flex;
    align-items:center;
    gap:6px;
    font-weight:700;
}

.lang-switch a{
    color:#11294C;
    text-decoration:none;
     border-radius: 5px;
}

.lang-switch a:hover{
    color:#448aff;
}



/* optional small animation */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(-6px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* =====================
   MOBILE
===================== */



.dropdown-menu{
    border: none !important;
    border-radius: 14px !important;
    padding: 8px 0 !important;
    min-width: 180px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    overflow: hidden;
    margin-top:10px;
}

/* items */
.dropdown-menu li a{
    display:block;
    padding:10px 14px;
    color:#11294C;
    font-weight:600;
    text-decoration:none;
    transition:.2s;
}

/* hover */
.dropdown-menu li a:hover{
    background:#ECEAE8;
    padding-right:18px;
}

/* animation */
.dropdown-menu{
    animation: fadeIn .2s ease-in-out;
}

/* LOGIN PAGE */

.login-block{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:120px 20px 80px;
    background:linear-gradient(135deg,#f8fafc,#ECEAE8);
}

.auth-box{
    width:100%;
    max-width:450px;
    margin:auto;
    border:none;
    border-radius:24px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 15px 40px rgba(15,76,129,.12);
}

.auth-box .card-block{
    padding:40px;
}

.auth-box h3{
    color:#11294C;
    font-weight:700;
    margin-bottom:10px;
}

.auth-box p{
    color:#64748b;
    margin-bottom:25px;
}

.form-group{
    margin-bottom:25px;
}

.form-control{
    height:48px;
    border:2px solid #e5e7eb !important;
    border-radius:12px !important;
    box-shadow:none !important;
    transition:.3s;
}

.form-control:focus{
    border-color:#448aff !important;
}

.float-label{
    display:block;
    margin-bottom:8px;
    color:#11294C;
    font-weight:600;
}

.form-bar{
    display:none;
}

.auth-box button[type="submit"]{
    width:100%;
    border:none;
    border-radius:14px;
    padding:14px;
    font-size:16px;
    font-weight:700;
    color:#fff;
    background:linear-gradient(90deg,#11294C,#448aff);
    transition:.3s;
}

.auth-box button[type="submit"]:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(68,138,255,.3);
}

.forgot-phone{
    margin-top:10px;
}

.forgot-phone a{
    color:#11294C;
    text-decoration:none;
    font-weight:600;
}

.forgot-phone a:hover{
    color:#448aff;
}

.alert{
    border:none;
    border-radius:12px;
}

.alert-info{
    background:#ECEAE8;
    color:#11294C;
}

@media(max-width:768px){

    .login-block{
        padding:100px 15px 70px;
    }

    .auth-box{
        border-radius:18px;
    }

    .auth-box .card-block{
        padding:25px;
    }
}

.navbar .dropdown-menu li a {
        white-space: nowrap;
    }

    .navbar .dropdown-menu {
        min-width: 260px;
        /* زوّدي المساحة بحيث يطلع النص كامل */
        right: 0;
        /* يبقى منسوب للجهة اليمنى زي ما هو */
        left: auto;
        /* يمنع أي مشكلة من float */
    }

    .language-switch {
        display: inline-flex;
        background: #f1f3f5;
        border-radius: 50px;
        padding: 4px;
        text-decoration: none;
    }

    .language-switch span {
        padding: 6px 14px;
        border-radius: 50px;
        color: #555;
        font-weight: 600;
    }

    .language-switch .active {
        background: #0d6efd;
        color: white;
    }


   /*==============================
        PROFILE HEADER
==============================*/

.profile-header{

    margin-bottom:35px;

}

.profile-cover{

    height:260px;

    overflow:hidden;

    border-radius:22px 22px 0 0;
}

.profile-cover img{

    width:100%;

    height:100%;

    object-fit:cover;
}

.profile-info{

    background:#fff;

    border-radius:0 0 22px 22px;

    box-shadow:0 10px 30px rgba(15,76,129,.08);

    padding:25px 35px;

    display:flex;

    align-items:center;

    gap:25px;
}

.profile-avatar{

    flex-shrink:0;
}

.profile-avatar img{

    width: 150px;px;

    height:150px;

    border-radius:50%;

    object-fit:cover;

    border:5px solid #fff;

    box-shadow:0 8px 20px rgba(0,0,0,.15);

    
}

.profile-details{
    flex-wrap:wrap;
}

.profile-details h2{
    color:#11294C;
    font-size:32px;
    font-weight:700;
}

html[dir="rtl"] .profile-details
{
    text-align:right;
}

.profile-details .position{
    color:#64748b;
    font-size:18px;
    font-weight:600;
}

.profile-meta{

    display:flex;

    flex-wrap:wrap;

    gap:12px;
}

.profile-meta span{

    background:#ECEAE8;

    color:#11294C;

    padding:8px 16px;

    border-radius:25px;

    font-weight:600;

    display:flex;

    align-items:center;

    gap:8px;
}

@media(max-width:768px){

    .profile-info{

        flex-direction:column;

        text-align:center;

        padding:20px;
    }

    .profile-details h2{

        font-size:24px;
    }

    .profile-meta{

        justify-content:center;
    }

    .profile-avatar img{

        width:110px;
        height:110px;
    }

}

/*==================================
        PROFILE TABS
==================================*/
/*=====================================
    PROFILE TABS
======================================*/

.profile-tabs{

    display:flex;
    justify-content:center;
    gap:15px;

    border:none;

    margin:35px 0;

    flex-wrap:wrap;

}

.profile-tabs .nav-item{

    margin:0;

}

.profile-tabs .nav-link{

    border:none !important;

    border-radius:5px !important;

    /*padding:14px 28px;*/

    background:#ffffff;

    color:#64748b;

    font-weight:600;

    font-size:15px;

    transition:.3s;

    box-shadow:0 4px 15px rgba(0,0,0,.05);

}

.profile-tabs .nav-link i{

    margin-right:8px;

}

.profile-tabs .nav-link:hover{

    background:#ECEAE8;

    color:#11294C;

    transform:translateY(-2px);

}

.profile-tabs .nav-link.active{

    background:linear-gradient(90deg,#11294C,#2563eb);

    color:#fff !important;

    box-shadow:0 10px 25px rgba(15,76,129,.25);

}
/*====================================
        PROFILE SECTIONS
====================================*/
/* ===== Modern Section ===== */

.profile-section{
    background:#fff;
    border-radius:18px;
    padding:10px;
    margin-bottom:35px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

/* عنوان القسم */

.section-title{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:26px;
    font-weight:700;
    color:#1d4f91;
    margin-bottom:25px;
    position:relative;
    padding-bottom:12px;
}

.section-title::after{
    content:"";
    position:absolute;
    bottom:0;
    width:90px;
    height:4px;
    border-radius:20px;
    background:linear-gradient(90deg,#1d4f91,#4f9cff);
}

.section-title i{
    width:46px;
    height:46px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#ECEAE8;
    color:#1d4f91;
    font-size:18px;
}
.profile-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:18px;

}

.profile-section{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    margin-bottom:30px;
    box-shadow:0 10px 30px rgba(15,76,129,.08);
    border:1px solid #edf2f7;
}

.profile-table{
    padding:12px 28px;
}

.profile-section .section-header{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:26px;
    font-weight:700;
    color:#11294C;
    padding:18px 25px;
    border-bottom:2px solid #e9eef5;
    background:#fff;
}

.section-header i{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#edf4ff;
    color:#2d6cdf;
    font-size:18px;
}


.profile-row{
    display:flex;
    /*justify-content:space-between;*/
    align-items:center;
    padding:18px 0;
    border-bottom:1px solid #eef2f7;
}

.profile-row:last-child{
    border-bottom:none;
}

.profile-label{
    color:#6D6D6D;
    font-size:15px;
    font-weight:600;
    min-width:180px;
}

.profile-value{
    color:#174b87;
    font-weight:700;
    text-align:left;
}

html[dir="rtl"] .profile-label
{
    text-align:right;
}

html[dir="rtl"] .profile-value
{
    text-align:right;
}

.info-title{

    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
    color:#64748b;
    font-size:14px;
    font-weight:700;
}


.info-title i{

    width:38px;
    height:38px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:linear-gradient(135deg,#11294C,#448aff);

    color:#fff;

    font-size:15px;

    flex-shrink:0;

    box-shadow:0 5px 15px rgba(15,76,129,.18);

}

.info-value{

    color:#11294C;

    font-size:18px;

    font-weight:700;

    line-height:1.8;

    padding-right:50px;

}

@media(max-width:768px){

.profile-grid{

grid-template-columns:1fr;

}

}
/* =======================
   Publications
=======================*/

.publication-stats{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

    margin-bottom:35px;

}

.stat-box{

    background:#f8fbff;

    border-radius:16px;

    text-align:center;

    padding:15px;

    border:1px solid #e5edf8;

}

.stat-box h2{

    color:#11294C;

    margin:0;

    font-size:34px;

    font-weight:700;

}

.stat-box span{

    color:#64748b;

    font-weight:600;

}

.publication-item{

    display:flex;

    justify-content:space-between;

    flex-direction:column;

    align-items:flex-start;

    gap:12px;

    padding:22px 0;

    border-bottom:1px solid #eceff5;


}

.publication-item:last-child{

    border-bottom:none;

}

.publication-item h5{

    margin:0;

    color:#11294C;

    font-weight:700;

}

.publication-item small{

    color:#888;

}

.publication-btn{

    background:#ECEAE8;

    color:#11294C;

    padding:8px 18px;

    border-radius:30px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.publication-btn:hover{

    background:#11294C;

    color:#fff;

}
/*=====================================
 NEWS
======================================*/

.news-item{

    padding:25px 0;

    border-bottom:1px solid #edf2f7;

}

.news-item:last-child{

    border-bottom:none;

}

.news-content h5{

    color:#11294C;

    font-size:20px;

    font-weight:700;

    margin-bottom:10px;

}

.news-content small{

    display:block;

    color:#64748b;

    margin-bottom:15px;

}

.news-content p{

    color:#444;

    line-height:1.9;

    margin-bottom:15px;

}

.attachment-link{

    display:inline-flex;

    align-items:center;

    gap:8px;

    color:#11294C;

    font-weight:600;

    text-decoration:none;

}

.attachment-link:hover{

    color:#2563eb;

}.cv-links{

    display:flex;

    flex-direction:column;

    gap:12px;

    margin-top:10px;

}

.cv-btn{

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px 16px;

    border:2px solid #11294C;

    border-radius:12px;

    color:#11294C;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

    background:#fff;

}

.cv-btn:hover{

    background:#11294C;

    color:#fff;

    text-decoration:none;

    transform:translateX(-4px);

}

.cv-btn i{

    font-size:16px;

}


/* Sidebar */



.profile-sidebar{
    position:sticky;
    background:#fff;
    padding:18px;
    /*top:90px;
    border-radius:18px;
    box-shadow:10px 0px 35px rgba(0,0,0,.08);
    max-height:calc(100vh - 110px);*/
    overflow-y:auto;
}


/* Title */
.sidebar-title{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:18px;

    font-size:18px;

    font-weight:700;

    color:#1d4f91;

}

.sidebar-title i{

    width:38px;
    height:38px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#ECEAE8;

}

/* Menu */

.sidebar-menu{

    list-style:none;

    padding:0;

    margin:0;
    
    width: fit-content;

}

.sidebar-menu li{

    margin-bottom:12px;

}

/* Links */

.sidebar-link{

    display:flex;

    align-items:center;

    justify-content:space-between;

    text-decoration:none;

    color:#355c8c !important;

    background:#fff;

    border:1px solid #edf2fa;

    border-radius:14px;

    padding:13px 15px;

    transition:.3s;

    font-weight:600;

}

.sidebar-link:hover{

    background:#2f6fe4;

    color:#fff !important;

    transform:translateX(-4px);

}

.sidebar-link.active{

    background:linear-gradient(135deg,#1d4f91,#4285f4);

    color:#fff !important;

}

/* icon */

.sidebar-link .icon{

    width:28px;

    text-align:center;

    font-size:15px;

}

/* text */

.sidebar-link .text{
    flex:1;
    margin:0 12px;
    text-align: justify;
}

/* arrow */

.sidebar-link .arrow{

    font-size:12px;

}

/* submenu */

.submenu{

    list-style:none;

    margin-top:8px;

    padding-right:18px;

    display:none;

}

.submenu li{

    margin:6px 0;

}

.submenu a{

    display:block;

    color:#666;

    text-decoration:none;

    padding:8px 12px;

    border-radius:8px;

    transition:.3s;

}

.submenu a:hover{

    background:#f3f7ff;

    color:#2f6fe4;

}

.sidebar-menu li:hover>.submenu{

    display:block;

}

@media(max-width:768px){

    .profile-tabs{

        justify-content:flex-start;

        overflow-x:auto;

        flex-wrap:nowrap;

        padding-bottom:10px;

    }

    .profile-tabs::-webkit-scrollbar{

        display:none;

    }

}



/*======================================
        UNIVERSAL UI SYSTEM
======================================*/

/* Container */

.page-container{
    max-width:1200px;
    margin:30px auto;
    padding:0 20px;
}

/* Banner */

.page-banner{
    margin-bottom:30px;
}

.page-banner img{
    width:100%;
    height:260px;
    object-fit:cover;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/* Section */

.ui-section{

    background:#fff;

    border-radius:20px;

    padding:30px;

    box-shadow:0 10px 30px rgba(15,76,129,.08);

    border:1px solid #edf2f7;

}

/* Section Header */

.ui-section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;

    margin-bottom:30px;

}

.ui-section-title h2{

    margin:0;

    color:#11294C;

    font-size:28px;

    font-weight:700;

}

.ui-section-title p{

    margin:8px 0 0;

    color:#64748b;

    font-size:15px;

}

/* Buttons */

.ui-btn{

    display:inline-flex;

    align-items:center;

    gap:8px;

    text-decoration:none;

    transition:.3s;

}

.ui-btn-primary{

    background:linear-gradient(135deg,#11294C,#448aff);

    color:#fff;

    padding:12px 22px;

    border-radius:12px;

    font-weight:600;

}

.ui-btn-primary:hover{

    color:#fff;

    text-decoration:none;

    transform:translateY(-2px);

    box-shadow:0 10px 25px rgba(15,76,129,.2);

}

/* Grid */


.ui-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
    gap:24px;
    align-items:stretch;
    padding:25px;
}

/* Card */

.ui-card{

    background:#fff;
    border-radius:18px;
    border:1px solid #e8edf4;
    overflow:hidden;
    transition:.35s;
    display:flex;
    flex-direction:column;
    height:100%;
    border-radius:18px;
   

}


.ui-card:hover{

    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(0,0,0,.08);

}

/* Card Header */

.ui-card-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 22px;
    
    border-bottom:1px solid #eef2f7;

}
.ui-card-title{
    min-height:70px;
    font-size:20px;
    font-weight:700;
    line-height:1.6;
    flex:1;
    word-break:break-word;
}

.ui-card-title a{

    color:#11294C;

    text-decoration:none;

    font-size:20px;

    
    font-size:18px;
    font-weight:700;
    line-height:1.7;

}


.ui-card-title a:hover{

    color:#2563eb;

}

.ui-card-title i{

    margin-left:8px;

}

/* Actions */

    .ui-card-actions{
    display:flex;
    gap:10px;
}



.ui-btn-icon{

    width:40px;

    height:40px;

    display:flex;

    justify-content:center;

    align-items:center;

    border:none;

    border-radius:10px;

    cursor:pointer;

    transition:.3s;

}

.ui-edit-btn{

    background:#ECEAE8;

    color:#11294C;

}

.ui-delete-btn{

    background:#fff1f2;

    color:#dc3545;

}

.ui-btn-icon:hover{

    transform:scale(1.08);

}

/* Body */

.ui-card-body{

    display:flex;
    flex-direction:column;
    gap:18px;
    flex:1;
    padding:22px

}

/* Info Box */

.ui-info-box{

    display:flex;
    border:1px solid #edf2f7;
    text-decoration:none;
    transition:.3s;
    gap:15px;
    align-items:flex-start;
    padding:14px;
    border-radius:12px;
    background:#f8fafc;
    

}

.ui-info-box:hover{


    transform:translateY(-3px);

    text-decoration:none;
    
    background:#eef6ff;

}

.ui-info-box i{

    display:flex;
    width:42px;
    height:42px;
    border-radius:10px;
    background:#e8f2ff;
    color:#0b63c9;
    align-items:center;
    justify-content:center;
    font-size:18px;

}

.ui-info-box span{

    display:block;

    color:#64748b;

    font-size:13px;

}

.ui-info-box strong{

    display:block;

    color:#11294C;

    font-size:18px;

    font-weight:700;

}
.social-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    
}

.social-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f7fa;
    color: #b8bec7;
    font-size: 30px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

/* موجود Link */
.social-icon.active {
    background: #ECEAE8;
    color: #007bff;
    cursor: pointer;
}

/* Hover للـ active فقط */
.social-icon.active:hover {
    background: #007bff;
    color: #fff;

    transform: translateY(-3px);

    box-shadow: 0 5px 12px rgba(0, 123, 255, 0.25);
}

/* مفيش Link */
.social-icon.inactive {
    background: #f5f5f5;
    color: #c7c7c7;
    opacity: 0.55;
    cursor: default;
}

/* Responsive */

@media(max-width:768px){

    .ui-grid{

        grid-template-columns:1fr;

    }

    .ui-card-body{

        grid-template-columns:1fr;

    }

    .ui-section{

        padding:20px;

    }

    .ui-section-header{

        flex-direction:column;

        align-items:flex-start;

    }

    .ui-section-title h2{

        font-size:22px;

    }

}

.ui-page{
    position:relative;
}

.ui-page{
    margin-bottom: 25px;
    margin-top:20px;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    /*box-shadow:0 8px 25px rgba(0,0,0,.08);*/
}

/* Header */

.ui-page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
    margin-bottom:35px;
    padding-bottom:20px;
    border-bottom:1px solid #edf2f7;
}


.ui-page-title h2{
    margin:0;
    color:#11294C;
    font-size:32px;
    font-weight:700;
}

.ui-page-title span{
    color:#6b7280;
    margin-top:8px;
    display:block;
}

.ui-page-title h2 i {
    margin-right: 10px;
    color: #448aff;
}
/* Empty */

.ui-empty{

    text-align:center;

    padding:80px 20px;

}

.ui-empty i{

    width:90px;

    height:90px;

    border-radius:50%;

    display:inline-flex;

    justify-content:center;

    align-items:center;

    background:#ECEAE8;

    color:#2f6fe4;

    font-size:38px;

    margin-bottom:20px;

}

.ui-empty h3{

    color:#11294C;

    margin-bottom:10px;

}

.ui-empty p{

    color:#777;

}

.ui-table{

    border-radius:18px;

    overflow:hidden;

    border:1px solid #e5e7eb;

    background:#fff;

}

.ui-table table{

    margin-bottom:0;

}

.ui-table thead th{

    background:#11294C;

    color:#fff;

    text-align:center;

    border:none;

}

.ui-table tbody td{

    text-align:center;

    vertical-align:middle;

}

.ui-table tbody tr:hover{

    background:#f8fbff;

}

#my_buttons_area{

    margin-bottom:20px;

}


    

  


    /* Card */

    .ui-form-card {
        background: #fff;
        border-radius: 12px;
        padding: 10px 25px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }


    /* Setting Item */

    .ui-setting-item {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 25px 5px;
        border-bottom: 1px solid #eee;
    }

    .ui-setting-item:last-child {
        border-bottom: none;
    }


    /* Icon */

    .ui-setting-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
        border-radius: 12px;
        background: #ECEAE8;

        display: flex;
        align-items: center;
        justify-content: center;

        color: #448aff;
        font-size: 23px;
    }


    /* Text */

    .ui-setting-content {
        flex: 1;
    }

    .ui-setting-content h3 {
        margin: 0 0 6px;
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }

    .ui-setting-content p {
        margin: 0;
        color: #888;
        font-size: 14px;
    }


    /* Buttons */

    .ui-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;

        padding: 9px 18px;
        border-radius: 7px;

        text-decoration: none !important;
        font-size: 14px;
        font-weight: 500;

        transition: all .2s ease;
    }


    .ui-btn-primary {
        background: #448aff;
        color: #fff !important;
        border: 1px solid #448aff;
    }

    .ui-btn-primary:hover {
        background: #2979ff;
        border-color: #2979ff;
        color: #fff !important;
    }


    .ui-btn-secondary {
        background: #fff;
        color: #555 !important;
        border: 1px solid #ddd;
    }

    .ui-btn-secondary:hover {
        background: #f5f5f5;
        color: #333 !important;
    }


    /* Mobile */

    @media (max-width: 768px) {

        .page-banner {
            height: 160px;
        }

        .ui-page {
            padding: 0 12px;
        }

        .ui-page-header {
            flex-direction: column;
            align-items: flex-start;
        }

        .ui-page-title h2 {
            font-size: 22px;
        }

        .ui-setting-item {
            flex-wrap: wrap;
            gap: 12px;
        }

        .ui-setting-content {
            width: calc(100% - 70px);
        }

        .ui-setting-item .ui-btn {
            width: 100%;
            margin-top: 5px;
        }

    }

/* ===============================
   Research Fields
==================================*/

.research-tags{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:5px;
}

.research-tag{
    display:inline-flex;
    align-items:center;
    gap:8px;

    padding:10px 16px;

    background:#ECEAE8;
    color:#0b5ed7;

    border:1px solid #d7e6ff;

    border-radius:30px;

    font-size:14px;
    font-weight:600;

    transition:.3s;
}

.research-tag i{
    color:#0d6efd;
    font-size:13px;
}

.research-tag:hover{
    background:#0d6efd;
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(13,110,253,.18);
}

.research-tag:hover i{
    color:#fff;
}
/*=========================================
=            Publication Card             =
=========================================*/

.publication-meta{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:10px;
}

.publication-meta span{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:13px;
    color:#64748b;
}

.publication-year{

    background:#0d6efd;
    color:#fff !important;

    padding:5px 12px;

    border-radius:20px;

    font-size:12px !important;

    font-weight:700;
}

.publication-actions{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

    margin-top:18px;
}

.publication-btn{

    display:flex;

    align-items:center;

    gap:8px;

    padding:10px 18px;

    border-radius:10px;

    text-decoration:none;

    background:#f5f8ff;

    color:#0d6efd;

    font-weight:600;

    transition:.3s;

    border:1px solid #dbe6ff;
}

.publication-btn:hover{

    background:#0d6efd;

    color:#fff;

    transform:translateY(-2px);

    text-decoration:none;

    box-shadow:0 8px 18px rgba(13,110,253,.18);

}

.publication-btn i{

    font-size:15px;
}

.ui-card-title a{

    font-size:18px;

    font-weight:700;

    line-height:1.8;

    color:#1e293b;
}

.ui-card-title a:hover{

    color:#0d6efd;
}

.ui-card{

    transition:.3s;
}

.ui-card:hover{

    transform:translateY(-4px);

    box-shadow:0 12px 30px rgba(0,0,0,.08);
}
/*=============================
    Publication List
=============================*/


.publication-list{
    display:flex;
    flex-direction:column;
}

.publication-item{

    padding:25px;

    border-bottom:1px solid #edf2f7;

    transition:.25s;

    border-radius:12px;

    transition:.25s;
}

.publication-item:hover{

    background:#fafcff;

    padding-left:15px;
     

    box-shadow:0 5px 18px rgba(0,0,0,.05);

}

.publication-title{

    margin:0;
}

.publication-title a{

    color:#243b53;

    text-decoration:none;

    font-size:17px;

    font-weight:600;

    line-height:1.8;
}

.publication-title a:hover{

    color:#0d6efd;
}

.publication-meta{

    display:flex;

    flex-wrap:wrap;

    gap:18px;

    margin-top:8px;

    color:#7b8794;

    font-size:13px;
}

.publication-meta span{

    display:flex;

    align-items:center;

    gap:6px;
}

.publication-tools{

    display:flex;

    align-items:center;

    gap:10px;

    flex-wrap:wrap;

    margin-top:15px;
}

.publication-link{

    display:inline-flex;

    align-items:center;

    gap:6px;

    padding:7px 14px;

    border-radius:20px;

    background:#ECEAE8;

    color:#0d6efd;

    text-decoration:none;

    font-size:13px;

    font-weight:600;

    transition:.3s;
}

.publication-link:hover{

    background:#0d6efd;

    color:#fff;
}

.publication-action{

    width:34px;

    height:34px;

    border:none;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    transition:.3s;

    text-decoration:none;
}

.publication-action.edit{

    background:#eef6ff;

    color:#0d6efd;
}

.publication-action.delete{

    background:#fff2f2;

    color:#dc3545;
}

.publication-action:hover{

    transform:translateY(-2px);
}

.publication-action.edit:hover{

    background:#0d6efd;

    color:#fff;
}

.publication-action.delete:hover{

    background:#dc3545;

    color:#fff;
}

.ui-pagination{

    margin-top:40px;

    display:flex;

    justify-content:center;
}

.ui-pagination .pagination{

    margin:0;

    gap:8px;
}

.ui-pagination .page-item{

    margin:0 3px;
}

.ui-pagination .page-link{

    border-radius:10px;

    border:none;

    color:#0d6efd;

    padding:10px 16px;

    box-shadow:0 2px 8px rgba(0,0,0,.05);

    transition:.3s;
}

.ui-pagination .page-link:hover{

    background:#0d6efd;

    color:#fff;
}

.ui-pagination .active .page-link{

    background:#0d6efd;

    color:#fff;

    border:none;
}

.publication-layout{

    display:grid;

    grid-template-columns:340px 1fr;

    gap:25px;

    margin-top:25px;
}

.publication-info{

    display:flex;

    flex-direction:column;

    gap:15px;
}

.info-item{

    padding-bottom:15px;

    border-bottom:1px solid #edf2f7;
}

.info-item:last-child{

    border-bottom:none;
}

.info-item span{

    display:block;

    font-size:13px;

    color:#64748b;

    margin-bottom:6px;

    font-weight:600;
}

.info-item strong{

    display:block;

    color:#243b53;

    font-size:15px;

    font-weight:500;

    line-height:1.8;

    word-break:break-word;
}

.publication-abstract{

    line-height:2;

    text-align:justify;

    color:#475569;

    font-size:15px;
}

.publication-actions{

    margin-top:25px;

    text-align:center;
}

@media(max-width:992px){

.publication-layout{

    grid-template-columns:1fr;

}

}

.publication-abstract{

    line-height:2;

    color:#475569;

    font-size:15px;

    text-align:justify;
}
.ui-card-body{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.ui-info-box{
    align-items:flex-start;
}

.ui-info-box p{
    margin-top:8px;
    color:#666;
    line-height:1.8;
    text-align:justify;
    display:-webkit-box;
    -webkit-line-clamp:5;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.ui-card-title{
    font-size:20px;
    font-weight:700;
    line-height:1.6;
}

.ui-card{
    height:100%;
}

.ui-grid{
    align-items:stretch;
}

.ui-card-body .ui-info-box:last-child{
    margin-top:inherit;
}

.ui-info-box strong{
    color:#0b63c9;
    
    
}


.ui-card-container{

    background:#fff;

    border-radius:20px;

    padding:30px;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

}

.ui-tabs{

    display:flex;

    gap:15px;

    margin-bottom:35px;

    border-bottom:1px solid #eee;

    padding-bottom:20px;

}

.ui-tab{

    border:none;

    background:#f5f7fb;

    padding:12px 25px;

    border-radius:10px;

    font-weight:600;

    color:#555;

    transition:.3s;

}

.ui-tab.active{

    background:#0b63c9;

    color:#fff;

}

.ui-tab:hover{

    background:#0b63c9;

    color:#fff;

    cursor:pointer;

}

.ui-tab-content{

    display:none;

}

.ui-tab-content.active{

    display:block;

}
.ui-gallery-image{
    width:100%;
    height:260px;
    object-fit:cover;
    border-radius:14px;
    transition:.35s;
}

.ui-card{
    position:relative;
    overflow:hidden;
}

.ui-card:hover .ui-gallery-image{
    transform:scale(1.05);
}

.ui-card-actions{
    position:absolute;
    top:12px;
    right:12px;
    z-index:10;
    display:flex;
    gap:8px;
}

html[dir="rtl"] .ui-card-actions{
    right:auto;
    left:12px;
}

/* =========================
   Files
========================= */

.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    transition: all .3s ease;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    border-color: #d5dfeb;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.file-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ECEAE8;
    font-size: 22px;
}

.file-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.file-name {
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    word-break: break-word;
}

.file-label {
    font-size: 12px;
    margin-top: 3px;
    opacity: .65;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all .3s ease;
    cursor: pointer;
}

.edit-btn {
    background: #ECEAE8;
}

.delete-btn {
    background: #fff0f0;
}

.btn-icon:hover {
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 55px;
    margin-bottom: 15px;
    opacity: .45;
}

.empty-state h4 {
    margin-bottom: 8px;
    font-weight: 700;
}

.empty-state p {
    margin-bottom: 20px;
    opacity: .65;
}

@media (max-width: 768px) {

    .file-item {
        align-items: flex-start;
    }

    .file-info {
        flex: 1;
    }

    .card-actions {
        flex-direction: column;
    }

}

/********************8 صفحات الedit *************************/

    /* =========================================
       PAGE
    ========================================= */


    /* Arabic */
    .ui-page[dir="rtl"] {
        direction: rtl;
        text-align: right;
    }

    /* English */
    .ui-page[dir="ltr"] {
        direction: ltr;
        text-align: left;
    }


    /* =========================================
       PAGE HEADER
    ========================================= */

    .ui-page-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        margin-bottom: 25px;
        flex-wrap: wrap;
        padding:25px;
    }

    .ui-page-title {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .ui-page-title h2 {
        margin: 0;
        font-size: 25px;
        font-weight: 700;
        color: #2c3e50;
    }

    .ui-page-title h2 i {
        color: #4e73df;
    }

    .ui-page-title span {
        background: #ECEAE8;
        color: #4e73df;
        padding: 7px 14px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
    }


    /* =========================================
       MAIN CARD
    ========================================= */

    .ui-card {
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
        border: 1px solid #edf0f5;
        overflow: hidden;
        margin-bottom: 25px;
    }


    /* =========================================
       CARD HEADER
    ========================================= */

   

    .ui-card-title {
        font-size: 19px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .ui-card-title i {
        font-size: 20px;
    }


    /* =========================================
       CARD BODY
    ========================================= */

    .ui-card-body {
        padding: 30px;
    }


    /* =========================================
       FORM
    ========================================= */

    .ui-form-group {
        margin-bottom: 25px;
    }

    .ui-form-label {
        display: block;
        margin-bottom: 9px;
        font-size: 15px;
        font-weight: 700;
        color: #34495e;
    }

    .ui-required {
        color: #e74a3b;
    }


    /* =========================================
       INPUTS
    ========================================= */

    .ui-form-control {
        width: 100%;
        height: 46px;
        padding: 10px 15px;
        border: 1px solid #dfe3e8;
        border-radius: 10px;
        background: #fff;
        color: #333;
        font-size: 14px;
        transition: all .25s ease;
        box-sizing: border-box;
    }

    .ui-form-control:focus {
        outline: none;
        border-color: #4e73df;
        box-shadow: 0 0 0 3px rgba(78, 115, 223, .12);
    }

    select.ui-form-control {
        cursor: pointer;
    }


    /* =========================================
       FILE INPUT
    ========================================= */

    .ui-file-box {
        padding: 10px;
        height: auto;
        min-height: 46px;
        background: #fafbff;
    }


    /* =========================================
       CURRENT FILE
    ========================================= */

    .ui-current-file {
        margin-top: 12px;
        padding: 12px 15px;
        background: #f5f7ff;
        border: 1px solid #e3e8ff;
        border-radius: 10px;

        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .ui-current-file i {
        color: #4e73df;
        font-size: 18px;
    }

    .ui-current-file span {
        color: #555;
        font-size: 14px;
        font-weight: 600;
    }

    .ui-current-file a {
        color: #4e73df;
        font-weight: 600;
        text-decoration: none;
    }

    .ui-current-file a:hover {
        text-decoration: underline;
    }


    /* =========================================
       ERROR
    ========================================= */

    .ui-error {
        margin-top: 8px;
        padding: 10px 14px;
        background: #fff2f2;
        border: 1px solid #f5c6cb;
        border-radius: 8px;
        color: #c0392b;
        font-size: 13px;
    }


    /* =========================================
       FORM ACTIONS
    ========================================= */

    .ui-form-actions {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 30px;
        padding-top: 25px;
        border-top: 1px solid #eee;
    }


    /* =========================================
       BUTTONS
    ========================================= */

    .ui-btn {
        border: none;
        border-radius: 50px;
        padding: 11px 30px;
        font-size: 15px;
        font-weight: 700;

        text-decoration: none;

        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        cursor: pointer;

        transition: all .25s ease;
    }

    .ui-btn-primary {
        background: linear-gradient(135deg, #4e73df, #224abe);
        color: #fff !important;

        box-shadow: 0 5px 15px rgba(78, 115, 223, .20);
    }

    .ui-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(78, 115, 223, .30);
    }


    /* =========================================
       BANNER
    ========================================= */

    .page-banner {
        width: 100%;
        overflow: hidden;
        margin-bottom: 0;
    }

    .page-banner img {
        width: 100%;
        display: block;
        max-height: 230px;
        object-fit: cover;
    }


    /* =========================================
       RESPONSIVE
    ========================================= */

    @media (max-width: 768px) {

        .ui-page {
            padding: 20px 10px;
        }

        .ui-card-body {
            padding: 20px 15px;
        }

        .ui-page-title h2 {
            font-size: 21px;
        }

        .ui-form-label {
            font-size: 14px;
        }

        .ui-form-actions {
            flex-direction: column;
        }

        .ui-btn {
            width: 100%;
        }

        .page-banner img {
            max-height: 160px;
        }
    }



    html[dir="rtl"] .statement-page {
        direction: rtl;
        text-align:right;
    }
    
    .statement-page {
        direction: ltr;
    }
    

    /* =========================
       Page Header
    ========================= */

    .ui-page-header {
        margin-bottom: 25px;
    }

    .ui-page-title h2 {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .ui-page-title h2 i {
        color: #4e73df;
    }

    /* =========================
       Filter Card
    ========================= */

    .statement-filters {
        background: #f8f9fc;
        border: 1px solid #e8eaf0;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 25px;
    }

    .statement-filter-title {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #4e73df;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 18px;
    }

    .statement-filter-group label {
        display: block;
        color: #4e73df;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .statement-filter-group label i {
        margin-left: 5px;
    }

    .statement-filter-group .form-control {
        height: 45px;
        border-radius: 8px;
        border: 1px solid #dfe2e8;
        box-shadow: none;
        transition: all .2s ease;
    }

    .statement-filter-group .form-control:focus {
        border-color: #4e73df;
        box-shadow: 0 0 0 3px rgba(78, 115, 223, .10);
    }

    /* =========================
       Table
    ========================= */

    .statement-table-wrapper {
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #e8eaf0;
        box-shadow: 0 5px 20px rgba(58, 59, 69, .05);
    }

    #statementTable {
        margin-bottom: 0 !important;
    }

    #statementTable thead th {
        background: #4e73df !important;
        color: #fff !important;
        text-align: center !important;
        vertical-align: middle !important;
        border-color: rgba(255, 255, 255, .15) !important;
        padding: 14px 10px !important;
        font-weight: 600;
        white-space: nowrap;
    }

    #statementTable thead th i {
        margin-left: 5px;
    }

    #statementTable tbody td {
        text-align: center !important;
        vertical-align: middle !important;
        padding: 13px 10px !important;
        color: #555;
    }

    #statementTable tbody tr {
        transition: all .2s ease;
    }

    #statementTable tbody tr:hover {
        background-color: #f8f9ff !important;
    }

    /* =========================
       Staff Name
    ========================= */

    .staff-name {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #4e73df;
        font-weight: 700;
        text-decoration: none;
    }

    .staff-name:hover {
        color: #224abe;
        text-decoration: none;
    }

    /* =========================
       Status
    ========================= */

    .statement-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 20px;
        background: #eef2ff;
        color: #4e73df;
        font-size: 13px;
        font-weight: 600;
    }

    /* =========================
       Purpose
    ========================= */

    .statement-purpose {
        display: inline-block;
        background: #f1f3f9;
        color: #495057;
        padding: 5px 12px;
        border-radius: 15px;
        font-size: 13px;
        font-weight: 600;
    }

    /* =========================
       Mobile
    ========================= */

    @media (max-width: 768px) {

        .statement-filters {
            padding: 15px;
        }

        #statementTable thead th,
        #statementTable tbody td {
            font-size: 13px;
        }

        .ui-page-title h2 {
            font-size: 21px;
        }
    }

    /* =========================
       DataTables
    ========================= */

    .dataTables_wrapper {
        padding: 15px;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_info {
        color: #777;
    }

    .dataTables_wrapper .dataTables_paginate {
        margin-top: 10px;
    }

    .dataTables_wrapper .page-item.active .page-link {
        background-color: #4e73df;
        border-color: #4e73df;
    }

    .dataTables_wrapper .page-link {
        color: #4e73df;
    }
    
    

    /* Buttons Area */

    #my_buttons_area {
        margin-bottom: 15px;
    }

    #my_buttons_area .dt-button {
        border-radius: 7px !important;
        margin-left: 5px !important;
    }