/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');




body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* Bootstrap-style button */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: #fff;
    color: #000;
    border: 1px #ccc solid;
    cursor: pointer;
}


.header1, .header2 {
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* First Header */
.header1 {
    background: linear-gradient(90deg, #1A78EE, #1678F2);
    color: #fff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header1 img {
    width: 120px;
    height: auto; 
    margin-right: 10px; 
}

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

.header1 .user-info img {
    width: 30px;
    height: auto; 
    border-radius: 50%; 
    margin-right: 5px; 
}

.header1 .user-info .user-name {
    margin-right: 10px; 
}

.header1 .user-info .special-plus {
    background-color: #40E4AD; 
    border-radius: 50%; /* Ensure it's fully rounded */
    padding: 5px; /* Add padding to make it larger */
    margin-right: 25px;
    display: inline-block; 
}

.header1 .user-info .special-plus img {
    width: 20px; 
    height: 20px; /* Ensure the image has a fixed height */
    margin: 0 auto; 
}


/* Notification badge */
.notification-badge {
    position: relative;
}

.notification-badge .badge {
    position: relative;
    top: -10px;
    right: 23px;
    background-color: red;
    width: 3px;
    height: 16px;
    color: #fff;
    border-radius: 50%;
    padding: 5px 8px;
    font-size: 10px;
    text-align: center;
}
.notification-badge .badge small {
    position: relative;
    top: -2px;
    right: 3px;
}

/* Second Header */
.header2 {
    background-color: #40E4AD;
    color: #fff;
    padding: 10px;
    height: 50px;
    display: flex;
    overflow-x: hidden; 
    white-space: nowrap;
    margin-top: 50px;
}

.header-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    animation: slideLeft 25s linear infinite;
    margin-right: 30px;
}

.header-content .circle-background {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff; 
    padding: 5px; 
    margin-right: 10px;
}

.header-content img {
    width: 30px;
    height: auto; 
}

.title-header2 {
    color: #1A78EE;
    margin-right: 10px;
}

.content {
    color: #fff; 
    text-decoration: underline;
    position: relative;
    top: 6px;
}

@keyframes slideLeft {
    0% {
        transform: translateX(100%); 
    }
    100% {
        transform: translateX(-100%); 
    }
}

/* Sidebar */

.sidebar {
    width: 258px;
    background-color: #FFF;
    border-right: 1px solid #D7D7D7;
    color: #333333;
    padding: 10px;
    float: left;
    position: fixed;
    margin-top: 100px;
    height: calc(100% - 100px);
    overflow-y: auto; 
    transition: width 0.3s ease;
    scrollbar-width: thin; 
    scrollbar-color: transparent transparent;
}

/* scrolling bar */
.sidebar::-webkit-scrollbar {
    width: 6px; 
    height: 6px; 
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: transparent;
}


.sidebar-title {
    width: 100%;
    font-size: 1.2rem;
    margin-top: 10px;
    text-align: center;
    margin-bottom: 10px;
    color: #333333;
}

.sidebar-menu {
    position: relative;
    list-style-type: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-link {
    display: block;
    text-decoration: none;
    color: #333333;
    padding: 8px 12px;
    cursor: pointer;
}

.sidebar-link:hover {
    background-color: #fff;
}

.dropdown {
    position: relative;
}

.dropdown a {
    width: 100%;
    display: block;
    text-decoration: none;
    color: #333333;
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown a:hover {
    background-color: #cccccc5a;
}

.dropdown .dropdown-btn {
    display: inline-block;
    text-decoration: none;
    color: #3D8CEF;
    padding: 8px 12px;
    position: relative;
    width: 100%;
}

.dropdown .dropdown-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-btn i {
    transform: rotate(180deg);
}


.dropdown.active .dropdown-content {
    display: block;
    color: #3D8CEF;
}

.dropdown .dropdown-btn {
    display: inline-block;
    text-decoration: none;
    color: #3D8CEF;
    padding: 8px 12px; 
    position: relative;
}

.dropdown .dropdown-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-btn i {
    transform: rotate(180deg); 
}

.dropdown .dropdown-content {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 100%;
    z-index: 1;
    margin-bottom: 15px;
}

.dropdown .dropdown-content a {
    display: block;
    text-decoration: none;
    color: #333333;
    padding: 8px 12px;
    cursor: pointer;
}


.dropdown .dropdown-content .other-buttons .dropdown-title {
    margin-left: 30px;
    color: #6C87AE;
}   


.dropdown .dropdown-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #000;
    padding: 8px 12px; 
    position: relative;
}

.dropdown .dropdown-btn .dropdown-title{
    margin-right: 80px;
}

.rotate-icon {
transform: rotate(180deg);
}


/* Main Content */
.main-content {
    margin-left: 258px; 
    padding: 20px;
    transition: margin-left 0.3s ease;
    overflow-x: auto;
}

/* for small side */

.sidebar.small {
    width: 60px;
}

.sidebar.small .sidebar-title {
    display: none;
}
.sidebar.small .sidebar-menu {
    margin-top: 35px;
}

.sidebar .dropdown-title {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.sidebar.small .dropdown-title {
    display: none;
}

.toggle-btn{
    display: flex;
    justify-content: flex-end;
}

.toggle-button {
    background-color: transparent;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin-bottom: 10px;
    align-self: flex-end;
    position: absolute  ;
    top: 2%;
    right: -0%;
    z-index: 1;
}

.toggle-button img{
    width: 20px;
}

.main-content.small {
    margin-left: 60px;
}

.hidden{
    display: none;
}


/* Main header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
    padding: 20px;
}

.main-header h1 {
    color: #000; 
    font-size: 24px; 
    font-weight: bold; 
    margin-bottom: 10px;
}

.main-header p {
    color: #667085; 
    font-size: 16px;
    line-height: 1.5; 
}

.btn-new-patient {
    background-color: #3D8CEF; 
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-new-patient:hover {
    background-color: #1A78EE; 
}


/* Search Filter */
.search-filter {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.search-filter label {
    margin-right: 10px;
    color: #333;
}

.search-filter .input-group {
    width: calc(100% - 320px);
    margin-right: 20px;
}

.search-filter .input-group-text {
    min-width: 130px; 
    text-align: left;
}

.search-filter .custom-date-input,
.search-filter .form-select {
    width: 80%;
    border-radius: 4px;
    padding: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    margin-right: 20px;
}

.search-filter #searchBtn {
    width: 20%;
    margin-left: 10px;
    flex-shrink: 0;
    border-radius: 4px;
    padding: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.search-filter #searchBtn span{
    margin-left: 10px;
}

/* Table */
table {
    width: 100%;
    text-align: center;
    border-collapse: separate; 
    border-spacing: 0 .9em;
}

th, td {
    padding: 10px; 
    text-align: center;
}

th {
    background-color: rgba(230, 237, 243, 0.58);
    color: #031432;
    border-bottom: 1px solid #ddd;
}

td {
    background-color: #FFFFFF;
    border: 1px solid #E6EDF3;
    color: #031432;
}

td.nom-complet,td.telephone {
    color: #6C87AE;  
}


/* Navigation Card */
.navigation-card {
    margin-top: 20px;
    margin-bottom: 40px;
}

.card-navigation {
    border:1px solid #E6EDF3 ;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    flex-wrap: nowrap;
}

.card-navigation button {
    margin-right: 10px;
}

.card-navigation .pages span{
    margin-right: 15px;
    cursor: pointer;
}

.card-navigation .btn-nav{
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    cursor: pointer;
    background-color: #fff;
    border: 0px;
}

#nextBtn{
    color: #667085;
}
#prevBtn{
    color: #667085;
}
#nextBtn img{
    margin-left: 15px;
}
#prevBtn img{
    margin-right: 15px;
}

.current-page {
    color: #3D8CEF;
}

.form-select{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
}