

@font-face {
    font-family: 'AmiriQuran';
    src: url('../fonts/AmiriQuran-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ArefRuqaa';
    src: url('../fonts/ArefRuqaa-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'ArefRuqaa';
    src: url('../fonts/ArefRuqaa-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Rakkas';
    src: url('../fonts/Rakkas-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}



@media (min-width: 768px) { /* Adjust for non-mobile devices */
    .modal-dialog {
        max-width: calc(60%); /* Adjust width of modal dialog */
        width: auto; /* Allow width to adjust automatically */
    }
    .document-preview-container {
        height: 60vh;
    }  
}
html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

    canvas {
        border: 1px solid #ccc;
    }

    @media (min-width: 768px) {


        .idOnMotmn {
            width: 200px;
            vertical-align: middle;
            text-align: center;
        }

        html {
            font-size: 16px;
        }


        .signature-pad {
            width: 300px;
            height: 200px;
        }
    }

    @media (max-width: 576px) {
        .attachment-list-container
        {
            max-width:100px;
        }
        .idOnMotmn {
            width: 100%
        }

        .navbar-nav .nav-item .nav-link {
            background-color: papayawhip;
            color: green !important;
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        }


        .signature-pad {
            width: 500px;
            height: 200px;
        }
    }

.btn-secondary {
    background-color: #6c757d; /* Replace with your desired color */
    border-color: #6c757d; /* Match the border color */
}

    /* Hover state */
    .btn-secondary:hover {
        background-color: #5a6268; /* Slightly darker shade for hover */
        border-color: #545b62;
    }

    /* Active/Pressed state */
    .btn-secondary:active {
        background-color: #545b62;
        border-color: #4e555b;
    } 
.custom-alert {
    position: relative;
    padding: 0.75rem 0.25rem; /* Vertical and horizontal padding */
    margin: 0.25rem; /* Equivalent to 'm-1' for a small margin */
    border: 1px solid transparent;
    border-radius: 0.25rem; /* Rounded corners */
    background-color: #cce5ff; /* Bootstrap primary alert background color */
    color: #004085; /* Bootstrap primary text color */
    font-size: 12pt;
    font-weight: bold;
}

    .idOnMotmn {
        display: flex; /* Make the container a flex container */
        justify-content: center; /* Center content horizontally */
        align-items: center; /* Center content vertically */
        text-align: center; /* Center text for multiline elements as a fallback */
        background-color: #ffffff; /* White background */
        border: 1px solid #dddddd; /* Light gray border */
        border-radius: 8px; /* Rounded corners */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        padding: 16px; /* Space inside the card */
        margin-bottom: 20px; /* Space between cards */
        transition: transform 0.2s; /* For smooth hover effect */
        color: green; /* Text color */
        font-size: 16pt; /* Text size */
        height: 100px; /* Define height to assist vertical centering */
        /* Optional: adjust width as needed */
    }

    .navbar-nav .nav-link {
        background-color: transparent; /* Initial background */
        color: green; /* Initial color */
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        transition: color 0.3s;
        margin-inline: 10px /* Smooth transition for color change */
    }

        .navbar-nav .nav-link:hover {
            color: white !important;
            background-color: darkgreen;
        }

    .navbar-nav .nav-link {
        transition: color 0.3s, background-color 0.3s; /* Smooth transition */
    }

    .btn:focus, .btn:active:focus, .btn-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

    .nav-item-spacing {
        margin-right: 20px;
        font-size: 14pt; /* Adjust the value as needed */
    }

    .card-container:nth-child(odd) .card {
        background-color: #f8f9fa; /* A light gray background */
    }

    .card-container:nth-child(even) .card {
        background-color: #ffffff; /* Default white or another color */
    }

body {
    font-family: 'Noto Sans Arabic', sans-serif; /* Apply font to body text */
    font-size: 16px; /* Set body text size */
    line-height: 1.5;
    font-weight:400;
    /* Adjust line height for better readability */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans Arabic', sans-serif; /* Apply font to headings */
    font-weight: bold; /* Use bold weight for headings */
}

.select2-container--open {
    z-index: 10000; /* Set a high value to ensure it appears on top */
}  
input,select {
    color: #0000ff !important;
    background-color: #f0f0f0 !important;
    text-align:center;
}

/* Alternatively, use a more specific selector */
form input {
    color: #0000ff;
    background-color: #f0f0f0;
}  

@media (max-width: 600px) {
    .button-container {
        padding: 15px; /* Adjust padding for smaller screens */
    }

    th, td {
        padding: 8px;
        font-size: 14px;
    }
}  
    .modern-table {
        width: 100%;
        border-collapse: collapse;
        font-family: Arial, sans-serif;
        overflow: hidden;
    }
    .modern-table .separator-row {
            font-size: 1rem;
            background-color: #353A44;
            color: white;
            border-collapse: separate;
            border-spacing: 0 10px;
            padding:30px;
        } 
            /* Header styling */
    .modern-table thead tr {
            background-color: #35495e;
            color: #ffffff;
            text-align: left;
        }
    .modern-table th, .modern-table td {
            padding: 12px 15px;
            font-size: 14pt;
        }
        /* Alternating row colors */
    .modern-table tbody tr:nth-child(odd) {
            background-color: #f9f9f9; /* Light grey for alternate rows */
        }

        .modern-table tbody tr:nth-child(even) {
            background-color: #ffffff;
        }

        /* Hover effects for rows */
        .modern-table tbody tr:hover {
            background-color: #f1f1f1; /* Highlight on hover */
            transition: background-color 0.3s ease; /* Smooth transition */
        }

    /* Responsive table styling */
    .table-responsive {
        overflow-x: auto;
        display: block;
    }

    /* Styling the list of attachments */
    .list-unstyled {
        padding-left: 0;
        list-style-type: none;
    }

.modal-xl {
    min-width: 1200px; /* or whatever specific width you want */
    max-width: 90%; /* prevents it from being too wide on large screens */
    margin: 1.75rem auto;
}

    .modal-xl .modal-content {
        width: 100%;
    }

    #fileModal .modal-dialog {
        width: 60%;
        height: 90vh; /* 80% of viewport height */
        max-width: 80%;
        margin: auto; /* Center horizontally */
        display: flex;
        align-items: center; /* Center vertically */
        justify-content: center; /* Center the content */
    }

    #signingsStatusModal .modal-dialog .modal-content {
        height: 90vh;
        width: 90vw;
        max-height: 1000px;
        max-width: 2000px;
        display: flex;
        flex-direction: column; /* Ensure header, content, and footer are arranged vertically */
       
    }

    #fileModal .modal-content {
        height: 90vh;
        width: 90vw;
        max-height: 1000px;
        max-width: 2000px;
        display: flex;
        flex-direction: column; /* Ensure header, content, and footer are arranged vertically */
    }

    #fileModal .modal-body {
        flex-grow: 1; /* Allows the iframe to take the remaining space */
        display: flex;
        align-items: center;
        justify-content: center;
        /* Centers the iframe inside the modal body */
    }

    #fileContent {
        width: 100%;
        height: 100%; /* Makes the iframe fill the modal body */
    }

    .signature-container {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }

    .signature-pad {
        border: 1px solid #ccc;
        width: 100%;
        height: 200px;
    }

    button {
        padding: 10px 20px;
        margin: 0 10px;
        font-size: 16px;
        cursor: pointer;
    }

    .btn-modern {
        background-color: #004085; /* Bootstrap Primary Color or any color you prefer */
        color: white;
        border: none;
        border-radius: 5px;
        padding: 10px 20px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        height: 40px
    }



