﻿@font-face {
    font-family: "Tajawal-Medium";
    src: url("../fonts/Tajawal/Tajawal-Medium.ttf");
}

@font-face {
    font-family: "Tajawal-Bold";
    src: url("../fonts/Tajawal/alfont_com_Tajawal-Bold.ttf");
}

@font-face {
    font-family: "Tajawal-ExtraBold";
    src: url("../fonts/Tajawal/alfont_com_Tajawal-ExtraBold.ttf");
}

body {
    font-family: "Tajawal-Medium", sans-serif !important;
}


/* General */
.font-family-medium {
    font-family: "Tajawal-Medium", sans-serif !important;
}

.font-family-bold {
    font-weight: 900 !important;
    font-family: "Tajawal-Bold", sans-serif !important;
}

.font-family-ExtraBold {
    font-weight: 900 !important;
    font-family: "Tajawal-ExtraBold", sans-serif !important;
}

.form-select {
    background-image: url('../images/site/arrow-down.svg') !important;
}

.form-check-input:checked[type=checkbox] {
    background-image: url('../images/site/check.svg') !important;
}

.form-group {
    margin-bottom: 1rem;
}

.h-700 {
    height: 700px !important;
}

@media (max-width: 499px) {
    .h-700 {
        height: 500px !important;
    }
}

.border-solid {
    border-style: solid !important;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.out-line-0 {
    outline: none !important;
}

.dir-rtl {
    direction: rtl !important;
}

.bg-none {
    background: none !important;
}

.btn-delete-site {
    padding: 1px 6px !important;
    margin-right: 10px;
}

.circle-image-menu {
    border-radius: 50%;
    overflow: hidden;
    width: 50px;
    height: 50px;
    border: 3px solid #9870b6;
}

.circle-image-menu-white {
    border-radius: 50%;
    overflow: hidden;
    width: 50px;
    height: 50px;
    border: 3px solid #ffffff;
}

.group-name {
    position: absolute;
    right: 91px;
    top: 60px;
    font-size: 13px;
    font-weight: 600;
    color: gray;
    opacity: 0.7;
}

table thead th {
    text-align: right !important;
}

#example_filter {
    text-align: left;
}

@media (max-width: 768px) {
    #example_filter {
        text-align: center;
    }
}

#example_filter .form-control-sm {
    padding: 0.5rem 2.5rem !important;
    font-size: 1rem !important;
    border-radius: .4rem !important;
}


.w-fit-content {
    width: fit-content !important;
}

.select2-dropdown {
    z-index: 1071 !important;
    direction: rtl;
}


@media (min-width: 1200px) {
    .font-size-lg-16-site {
        font-size: 16px !important;
    }
}

@media (max-width: 500px) {
    .font-size-sm-14 {
        font-size: 14px !important;
    }
}

@media (max-width: 500px) {
    .font-size-sm-16 {
        font-size: 16px !important;
    }
}

@media (max-width: 500px) {
    .font-size-sm-10 {
        font-size: 10px !important;
    }
}

@media (max-width: 500px) {
    .font-size-sm-11 {
        font-size: 11px !important;
    }
}

.font-size-site-22 {
    font-size: 22px;
}

.font-size-site-20 {
    font-size: 20px;
}

.font-size-site-17 {
    font-size: 17px;
}

.font-size-site-13 {
    font-size: 13px;
}

.certificate {
    position: absolute;
    left: 2%;
    bottom: 27%;
}

.certificate img {
    width: 85px;
}

.footer {
    height: auto !important;
}

@media (max-width: 675px) {
    .certificate {
        position: relative;
        text-align: center
    }
}


@media (min-width: 991px) {
    .username {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .username {
        display: flex !important;
    }
}

.left-15 {
    left: 15px;
}

.left-40 {
    left: 40px;
}

.top-4 {
    top: 4px;
}

.right-15 {
    right: 15px;
}

.left-0 {
    left: 0 !important;
}

.top-auto {
    top: auto !important;
}

.sub-menu {
    background: #f9f7ff;
    border-radius: 15px;
}

#sidebar-menu ul li ul.sub-menu li a {
    padding: .5rem 1.5rem .5rem 1.5rem !important;
}


/*Select 2*/
.select2-dropdown {
    z-index: 1071 !important;
}

.select2-selection__arrow {
    top: 6px !important;
    left: 1px;
    right: 0 !important;
}

.select2-selection__rendered {
    direction: rtl;
    margin-top: 4px;
}

.select2-selection--single {
    height: 40px !important;
}

.select2-selection__clear {
    margin-left: 5px;
}


.td-accepted {
    box-shadow: inset 15px 0 0 #00bf4f !important;
}

