﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: "Red Hat Display", sans-serif;
    font-weight: 700;
    font-style: normal;
}

p, body {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 0px;
    font-size: 16px;
    line-height: 24px;
    color: #5d666f;
}

a {
    text-decoration: none;
}

.btn.logout-link {
    padding: 0px;
}

.alert-success {
    --bs-alert-bg: #c2edd5!important;
    margin: 1rem!important;
}

.alert-success {
    color: #155724;
    background-color: #c2edd5;
    border-color: #c3e6cb;
}

.page-link:focus {
    box-shadow: 0 0 0 3px rgb(36 137 189 / 10%);
}

.gradient-text {
    background: linear-gradient(90deg, #068098 0%, #26bad7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

h1 {
    font-size: 40px;
    line-height: 45px;
    color: #004c73;
}

h2 {
    font-size: 35px;
    line-height: 40px;
    color: #004c73;
}

h3 {
    font-size: 30px;
    line-height: 35px;
    color: #004c73;
}

h4 {
    font-size: 25px;
    line-height: 30px;
    color: #004c73;
}

h5 {
    font-size: 20px;
    line-height: 25px;
    color: #004c73;
}

h6 {
    font-size: 18px;
    line-height: 22px;
    color: #004c73;
}

.content-wrapper {
    background-color: #f8fcff;
}

body {
    background-color: #f8fcff !important;
}

.btn-primary {
    background: linear-gradient(135deg, #068098 0%, #26bad7 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #26bad7 0%, #068098 100%);
}


.main-header {
    position: relative;
    top: 20px;
    border-radius: 10px;
}

.navbar {
    padding: .7rem .7rem;
}

.navbar-nav {
    align-items: center;
}

.navbar-expand .navbar-nav .nav-link {
    padding-right: 0rem;
}

.dropdown-item:focus, .dropdown-item:hover {
    background-color: #ffffff00;
}

.user-initials {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #068098 0%, #26bad7 100%);
    font-size: 25px;
    border-radius: 10px;
    padding: 5px;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    line-height: 1.8rem;
    text-align: center;
    color: #fff;
}

.fullscreen-icon {
    background: linear-gradient(135deg, #0680981a 0%, #26bad70f 100%);
    border-radius: 10px;
    width: 45px;
    height: 45px;
    line-height: 1.8rem;
}

.fa-bars {
    font-size: 20px;
}

.navbar-light .navbar-nav .nav-link {
    color: #26bad7 !important;
}

    .navbar-light .navbar-nav .nav-link:hover {
        color: #068098 !important;
    }

.dropdown-menu {
    margin-top: 20px;
    border-radius: 15px !important;
}

.navbar-nav > .user-menu > .dropdown-menu {
    width: 250px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: #fff;
    color: #0349ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    line-height: 50px;
}

.dropdown-menu .dropdown-item button {
    width: 100%;
}

.animated--fade-in {
    animation: fadeIn 0.2s ease-in-out;
}

.profile-header {
    background: linear-gradient(135deg, #068098 0%, #26bad7 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 1;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.profile-email {
    font-size: 15px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    padding: 0.3rem 1rem;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.status-dot {
    border-radius: 50%;
    animation: pulse 2s infinite;
    font-size: 12px;
    line-height: 1rem;
    color: #15cd77;
}

.fa-circle {
    font-size: 12px !important;
    margin-right: 0px !important;
    position: relative !important;
    top: 0px!important;
}

.navbar-expand .navbar-nav .nav-link.logout-link {
    padding-left: 0rem;
}

.navbar-nav.logout-nav {
    justify-content: center;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Side bar */
.layout-fixed .main-sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.layout-fixed .main-sidebar::-webkit-scrollbar {
    display: none;
}

[class*=sidebar-dark-] {
    background-color: #132d4a;
}

.sidebar {
    margin-bottom: 20px;
}

[class*=sidebar-dark-] .nav-sidebar > .nav-item.menu-open > .nav-link, [class*=sidebar-dark-] .nav-sidebar > .nav-item:hover > .nav-link, [class*=sidebar-dark-] .nav-sidebar > .nav-item > .nav-link:focus, [class*=sidebar-dark-] .nav-sidebar > .nav-item > .nav-link:active {
    background-color: rgb(38 186 215 / 40%);
}

.main-sidebar, .main-sidebar::before {
    width: 290px;
}

body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
    margin-left: 310px;
    margin-right: 20px;
}

.sidebar-mini .main-sidebar .nav-link, .sidebar-mini-md .main-sidebar .nav-link, .sidebar-mini-xs .main-sidebar .nav-link {
    width: calc(275px - .5rem*2);
}

.sidebar-collapse.sidebar-mini .main-sidebar.sidebar-focused .nav-link, .sidebar-collapse.sidebar-mini .main-sidebar:hover .nav-link, .sidebar-collapse.sidebar-mini-md .main-sidebar.sidebar-focused .nav-link, .sidebar-collapse.sidebar-mini-md .main-sidebar:hover .nav-link, .sidebar-collapse.sidebar-mini-xs .main-sidebar.sidebar-focused .nav-link, .sidebar-collapse.sidebar-mini-xs .main-sidebar:hover .nav-link {
    width: calc(275px - .5rem*2);
}

.sidebar-mini.sidebar-collapse .content-wrapper, .sidebar-mini.sidebar-collapse .main-footer, .sidebar-mini.sidebar-collapse .main-header {
    margin-left: 6.3rem !important;
}

.sidebar-collapse.sidebar-mini .brand-text {
    display: none;
}

.sidebar-collapse.sidebar-mini .main-logo {
    width: 30px;
}

.main-sidebar .os-content {
    padding: 0px 15px!important;
}

.sidebar-mini .main-sidebar .timeline-nav .nav-link {
    width: calc(250px - .5rem*2);
}

.sidebar-collapse.sidebar-mini .main-sidebar:hover .timeline-nav .nav-link {
    width: calc(250px - .5rem*2);
}

.nav-sidebar .nav-link > p > .right {
    right: 0rem !important;
    top: 0.6rem !important;
    transition: right 0.3s ease;
}

.nav-item .nav-link:hover .right, .nav-item.menu-is-opening.menu-open .right {
    right: 1rem !important;
}

.side-bar-logo {
    background-color: #fff;
    border-radius: 10px;
    margin: 20px 15px 0px;
    padding: 10px;
}

.logo-col {
    display: flex;
    align-items: center;
}

.main-logo {
    width: 45px;
}

.brand-text h1 {
    margin-bottom: 2px;
    font-size: 19px;
    line-height: 22px;
    color: #004c73;
    font-weight: 800;
}

.brand-text p {
    color: #6c757d;
    font-size: 13px;
    line-height: 18px;
}

.brand-text {
    padding-left: 10px;
}

.info .profile-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
    font-weight: 600;
    padding: 0px;
    background: #ffffff00;
}

.user-panel .profile-avatar img {
    width: 60px;
    height: 60px;
}

.sidebar-collapse.sidebar-mini .user-panel .profile-avatar img {
    width: 50px;
    height: 50px;
}

.sidebar-collapse.sidebar-mini .user-panel .image {
    padding-left: 0rem;
}

.user-panel .text-success {
    color: #15cd77 !important;
}

.user-panel.d-flex {
    align-items: center;
}

[class*=sidebar-dark-] .nav-header {
    color: #40cbe6;
    margin-top: 5px;
}

.nav-item p {
    color: #cfd0d1;
    font-size: 15px;
}

.nav .nav-item i {
    font-size: 20px;
    margin-right: 5px;
    position: relative;
    top: 2px;
}

.nav .nav-item i {
    font-size: 20px;
    position: relative;
    top: 2px;
}

.nav-sidebar .nav-header {
    padding: .5rem 0rem 0.2rem;
}

.nav-treeview .nav-item > .nav-link {
    margin-bottom: 0px;
    font-size: 14px;
    position: relative;
    padding: 8px 20px;
    text-decoration: none;
}

.timeline-nav {
    position: relative;
    padding-left: 30px;
    margin: 0;
    list-style: none;
    border-left: 2px solid #ccc;
    margin-left: 25px;
    width: calc(250px - 1rem * 2);
}

.timeline-nav .nav-item {
    position: relative;
}

.timeline-nav .nav-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 15px;
    width: 10px;
    height: 10px;
    background-color: #40cbe6;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 1;
}

/* footer */
.main-footer {
    background-color: #fff;
    color: #6c757d;
    font-size: 14px;
    border-top: 1px solid #dee2e6;
}

.purple-copyright {
    color: #004c73;
}

/* Breadcrum */
.main-breadcrum-sec {
    padding: 20px 0px 30px;
    border-bottom: 1px solid #b8d3d6;
    margin-bottom: 30px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    font-size: 15px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #26bad7;
}

.breadcrumb-item {
    color: #a848eb;
}

.breadcrumb-item a {
    color: #5d666f;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #a848eb;
}

.breadcrumb-item.active {
    color: #26bad7;
}

@media (min-width: 768px) {
    body: not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
        margin-left: 310px;
        margin-right: 20px;
    }
}

@media (min-width: 992px) {
    .sidebar-mini.sidebar-collapse .main-header {
        margin-left: 6.3rem !important;
    }

    .sidebar-mini.sidebar-collapse .main-sidebar.sidebar-focused, .sidebar-mini.sidebar-collapse .main-sidebar:hover {
        width: 290px;
    }

    .sidebar-mini.sidebar-collapse .main-sidebar, .sidebar-mini.sidebar-collapse .main-sidebar::before {
        width: 5rem;
    }
}

/* Datatable */

.table td, .table th {
    white-space: nowrap;
}

.data-table-sec, .form-sec {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    margin-bottom: 60px;
}

.data-table-header, .form-header {
    padding: 30px;
    background: linear-gradient(135deg, #16a6c2 0%, #004c73 100%);
    display: flex;
    align-items: center;
}

.table-header-col-1{
    width: 73%;
}

.table-header-col-2 {
    width: 27%;
    display: flex;
    justify-content: flex-end;
}

.form-body {
    padding: 30px;
}

.data-table-title {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 30px;
    color: #fff;
}

.data-table-subtitle {
    color: #fff;
    font-size: 17px;
}

.header-add-btn {
    background-color: #fff;
    color: #068098;
    border: 1px solid #fff;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.header-add-btn:hover {
    background-color: #ffffff00;
    color: #fff;
    border: 1px solid #fff;
    padding: 15px 25px;
}

table.dataTable.table-hover > tbody > tr:hover > * {
    box-shadow: none;
}

.data-table-body th {
    text-align: left;
    padding: 18px 30px;
    color: #004c73;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #e1f5ff !important;
    border-top: none;
    background: #eef9ff;
}

.data-table-body td {
    padding: 15px 30px;
    border-bottom: 1px solid #f1f5f9;
    border-top: none;
    font-size: 15px;
    color: #5d666f;
}

.data-table-body tr {
    border: none;
}

.data-table-body tbody tr:hover {
    background: linear-gradient(90deg, #f1f9fd 0%, #fcfeff 100%) !important;
    overflow: hidden;
}

.data-table-sec tbody tr {
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    display: flex;
    gap: 0.5rem;
    padding: 0px 30px 30px;
}

.page-item .page-link {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.page-item:hover .page-link {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.page-item.active .page-link {
    background: #16a6c2;
    color: white;
    border-color: #16a6c2;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.dataTables_filter .form-control {
    padding: 0.75rem 1rem 0.75rem 1rem;
    border: 2px solid #a3d9e4;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 280px !important;
}

.dataTables_filter .form-control:focus {
    outline: none;
    border-color: #2489bd;
    box-shadow: 0 0 0 3px rgb(36 137 189 / 10%);
}

.dataTables_scroll {
    background: white;
    margin: 30px 0px;
}

table.dataTable {
    margin-top: 0px !important;
}

div.dataTables_wrapper div.dataTables_info {
    padding: 0px 30px 35px;
}

.data-table-sec label {
    margin-bottom: 0rem;
}

.dataTables_wrapper .row {
    align-items: center;
}

.dataTables_length{
    padding: 30px 30px 0px;
}

div.dataTables_wrapper div.dataTables_filter {
    padding: 30px 30px 0px;
}

.btn-sm {
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-sm.btn-success {
    background-color: #28a745;
}

.btn-sm.btn-success:hover {
    background-color: #218838;
    color: #fff;
}

.btn-sm.btn-danger {
    background-color: #e63946;
    margin-left: 10px;
}

.btn-sm.btn-dange:hover {
    background-color: #c82333;
    color: #fff;
}

.btn-sm.btn-primary {
    background-color: #16a6c2 !important;
    background: inherit;
    margin-left: 10px;
}

    .btn-sm.btn-primary:hover {
        background-color: #004c73 !important;
        background: inherit;
        color: #fff;
    }


/* Forms */
.required:after {
    content: " *";
    color: red;
}

.form-control-sm {
    height: calc(2.5rem + 2px);
    font-size: 1rem;
    border: 2px solid #e5c2ff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-body .form-control, .create-form-body .form-control {
    padding: 0.75rem 1rem 0.75rem 1rem;
    border: 2px solid #a3d9e4;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 50px;
}

textarea.form-control {
    height: auto!important;
}

.form-body .form-control:focus, .create-form-body .form-control:focus {
    outline: none;
    border-color: #2489bd;
    box-shadow: 0 0 0 3px rgb(36 137 189 / 10%);
}

.select2-container--bootstrap4 .select2-selection {
    padding: 0.3rem 0.8rem;
    border: 2px solid #a3d9e4;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection {
    outline: none;
    border-color: #2489bd;
    box-shadow: 0 0 0 3px rgb(36 137 189 / 10%);
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    border: 1px solid #2489bd;
    border-radius: 0.3rem;
}

.select2.select2-container.select2-container--bootstrap4 {
    width: 100%;
}

.btn {
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0px;
}

.btn.btn-update, .btn.btn-create {
    background-color: #16a6c2;
    width: 100%;
}

.btn.btn-update:hover, .btn.btn-create:hover {
    background-color: #004c73;
    color: #fff;
}

.btn.btn-back {
    background-color: #8b9095;
    margin-left: 10px;
    width: 100%;
}

.btn.btn-back:hover {
    background-color: #5a6268;
    color: #fff;
}

div.dataTables_wrapper div.dataTables_length select, div.dataTables_wrapper div.dataTables_length select:focus {
    padding: 8px 20px;
    border: 2px solid #a3d9e4;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin: 0px 5px;
}

div.dataTables_wrapper div.dataTables_length select:focus {
    border-color: #2489bd !important;
    box-shadow: 0 0 0 3px rgb(36 137 189 / 10%) !important;
}

.create-form-body {
    margin: 30px 30px 0px;
}

.create-form-body .alert.alert-success {
    margin: 1rem 0rem !important;
}

div.dataTables_processing > div:last-child > div {
    background: #9C27B0;
}

.input-group-text {
    padding: 5px 10px;
}

/* Popup */
.modal-header {
    background: linear-gradient(135deg, #741865 0%, #6b1fa2 100%);
    padding: 15px 20px !important;
}

.modal-header h5 {
    color: #ffffff!important;
}

.modal-header .btn-close {
    background-color: #fff;
    opacity: 1;
    border: 1px solid #fff;
}

.modal-header .btn-close:hover {
    background-color: #ffffff00;
    opacity: 1;
    border: 1px solid #fff;
}

.modal-header .btn-close {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a43592'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

.modal-header .btn-close:focus {
    box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.1);
}

.modal-header .btn-close:hover {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

.modal-body {
    padding: 30px 30px 40px;
}

.modal-body .form-control {
    padding: 0.75rem 1rem 0.75rem 1rem;
    border: 2px solid #e5c2ff;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 50px;
}

.modal-footer {
    justify-content: flex-start;
    padding: 15px 30px;
}

.modal-content {
    box-shadow: 0 .5rem 1rem rgb(0 0 0 / 35%);
}