.btn-modern-regular {
    background-color: #004085;
    color: white;
    border: 1px solid white;
    height: 40px;
    padding: 0 20px; /* Add padding for a better look */
    border-radius: 8px;
    transition: background-color .3s ease, border .3s ease, border-radius .3s ease, transform 0.3s ease; /* No need for width transition */
    display: inline-block; /* Needed for scaling to work properly */
}

    .btn-modern-regular:hover {
        background-color: #007BFF;
        color: white;
        border: 2px solid white;
        border-radius: 18px;
        transform: scale(1.1);
    }
.btn-modern-danger {
    background-color: #cc0000;
    color: white;
    border: 1px solid white;
    height: 40px;
    padding: 0 20px; /* Add padding for a better look */
    border-radius: 8px;
    transition: background-color .3s ease, border .3s ease, border-radius .3s ease, transform 0.3s ease; /* No need for width transition */
    display: inline-block; /* Needed for scaling to work properly */
}

.btn-modern-danger:hover {
        background-color: #df1111;
        color: white;
        border: 2px solid white;
        border-radius: 18px;
        transform: scale(1.1);
    }

td .btn-modern-regular {
    background-color: orangered;
    height: 30px;
   
    font-size: 0.85em;
    width: 100%;
}  

    .btn-modern-ok {
        background-color: darkgreen;
        color: white;
    }

    .btn-modern:hover {
        background-color: green; /* Darker shade for hover effect */
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    }

    .btn-modern:active {
        background-color: #004494; /* Even darker for active click */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transform: translateY(1px);
    }


    .btn-modern-ok:hover {
        background-color: lawngreen;
        color: black;
    }

    .btn-modern-danger:hover {
        background-color: red;
    }

    .alert.alert-danger {
        height: 20px; /* Set your desired height */
    }
    .alert-danger{
        color:red;
    }
