/* General Styles */
body {
    background-color: #fff;
    height: 100vh;
    margin: 0;
    font-family: 'Cairo', 'Arial', sans-serif; /* Cairo for Arabic, Arial for Latin */
}


.container {
    padding-top: 15px; /* Ensures consistent spacing from the top across pages */
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Stacks items vertically on small devices */
    text-align: center;
}

@media (min-width: 768px) { /* Adjusts layout for medium devices and up */
    .header-logo {
        flex-direction: row; /* Aligns items horizontally on larger screens */
    }

    .header-logo h4, .header-logo img {
        margin: 0 10px; /* Adds horizontal margin for spacing */
    }

    .logo {
        max-width: 100px; /* Adjust the logo size appropriately */
        height: auto;
    }

    .header-logo .col {
        display: flex;
        align-items: center;  /* Ensures vertical centering*/
    }
    
    .header-logo .col:first-child {
        justify-content: flex-start;  /* Forces right alignment in RTL*/
    }
    
    .header-logo .col:last-child {
         justify-content: flex-end;  /* Forces left alignment in RTL*/
    }    
}


/* Card Styles */
.card {
    border: none;
    padding-top: 15%;
}

.card-header {
    text-align: center;
    padding: 20px;
}

.card-header h1 {
    font-size: 1.5rem;
    color: #333; /* Brand-specific color settings */
}

.card-body input{
    align-items: center;
    text-align: center;
}

/* Logo Styles */
.logo {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    border: none; /* Remove border */
    box-shadow: none; /* Remove shadow */
    padding-top:10px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

/* Form Styles */
.form-group label {
    text-align: right; /* Adjust text alignment for labels */
}

.bilingual-label {
    display: flex;
    justify-content: space-between; /* Aligns labels with language-specific positioning */
}

.bilingual-label > span:first-child {
    order: 2; /* English text on the right side */
}

.bilingual-label > span:last-child {
    order: 1; /* Arabic text on the left side */
}

.bilingual-label span {
    display: block; /* Ensures English and Arabic are on separate lines if needed */
}

/* Button Styles */
.btn, .btn-link {
    width: 100%;
    text-align: center; /* Center-aligns button text */
}
/* Add to existing styles.css */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px; /* Add space below the image if necessary */
  }
  
  .d-none.d-md-block {
    display: none;
  }
  
  @media (min-width: 768px) {
    .d-none.d-md-block {
      display: block;
    }
  }

  @media (max-width: 768px) {
  .align-items-center{
    max-inline-size: fit-content;
    max-inline-size: fit-content;
}
.align-items-center h4{
    font-size: 1.15rem;
}
}



/* Registration Card Styles */
.btn-login {
    display: inline-block;
    padding: 8px 12px; /* Adjust padding to suit your design */
    background-color: #007bff; /* Primary blue */
    color: #ffffff; /* White text */
    text-align: center;
    border-radius: 1.5rem;
    text-decoration: none; /* Removes underline from the link */
    font-weight: bold; /* Bold text */
    cursor: pointer; /* Cursor appears as a pointer on hover */
    border: none; /* No border */
}

.btn-login:hover, .btn-login:focus {
    background-color: #0056b3; /* Darker blue on hover/focus */
    color: #ffffff; /* Ensures text color remains white on hover/focus */
    outline: none; /* Removes the outline on focus */
}
.maxl{
    align-self: center;
    text-align: center;
}

/* General styles */
.register{
    background: -webkit-linear-gradient(left, #3931af, #00c6ff);
    margin-top: 0%;
    padding: 3%;
}
.register-left{
    text-align: center;
    color: #fff;
    margin-top: 4%;
}
.register-left input{
    border: none;
    border-radius: 1.5rem;
    padding: 2%;
    width: 60%;
    background: #f8f9fa;
    font-weight: bold;
    color: #383d41;
    margin-top: 30%;
    margin-bottom: 3%;
    cursor: pointer;
}
.register-right{
    background: #f8f9fa;
    border-top-left-radius: 10% 50%;
    border-bottom-left-radius: 10% 50%;
}
.register-left img{
    margin-top: 15%;
    margin-bottom: 5%;
    width: 25%;
 
}
.register-left p{
    font-weight: lighter;
    padding: 12%;
    margin-top: -9%;
}
.register .register-form{
    padding: 10%;
    margin-top: 10%;
}
.btnRegister{
    float: right;
    margin-top: 10%;
    border: none;
    border-radius: 1.5rem;
    padding: 2%;
    background: #0062cc;
    color: #fff;
    font-weight: 600;
    width: 50%;
    cursor: pointer;
}
.register .nav-tabs{
    margin-top: 3%;
    border: none;
    background: #0062cc;
    border-radius: 1.5rem;
    width: 28%;
    float: right;
}
.register .nav-tabs .nav-link{
    padding: 2%;
    height: 34px;
    font-weight: 600;
    color: #fff;
    border-top-right-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}
.register .nav-tabs .nav-link:hover{
    border: none;
}
.register .nav-tabs .nav-link.active{
    width: 100px;
    color: #0062cc;
    border: 2px solid #0062cc;
    border-top-left-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
}
.register-heading{
    text-align: center;
    margin-top: 8%;
    margin-bottom: -15%;
    color: #495057;
}


/*Index page*/

/* Sidebar styling */
#wrapper {
    display: flex;
    width: 100%;
}

