@charset "UTF-8";

/*!
 * Version - 1.1.1
 * Copyright (c) 2025 Cooland <info@cooland.com>

 * L’autorisation est accordée à toute personne qui en obtient une copie de ce style.
 * Il est strictement interdit de publier(vendre) sans l'autorisation préalable des auteurs.
 * Des spécialistes sont à l'origine des documents fourn:is.
*/
@import url('https://fonts.googleapis.com/css2?family=Anek+Latin:wght@100..800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css');
@import url('../vendor/bootstrap/css/bootstrap.min.css');
@import url('typography.css');
@import url('color.css');

/*  ==========================================
*   ================= GENERAL ================
*/
* {
    font-family: var(--ff-source);
    font-weight: 350;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--gray);
    font-size: 1rem;
}

a {
    text-decoration: none !important;
}

/*  =========================================
*   ================== END GENERAL ==================
*/

/*  ==============================================
*   =================== CUSTOM ===================
*/

/* 0. Widget */
.square {
    width: 50px;
    height: 50px;
    background-color: #f1f5fb;
    color: var(--primary);
    border-radius: .25rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.square.primary {
    background-color: var(--secondary-light);
    color: var(--light);
}

.square.secondary {
    background-color: var(--orange);
    color: var(--light);
}


.square i {
    font-size: 1.525rem;
}

/* 1. Sidebar */
.sidebar {
    height: 100vh;
    width: 280px;
    background-color: var(--tertiary);
    border-right: 1px solid #73737439;
}

.sidebar .logo {
    border-bottom: 1px solid #ffffff29;
}

.sidebar .sidebar-title {
    color: var(--light);
}

.sidebar .nav-pills .nav-link {
    margin: 2px 0;
    transition: .25s all ease-in;
}

.sidebar .nav-pills .nav-link:not(.active) {
    color: var(--light);
}

.sidebar .nav-pills .nav-link.active,
.sidebar .nav-pills .show>.nav-link {
    --bs-nav-pills-link-active-color: var(--tertiary);
    --bs-nav-pills-link-active-bg: var(--primary-variant);
}

.sidebar .nav-pills .nav-link:not(.active):hover {
    color: var(--tertiary);
    background-color: var(--light);
}

.sidebar .nav-pills .nav-link i {
    height: 25px;
    width: 25px;
    background-color: var(--gray);
    color: var(--dark-secondary);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    padding: 7px;
}

/* End sidebar */

/* 2. Header */
.header {
    background-color: #f5f5f5 !important;
}

.header #breadcrumb {
    --bs-breadcrumb-divider: '➝';
    display: inline-flex;
    justify-content: center;
    align-items: start;
}

.header .breadcrumb {
    margin-bottom: 0;
}

.header .breadcrumb .breadcrumb-item,
.header .breadcrumb .breadcrumb-item a {
    color: var(--tertiary);
    font-size: 0.95rem;
    font-weight: 300;
}

.header .breadcrumb .breadcrumb-item.active {
    color: var(--orange);
    font-weight: 500;
}

.header .breadcrumb .breadcrumb-item i {
    color: var(--tertiary);
}

.avatar {
    --avatar-bg-color: var(--primary-variant);
    --avatar-color: var(--tertiary);
    width: 40px;
    height: 40px;
    border: #414a55;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    background-color: var(--avatar-bg-color);
    color: var(--avatar-color);
}

.avatar.secondary {
    --avatar-bg-color: var(--dark-secondary);
    --avatar-color: var(--dark-blue-green);
}

/* End Header */

/* 3. Content */
.content {
    position: relative;
    justify-self: end;
    width: 100vw;
}

.content-title {
    background-color: #f5f5f5;
}

.fit-truncate {
    --line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--line-clamp);
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto;
    max-height: 60px;
}

/* 4. Table */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.table thead th {
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.table tbody td {
    font-size: 0.875rem;
    color: #111827;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

.table thead th:first-child {
    border-left: 3px solid var(--primary-variant);
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr:nth-child(even) {
    background-color: #fcfcfd !important;
}

/*  =========================================
*   === 3. Forms ===
*   =========================================
*/
.form-control,
.form-select {
    --bs-border-color: #b6b6b6;
    --bs-border-width: 2px;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease !important;
    font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus {
    outline: none !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 0px #4a90e21a !important;
}

/*  =========================================
*   ================== FOOTER ==================
*/
footer {
    background: url(../images/pattern.png), var(--dark-blue-green) !important;
    color: var(--light) !important;
    font-size: 14px;
    letter-spacing: 0.2px;
}

footer #copyright {
    border-top: 0.5px solid #8bca3468;
}


/*  =========================================
*   ================== END FOOTER ==================
*/


/*  ===============================================
*   ============== Variables Global ===============
*/

*::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px var(--light);
    background-color: var(--light);
}

*::-webkit-scrollbar {
    width: 10px;
    background-color: var(--light);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
    background-color: var(--light);
}

*::-webkit-scrollbar-thumb {
    background-color: #969696 !important;
}

::selection {
    background-color: var(--primary);
    color: var(--dark);
}

:root {
    --primary: #DFFF31;
    --primary-variant: #C9EA03;
    --secondary: #1A6B3C;
    --secondary-light: #1A8C22;
    --tertiary: #031321;
    --orange: #ef7e35;
    --primary-light: #C7CD9D;
    --dark: #000C0C;
    --body-color: #031321;
    --light: #ffffff;

    --ff-source: "Anek Latin", sans-serif;
}