.alert-success {
    color: green;
}
    #viewListDropdown {
        border-radius: 8px;
        border: 1px solid #ced4da;
        padding: 10px;
        font-size: 18px;
        color: #495057;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        background: #f8f9fa;
        transition: all 0.3s;
        font-weight: bold;
        cursor: pointer;
    }

        /* Hover effects */
        #viewListDropdown:hover {
            background: #e9ecef;
            border-color: darkgreen;
        }

    .badge {
        position: absolute;
        top: -25px; /* Adjust this value to position vertically relative to the icon */
        left: 0px; /* Start at the left of the icon */
        display: inline-block;
        padding: 2px 6px;
        font-size: 12px;
        color: #fff;
        background-color: #ff0000; /* Red background for the badge */
        border-radius: 10px; /* Adjust if you want a more pill-shaped badge */
        line-height: 1;
        text-align: center;
        min-width: 20px; /* Ensure a consistent size */
        height: 20px; /* Ensure a consistent size */
    }

    /* Ensure the parent element is positioned */
    .position-relative {
        position: relative;
    }

    .spinner-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.8); /* Semi-transparent to cover page */
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999; /* Show above everything else */
        visibility: hidden; /* Hidden by default */
    }

    .spinner {
        border: 8px solid #f3f3f3;
        border-top: 8px solid #3498db;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

.list-group-item {
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Space between title and any additional elements */
    align-items: center; /* Vertically center the content */
    padding: 15px 20px; /* Comfortable padding */
    border: 1px solid #e0e0e0; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    background-color: #ffffff; /* White background */
    color: #333333; /* Darker text color for better readability */
    margin-bottom: 10px; /* Space between list items */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transition for hover effects */
    cursor: pointer; /* Pointer cursor on hover */
}

.attachment-list-container {
    position: fixed; /* Fixes the position */
    top: 100px; /* Adjust based on your layout */
    right: 20px; /* Set based on your layout; distance from the left */
    width: 100%; /* Fixed width for the list */
    max-width:450px;
    max-height: calc(100vh - 120px); /* Full height minus margins */
    overflow-y: auto; /* Enable scrolling if content is too long */
    background-color: #ffffff; /* Background color */
    border: 1px solid #e0e0e0; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    z-index: 100; /* Ensure it stays on top */
    padding: 10px; /* Inner padding */
}

    .list-group-item:hover {
        background-color: #f0f0f0; /* Light grey background on hover */
        transform: translateY(-2px); /* Slight lift on hover */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    }

    .list-group-item .attachment-title {
        font-weight: bold; /* Bold title text */
        font-size: 1.1rem; /* Slightly larger font size for readability */
    }

    .list-group-item .attachment-icon {
        margin-left: 10px; /* Space between title and icon */
        color: #007BFF; /* Color for icons, can be adjusted */
    }  
.attachment-page {
    display: flex;
    flex-direction: column; /* Stack pages vertically */
    align-items: center; /* Center align each image */
    margin: 0; /* Remove default margins */
    padding: 10px; /* Add some padding around each image */
    transition: transform 0.2s; /* Smooth scaling effect on hover */
}

    .attachment-page img {
        max-width: 100%; /* Ensure image fits within container */
        height: auto; /* Maintain aspect ratio */
        border: 2px solid #ccc; /* Optional: Add a subtle border around images */
        border-radius: 5px; /* Optional: Rounded corners */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional: Subtle shadow for depth */
        margin-top: 10px; /* Space between images */
    }

    .attachment-page:hover {
        transform: scale(1.02); /* Scale up slightly on hover */
    }
.floating-button {
    position: fixed; /* Stay fixed in position */
    bottom: 100px; /* Distance from the bottom */
    right: 50px; /* Distance from the right */
    background-color: #007BFF; /* Primary color */
    color: white; /* Text color */
    border: none; /* Remove border */
    border-radius: 50%; /* Circular shape */
    width: 50px; /* Button width */
    height: 50px; /* Button height */
    font-size: 24px; /* Text size */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    cursor: pointer; /* Pointer cursor on hover */
    display: block; /* Initially hidden */
    transition: opacity 0.3s; /* Smooth appearance */
}

    .floating-button:hover {
        background-color: #0056b3; /* Darker shade on hover */
    }

.attachment-pages-container {
    text-align: center;
    justify-content: center;
}

.button-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Adjust space between rows */
    align-items: center; /* Centers buttons horizontally */
    padding: 20px; /* Increase padding for more space */
    background-color: #ccc;
    border-radius: 12px; /* Slightly increase border radius for softer edges */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth transitions */
}