#sidebar-wrapper {
    width: 250px;
    height: 100vh;
}

#page-content-wrapper {
    flex:1;
    margin-left: 5%;
    margin-right: 5%;
}

#page-content-wrapper h1{
padding: 3%;
}


.sidebar-heading {
    font-size: 1.25rem;
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
}

.sidebar-section {
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.sidebar-subheading {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
    padding-left: 1rem;
}

.list-group-item-action {
    padding: 0.75rem 1rem;
}

/* Align sidebar text to the right */
.list-group-item {
    padding-right: 10%;
    text-align: right;
}


.bg-light {
    background-color: #f8f9fa !important;
}

.border-right {
    border-right: 1px solid #dee2e6;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

#page-content-wrapper .form-group{
    font-size: 14px;
}

#page-content-wrapper .form-control{
    font-size: 14px;
}

/* Adjust the file info section alignment */
.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}
.file-info a {
    flex: -1 0 50%;
    text-decoration: none;
    color: #007bff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-info button {
    flex: 0 0 25%;
    margin-left: 5px;
}


/*Steps page format*/
.instruction-card {
    margin-bottom: 20px;
    border-radius: 5px;
    padding: 20px;
}
.arabic {
    text-align: right;
    direction: rtl;
}

.english {
    text-align: left;
    direction: ltr;
    
}

.french {
    text-align: left;
    direction: ltr;
}

.instruction-header { 
    color: black;
    padding: 10px 0px;
    border-radius: 5px 5px 0 0;
    font-size: 15px;
    font-weight: bolder;
}


.instruction-list {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
    font-size: 13px;
}
.instruction-list li {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 13px;
}
.step-number {
    font-weight: bold;
}

.vertical-line {
    width: 1px;
    background-color: #ccc;
    height: 200px; /* Adjust based on your content's height */
    align-self: center;
}

@media (min-width: 768px) {
    .col-md-4 {
        max-width: 33% !important;
    }
}

.btn-custom {
    margin: 0 5px; /* Adds spacing between buttons */
    width: auto; /* Adjusts width to content */
    padding: 0.375rem 0.75rem; /* Bootstrap's default padding for buttons */
}

.maxl{
        display: flex;
        align-items: center;  /* Align items vertically in the center */
        gap: 20px;            /* Space between each radio button */
}

/*Print out application */
/* Add this to your CSS file or within a <style> tag in the <head> */
.large-text {
    font-size: 30px;
}

.small-text {
    font-size: 20px;
}

.large-text-en {
    font-size: 30px;
}

.small-text-en {
    font-size: 18px;
}

.btn-group .btn {
    width: 150px; /* Ensures same width for all buttons in the group */
}

.btn-group {
    gap: 10px; /* Space between buttons */
    padding: 5% 0%;
}


/*Table des matieres*/
.custom-table thead th {
    background-color: #007bff; /* Bootstrap primary blue */
    color: white; /* White text color */
    padding: 8px 10px; /* Reduced padding */
}
.custom-table tbody td {
    padding: 6px 10px; /* Smaller padding for smaller row height */
}
.custom-table tbody td:first-child {
    text-align: right; /* Right-align for Arabic text */
}
.custom-table tbody td:last-child {
    text-align: left; /* Left-align for English text */
}

.math-table thead th {
    background-color: #007bff; /* Bootstrap primary blue */
    color: white; /* White text color */
    padding: 8px 10px; /* Reduced padding */
    text-align: left; 
    direction: ltr;
}
.math-table tbody td {
    padding: 6px 10px; /* Smaller padding for smaller row height */
    direction: ltr;
}

/* Ensure the table takes up the full width of its container */
.table {
    width: 100%;
    table-layout: fixed; /* Distribute columns evenly */
}

/* Modify the height of the table rows */
.table th, .table td {
    padding-top: 5px;
    padding-bottom: 5px;
    vertical-align: middle; /* Ensure content is vertically centered */
    overflow: hidden; /* Prevent content overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflow content */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Optional: Add padding to ensure columns aren't too narrow */
.table th, .table td {
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 768px){
        
#sidebar-wrapper {
    width: 30%;
    height: 100vh;
}
    
    #page-content-wrapper {
        margin-left: 0px;
        margin-right: 0px;
        width: 50%; /* Explicit width calculation */
    }
    .table th, .table td {
        width: 130px; 
    }
    }