/* Dashboard Cards */
.dashboard-card {
    border-radius: 16px;
    padding: 1.4rem 1.2rem 1rem;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.dashboard-card-count {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
    font-family: "Tajawal-ExtraBold", sans-serif;
}

.dashboard-card-title {
    font-size: 1rem;
    font-family: "Tajawal-Medium", sans-serif;
    opacity: 0.92;
}

.dashboard-card-icon-wrap {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-card-icon {
    font-size: 1.6rem;
    color: #fff;
}

.dashboard-card-footer {
    margin-top: 1rem;
    font-size: 0.82rem;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 0.5rem;
    font-family: "Tajawal-Medium", sans-serif;
}

/* ═══════════════════════════════════════════
   Build System Requests Page  (bsr-*)
   ═══════════════════════════════════════════ */

/* ── Stat Cards ── */
.bsr-stat-card {
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    transition: transform 0.2s ease;
}
.bsr-stat-card:hover { transform: translateY(-3px); }

.bsr-stat-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bsr-stat-num {
    font-family: "Tajawal-ExtraBold", sans-serif;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 2px;
}

.bsr-stat-lbl {
    font-family: "Tajawal-Medium", sans-serif;
    font-size: 0.88rem;
    opacity: 0.88;
}

/* ── Table row highlight for new requests ── */
.bsr-row-new {
    background: #fffbeb !important;
    border-right: 3px solid #f59e0b;
}

/* ── Badges ── */
.bsr-badge-reviewed {
    background: #d1fae5 !important;
    color: #065f46 !important;
    font-family: "Tajawal-Medium", sans-serif;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.bsr-badge-new {
    background: #fef3c7 !important;
    color: #92400e !important;
    font-family: "Tajawal-Medium", sans-serif;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ── Action Buttons ── */
.bsr-btn-view {
    background: #eef3ff;
    color: #1E3796;
    border: 1px solid #c7d7fc;
    font-family: "Tajawal-Medium", sans-serif;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}
.bsr-btn-view:hover { background: #dbeafe; color: #1E3796; }

.bsr-btn-review {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 4px 9px;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.bsr-btn-review:hover { background: #d1fae5; color: #059669; }

/* ── Questions Panel ── */
.bsr-questions-body {
    max-height: 560px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.bsr-q-group-title {
    font-family: "Tajawal-Bold", sans-serif;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bsr-q-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
    background: #f8faff;
    transition: background 0.15s;
}

.bsr-q-item:hover { background: #eef3ff; }

.bsr-q-disabled {
    opacity: 0.45;
    background: #f9fafb !important;
}

.bsr-q-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E3796;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.bsr-q-info { flex: 1; }

.bsr-q-name {
    font-family: "Tajawal-Bold", sans-serif;
    font-size: 0.88rem;
    color: #1e293b;
}

.bsr-required-star { color: #ef4444; margin-right: 2px; }

.bsr-q-type-tag {
    font-family: "Tajawal-Medium", sans-serif;
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

.bsr-q-badge {
    font-family: "Tajawal-Medium", sans-serif;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}
.bsr-q-badge.on  { background: #d1fae5; color: #059669; }
.bsr-q-badge.off { background: #f3f4f6; color: #9ca3af; }

/* ── Detail Overlay ── */
.bsr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: bsr-fade-in 0.2s ease;
}

@keyframes bsr-fade-in { from { opacity: 0; } to { opacity: 1; } }

.bsr-detail-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    animation: bsr-modal-in 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bsr-modal-in {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1)   translateY(0);     }
}

.bsr-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1E3796, #2563eb);
    color: #fff;
    flex-shrink: 0;
}

.bsr-detail-title {
    font-family: "Tajawal-ExtraBold", sans-serif;
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
}

.bsr-detail-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.35);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-size: 1.1rem;
}
.bsr-detail-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.bsr-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    scrollbar-width: thin;
}

.bsr-detail-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.bsr-meta-item {
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
}

.bsr-meta-lbl {
    font-family: "Tajawal-Medium", sans-serif;
    font-size: 0.75rem;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
}

.bsr-meta-val {
    font-family: "Tajawal-Bold", sans-serif;
    font-size: 0.9rem;
    color: #1e293b;
}

.bsr-detail-msg-label {
    font-family: "Tajawal-Bold", sans-serif;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 8px;
}

.bsr-msg-pre {
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    font-family: "Tajawal-Medium", sans-serif;
    font-size: 0.88rem;
    color: #1e293b;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.7;
    margin: 0;
}

.bsr-detail-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    background: #fff;
}

@media (max-width: 576px) {
    .bsr-detail-meta-grid { grid-template-columns: 1fr; }
    .bsr-stat-num { font-size: 1.6rem; }
}

/* ═══════════════════════════════════════════
   END Build System Requests Page
   ═══════════════════════════════════════════ */