/* Add hover effect */
.button-container:hover {
    transform: translateY(-2px); /* Lift the container on hover */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* Increase shadow on hover */
}

/* Style for buttons within the container */
.button-container button {
    background-color: #007BFF; /* Primary button color */
    color: white; /* Button text color */
    padding: 10px 20px; /* Padding for buttons */
    margin: 5px 0; /* Space between buttons */
    border: none; /* Remove default border */
    border-radius: 5px; /* Rounded corners for buttons */
    font-size: 16px; /* Font size for text */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.2s ease; /* Smooth background color transition */
}

    /* Hover effect for buttons */
    .button-container button:hover {
        background-color: #0056b3; /* Darken button color on hover */
    }

/* Media query for responsiveness */


.image-button {
    width: 35px; 
    height: 35px; 
    cursor: pointer;
    transition: transform 0.2s; 
    margin :0 5px;
}

    .image-button:hover {
        transform: scale(1.1);
    }


.disabled {
    opacity: 0.3; /* Makes it look faded */
    pointer-events: none; /* Prevents any interaction */
}

.form-check-input {
    appearance: none; /* Remove default checkbox styles */
    width: 20px; /* Custom checkbox width */
    height: 20px; /* Custom checkbox height */
    border: 1px solid #ccc; /* Border style */
    border-radius: 3px; /* Rounded corners */
    outline: none; /* Remove outline */
    cursor: pointer; /* Pointer cursor on hover */
}

    .form-check-input:checked {
        background-color: #007bff; /* Background color when checked */
        border-color: #007bff; /* Border color when checked */
    }

        .form-check-input:checked::after {
            content: '';
            display: block;
            width: 10px; /* Adjust to center */
            height: 10px; /* Adjust to center */
            margin: auto; /* Center the checkmark */
            border: solid white; /* Checkmark color */
            border-width: 0 2px 2px 0; /* Checkmark shape */
            transform: rotate(45deg); /* Rotate to make a check mark */
        }
.highlighted-row {
    background-color: #d9ead3;
    box-shadow: 2px 5px 4px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: black;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes progress {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}


/* Loading Indicator Styles */
.download-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 600px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    border-left: 4px solid #28a745;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

.success-content {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-icon {
    color: #28a745;
    font-size: 20px;
    background: #e8f5e9;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-text {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
}

.success-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

    .success-close:hover {
        color: #333;
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Error notification styles (to match) */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 600px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    border-left: 4px solid #dc3545;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

.error-content {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-icon {
    color: #dc3545;
    font-size: 20px;
    background: #fef0f0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-text {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
}

.error-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0 5px;
}

    .error-close:hover {
        color: #333;
    }

.btn-delete-specialization {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    margin-right: 4px;
}

    .btn-delete-specialization i {
        font-size: 14px;
        transition: all 0.2s ease;
    }

    .btn-delete-specialization:hover {
        background-color: #fecaca;
        color: #dc2626;
    }

    .btn-delete-specialization:active {
        transform: scale(0.95);
        background-color: #fee2e2;
    }

    /* Optional: Add a subtle animation on hover */
    .btn-delete-specialization:hover i {
        transform: rotate(90deg);
    }