﻿/******** Global Font **********************/

@font-face {
    font-family: 'Poppins';
    src: url('/dist/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/dist/fonts/Poppins-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/dist/fonts/Poppins-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


body {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-main);
    color: var(--text-main);
}


/* ----------------------------------------------------------
   LAYOUT
---------------------------------------------------------- */

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* 🔥 important */
}
.app-wrapper {
    display: flex;
    height: calc(100vh - 85px); /* navbar + footer */
}

.navbar {
    height: 60px;
    flex-shrink: 0;
}

.footer {
    height: 25px;
    flex-shrink: 0;
}
.sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid #ddd;
    overflow-y: auto; /* optional */
}
.content {
  flex: 1;
  padding: 10px;
  overflow-y: auto;   /* ✅ scroll here only */
  background: #f5f7fa;
}


/* ----------------------------------------------------------
   FORM ELEMENTS
---------------------------------------------------------- */
.cntr-350 {
    max-height: 350px;
    overflow-y: auto;
}


/* --------------------------------------------------
   TABLE STYLING
--------------------------------------------------*/
.card {
    border-radius: 14px;
    border: none;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.07);
}

table thead {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.table tbody tr {
    transition: 0.25s;
}

    .table tbody tr:hover {
        background: #f1f5f9;
    }

/* Action column */
.table td .btn {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem !important;
}

.table .active-row {
    background-color: #c8dfff !important; /* light blue */
}
.table-hover tbody tr:hover {
    background-color: #f8f9fa !important;
}

/* ----------------------------------------------------------
   DATA LIST STYLE
---------------------------------------------------------- */

.data-list-empty-td {
    background: #f8fafc;
    text-align: center;
    color: #6b7280;
    font-weight: 500;
    padding: 30px 10px;
    border-radius: 8px;
}

    .data-list-empty-td i {
        font-size: 26px;
        color: #9ca3af;
        display: block;
        margin-bottom: 6px;
    }

    .data-list-empty-td span {
        font-size: 14px;
    }

.data-list-loading-td {
    background: #f9fafb;
    text-align: center;
    color: #2563eb;
    font-weight: 500;
    padding: 28px 10px;
}

    .data-list-loading-td .spinner-border {
        width: 1.6rem;
        height: 1.6rem;
        margin-bottom: 6px;
    }

    .data-list-loading-td span {
        display: block;
        font-size: 14px;
    }

.data-list-error-td {
    background: #fff1f2;
    text-align: center;
    color: #b91c1c;
    font-weight: 600;
    padding: 28px 10px;
    border-radius: 8px;
}

    .data-list-error-td i {
        font-size: 26px;
        color: #dc2626;
        display: block;
        margin-bottom: 6px;
    }

    .data-list-error-td span {
        font-size: 14px;
    }

