/* ========================================
   RESET
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: "Satoshi", sans-serif;
    color: #fff;
    background: url("../img/bg.png") center/cover no-repeat;
    background-position: center;
    background-attachment: fixed;
}

/* ========================================
   FONTS
======================================== */
@font-face {
    font-family: "Satoshi";
    src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Satoshi";
    src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Satoshi";
    src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

/* ========================================
   ROOT VARIABLES
======================================== */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --purple: #7c3aed;

    --glass: rgba(255, 255, 255, .08);
    --glass-soft: rgba(255, 255, 255, .05);
    --glass-border: rgba(255, 255, 255, .12);

    --text-soft: rgba(255, 255, 255, .72);
    --text-muted: rgba(255, 255, 255, .58);

    --radius: 22px;
    --radius-sm: 14px;
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: .35rem;
}

p {
    margin-bottom: .75rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   COMMON WRAPPERS
======================================== */
.page-wrap,
.dashboard-wrap,
.settings-wrap,
.issues-wrap,
.dash-wrap {
    max-width: 1400px;
    margin: auto;
    padding: 20px;
}

/* ========================================
   GLASS UI
======================================== */
.glass-card,
.table-box,
.table-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .20);
    padding: 20px;
}

.glass-soft {
    background: var(--glass-soft);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 14px;
}

.hero-card {
    background:
        linear-gradient(135deg,
            rgba(37, 99, 235, .35),
            rgba(14, 165, 233, .18));
    padding: 28px;
}

/* ========================================
   BUTTONS
======================================== */
.btn,
.login-btn,
.submit-btn,
.btn-custom {
    border-radius: 12px;
    transition: all .2s ease;
}

.btn:hover,
.login-btn:hover,
.submit-btn:hover,
.btn-custom:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ========================================
   FORMS
======================================== */
.form-control,
.form-select,
.input {
    min-height: 46px;
    border-radius: 12px;
}

.form-control,
.form-select {
    border: 1px solid rgba(255, 255, 255, .08);
}

.glass-input,
.glass-select {
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, .52);
}

.glass-select option {
    color: #111;
}

textarea.form-control {
    min-height: auto;
}

/* ========================================
   HELPERS
======================================== */
.muted-text,
.sub-text {
    color: var(--text-soft);
}

.meta-label {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.meta-value {
    color: #fff;
    font-weight: 600;
}

.page-title {
    font-size: 1.9rem;
    font-weight: 800;
}

/* ========================================
   RESPONSIVE
======================================== */
@media(max-width:768px) {

    .page-wrap,
    .dashboard-wrap,
    .settings-wrap,
    .issues-wrap,
    .dash-wrap {
        padding: 12px;
    }

    .glass-card,
    .table-box,
    .table-card {
        padding: 16px;
        border-radius: 18px;
    }

    .page-title {
        font-size: 1.35rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)) !important;
    }
}

@media(max-width:576px) {
    .btn {
        width: 100%;
    }
}

/* ========================================
   PART 2 — DASHBOARD + TABLES + FORMS
======================================== */

/* ========================================
   DASHBOARD HEADER
======================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-header h4,
.dashboard-header h2 {
    margin-bottom: 4px;
}

.dashboard-header p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}

/* ========================================
   STATS GRID
======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.main-stat {
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin-bottom: 14px;
    gap: 14px;
}

@media(max-width:768px) {
    .main-stat {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}

.stat-card {
    border-radius: 20px;
    padding: 20px;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .22);
}

.stat-number {
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
    text-align: right;
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
    opacity: .92;
}

/* Color Variants */
.stat-card.blue,
.blue {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.stat-card.red,
.red {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.stat-card.green,
.green {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.stat-card.gold,
.gold {
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111;
}

.stat-card.gray,
.gray {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.stat-card.purple,
.purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

/* Responsive Stats */
@media(max-width:992px) {
    .stat-number {
        font-size: 42px;
    }

    .stat-label {
        font-size: 16px;
    }
}

@media(max-width:576px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }

    .stat-number {
        font-size: 30px;
    }

    .stat-label {
        font-size: 14px;
    }
}

/* ========================================
   HIGHLIGHT CARD
======================================== */
.highlight-card {
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}

.highlight-card h1 {
    font-size: 42px;
    font-weight: 800;
}

/* ========================================
   TABLES
======================================== */
.table-box {
    overflow-x: auto;
}

.custom-table,
.table-custom {
    color: #fff;
    min-width: 700px;
}

.custom-table thead th,
.table-custom thead th {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .08);
}

.custom-table td,
.custom-table th,
.table-custom td,
.table-custom th {
    border-color: rgba(255, 255, 255, .06);
    vertical-align: middle;
}

.table> :not(caption)>*>* {
    background: transparent !important;
    color: #fff;
    padding: .7rem;
}

code {
    color: #ffd369;
}

/* Mobile Table */
@media(max-width:576px) {
    .custom-table {
        min-width: 620px;
        font-size: 13px;
    }
}

/* ========================================
   LOGIN
======================================== */
.login-card {
    width: 100%;
    max-width: 360px;
    padding: 28px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    color: #111;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
    text-align: center;
}

.login-card-owner {
    max-width: 420px;
}

.login-card-company {
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    border-radius: 18px;
}

.login-logo {
    width: 120px;
    max-width: 100%;
    margin-bottom: 14px;
}

.login-input {
    width: 100%;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 12px;
    background: #f8fafc;
}

.login-btn {
    width: 100%;
    border: none;
    padding: 12px;
    font-weight: 700;
    color: #fff;
    background: #2bb3b1;
}

.login-btn:hover {
    background: #249c9a;
}

/* ========================================
   GENERIC FORM LAYOUTS
======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media(max-width:768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.readonly {
    background: rgba(255, 255, 255, .18);
    color: #ddd;
}

.error {
    color: #fecaca;
    margin-bottom: 10px;
}

/* ========================================
   FILE LIST
======================================== */
.file-list {
    margin-top: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}

/* ========================================
   DROPDOWN / MODAL
======================================== */
.dropdown-menu {
    border: none;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.modal-content {
    border-radius: 18px;
}

.title {
    text-align: center;
    margin-bottom: 18px;
}

/* ========================================
   PART 3 — ISSUES + DETAIL PAGE + CHAT + SETTINGS
======================================== */

/* ========================================
   ISSUE FILTER BAR
======================================== */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 18px;
}

.filter-bar .form-control,
.filter-bar .form-select {
    min-width: 180px;
}

.filter-bar .search-box {
    flex: 1;
    min-width: 220px;
}

@media(max-width:768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar .form-control,
    .filter-bar .form-select,
    .filter-bar .search-box {
        width: 100%;
        min-width: 100%;
    }
}

/* ========================================
   ISSUE STATUS BADGES
======================================== */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .42rem .85rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: .2px;
}

.status-open {
    background: #dc2626;
    color: #fff;
}

.status-progress {
    background: #f59e0b;
    color: #111;
}

.status-resolved {
    background: #16a34a;
    color: #fff;
}

.status-closed {
    background: #64748b;
    color: #fff;
}

/* ========================================
   ISSUE LIST CARD (Mobile)
======================================== */
.issue-card {
    display: none;
}

@media(max-width:768px) {
    .desktop-table {
        display: none;
    }

    .issue-card {
        display: block;
        margin-bottom: 14px;
        padding: 16px;
        border-radius: 18px;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .08);
        backdrop-filter: blur(12px);
    }

    .issue-card h6 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .issue-card .meta {
        font-size: 13px;
        color: rgba(255, 255, 255, .68);
    }
}

/* ========================================
   DETAIL PAGE
======================================== */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

@media(max-width:992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media(max-width:576px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.action-btn {
    width: 100%;
    border-radius: 14px;
    padding: 12px;
    font-weight: 700;
}

.file-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #8ec5ff;
    transition: .2s ease;
}

.file-link:hover {
    background: rgba(255, 255, 255, .08);
}

/* ========================================
   CHAT / COMMENTS
======================================== */
.chat-area {
    min-height: 420px;
    max-height: 68vh;
    overflow-y: auto;
    padding: 14px;
    background: linear-gradient(180deg, rgb(0 26 70), rgb(0 21 65));
    border-radius: 20px;
}

.chat-area::-webkit-scrollbar {
    width: 8px;
}

.chat-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
    border-radius: 20px;
}

.bubble-me,
.bubble-other {
    padding: 12px 14px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    word-break: break-word;
}

.bubble-me {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.bubble-other {
    background: rgba(255, 255, 255, .92);
    color: #111;
    border-bottom-left-radius: 6px;
}

.chat-time {
    font-size: 11px;
    margin-top: 6px;
    opacity: .72;
}

.chat-user {
    font-size: 12px;
    color: #93c5fd;
    margin-bottom: 4px;
    padding-left: 4px;
}

.chat-image {
    width: 100%;
    max-width: 260px;
    border-radius: 12px;
    margin-top: 8px;
    cursor: pointer;
}

/* ========================================
   SETTINGS CENTER
======================================== */
.settings-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.settings-link:hover,
.settings-link.active {
    background: rgba(37, 99, 235, .35);
    border-color: rgba(37, 99, 235, .55);
}

.settings-panel {
    min-height: 520px;
}

@media(max-width:992px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        overflow-x: auto;
        flex-direction: row;
        padding-bottom: 4px;
    }

    .settings-link {
        white-space: nowrap;
    }
}

/* ========================================
   TOASTS
======================================== */
.toast-container {
    z-index: 9999;
}

.toast {
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
    gap: 6px;
    flex-wrap: wrap;
}

.page-link {
    border: none;
    border-radius: 10px !important;
    min-width: 38px;
    text-align: center;
}

.page-item.active .page-link {
    background: #2563eb;
}

/* ========================================
   SMALL DEVICES
======================================== */
@media(max-width:576px) {
    .chat-area {
        max-height: 52vh;
    }

    .action-btn {
        padding: 10px;
        font-size: 14px;
    }

    .status-pill {
        font-size: .72rem;
        padding: .35rem .7rem;
    }
}

img.navlogo {
    width: 150px;
}

.list-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.glass-modal {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}



.stat-box {
    padding: 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #fff;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.stat-box:hover {
    transform: translateY(-5px) scale(1.02);
}

.stat-box span {
    font-size: 13px;
    opacity: 0.92;
}

.stat-box h3 {
    margin-top: 10px;
    font-size: 30px;
    font-weight: 800;
}

.color-blue {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.color-green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.color-red {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.color-gold {
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111;
}


.custom-table td {
    border-color: rgba(255, 255, 255, 0.05);
}



.pill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mini-pill {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.mini-pill small {
    display: block;
    color: rgba(255, 255, 255, 0.65);
}

.mini-pill strong {
    color: #fff;
    font-size: 14px;
}

.detail-card {
    height: 100%;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}


.modal-content code {
    color: #facc15;
}

@media (max-width: 768px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h2 {
        font-size: 1.45rem;
    }
}

.dash-wrap {
    padding: 24px;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 22px;
    border-radius: 22px;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 145px;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.22);
}

.stat-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: 0.7s;
}

.stat-card:hover:before {
    left: 120%;
}

.stat-icon {
    font-size: 28px;
    opacity: 0.95;
    margin-bottom: 8px;
}



.stat-label {
    margin-top: 10px;
    opacity: 0.95;
    font-weight: 600;
}

.blue {
    background: linear-gradient(135deg, #3b82f6, #38bdf8);
}

.red {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.gold {
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111;
}

.green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.custom-table thead th {
    border: 0 !important;
    color: #cbd5e1;
    font-weight: 700;
    white-space: nowrap;
}

.custom-table tbody td {
    border-color: rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.search-input {
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 14px;
    min-height: 46px;
}

.btn-refresh {
    min-height: 46px;
    border-radius: 14px;
    font-weight: 700;
}

.small-muted {
    color: rgba(255, 255, 255, 0.75);
}

.chart-box {
    position: relative;
    min-height: 340px;
}

.loading-box {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

@media (max-width: 768px) {
    .dash-wrap {
        padding: 14px;
    }

    .stat-number {
        font-size: 34px;
    }

    .chart-box {
        min-height: 280px;
    }
}


.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.page-head {
    padding: 24px;
}


.page-sub {
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}

.btn-main {
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
}

.btn-main:hover {
    transform: translateY(-1px);
}

.search-box {
    border: none;
    border-radius: 14px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.95);
}

.role-card {
    padding: 20px;
    height: 100%;
    transition: 0.25s ease;
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.role-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.action-btn {
    border-radius: 12px;
    padding: 6px 12px;
    font-weight: 700;
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.perm-chip {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.perm-on {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.25);
}

.perm-off {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.2);
}

.empty-box {
    padding: 40px;
    text-align: center;
    color: #fff;
}

.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-panel {
    width: 100%;
    max-width: 920px;
    max-height: 92vh;
    overflow: auto;
}

.modal-head {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-bodyx {
    padding: 22px;
}

.modal-foot {
    padding: 18px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.check-card {
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.check-card:hover {
    background: rgba(255, 255, 255, 0.08);
}


.alert {
    border-radius: 14px;
}

@media (max-width: 768px) {
    .page-wrap {
        padding: 14px;
    }

    .page-title {
        font-size: 1.5rem;
    }
}



.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.header-box {
    padding: 24px;
}



.search-input {
    min-height: 48px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
}



.shift-table thead th {
    background: transparent !important;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
}

.shift-table tbody td {
    padding: 16px;
    border-color: rgba(255, 255, 255, 0.06);
}

.shift-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.form-control,
.form-check-input {
    border-radius: 12px !important;
}

.form-control {
    min-height: 42px;
}

.save-btn {
    border-radius: 12px;
    font-weight: 700;
}

.user-name {
    font-weight: 700;
}

.user-mail {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}


.label-small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #16a34a;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
    .page-wrap {
        padding: 14px;
    }

    .page-title {
        font-size: 1.45rem;
    }
}

.settings-wrap {
    padding: 24px;
}




.side-menu {
    padding: 14px;
}

.menu-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    border-radius: 14px;
    margin-bottom: 8px;
    font-weight: 700;
    transition: 0.25s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-btn.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}




.btn-main:hover {
    transform: translateY(-1px);
}

.empty-box {
    text-align: center;
    padding: 40px;
    color: #fff;
}

.item-row {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.item-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.priority-card {
    padding: 18px;
    height: 100%;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.badge-soft {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.section-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
}

hr {
    border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .settings-wrap {
        padding: 14px;
    }

    .page-title {
        font-size: 1.45rem;
    }
}

.issues-wrap {
    max-width: 1400px;
    margin: auto;
    padding: 20px;
}




.form-control,
.form-select {
    min-height: 46px;
    border-radius: 12px;
}

.mobile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    color: #fff;
    cursor: pointer;
    border-radius: 18px;
}

.stat-tile {
    border-radius: 22px;
    padding: 18px;
    cursor: pointer;
    color: #fff;
    text-align: center;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
    transition: all 0.25s ease;
    height: 100%;
}

.stat-tile:hover {
    transform: translateY(-4px);
}

.table tbody tr {
    cursor: pointer;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
    .issues-wrap {
        padding: 12px;
    }
}

.logo-preview img {
    width: 250px;
}

/* ========================================
   CONSOLIDATED TEMPLATE STYLES
======================================== */
:root {
    --surface-1: rgba(15, 23, 42, 0.72);
    --surface-2: rgba(255, 255, 255, 0.08);
    --surface-3: rgba(255, 255, 255, 0.05);
    --stroke: rgba(255, 255, 255, 0.12);
    --stroke-soft: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.2);
    --shadow-lift: 0 22px 44px rgba(0, 0, 0, 0.24);
    --app-radius: 16px;
    --app-radius-lg: 20px;
}

body {
    color: #f8fafc;
    background:
        linear-gradient(135deg, rgba(1, 8, 20, 0.7), rgba(15, 23, 42, 0.58)),
        url("../img/bg.png") center/cover fixed no-repeat;
}

.page-wrap,
.dashboard-wrap,
.settings-wrap,
.issues-wrap,
.dash-wrap,
.sub-page,
.license-page,
.users-page,
.profile-wrap {
    width: min(100%, 1400px);
    margin-inline: auto;
    padding: 24px;
}

.sub-page {
    max-width: 1300px;
}

.license-page {
    max-width: 1200px;
}

.profile-wrap {
    max-width: 1100px;
}

.glass,
.glass-card,
.glass-box,
.table-box,
.table-card,
.table-wrap {
    background: var(--surface-2);
    border: 1px solid var(--stroke);
    border-radius: var(--app-radius-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.table-wrap,
.glass-box {
    padding: 18px;
}

.hero,
.hero-card,
.page-head,
.header-box {
    padding: 24px;
}

.hero-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(20, 184, 166, 0.14));
}

.hero-title,
.feature-title,
.section-title,
.role-name,
.page-title {
    color: #fff;
    font-weight: 800;
}

.hero-title {
    font-size: 2rem;
}

.hero h2 {
    margin: 0;
}

.hero p,
.hero-sub,
.page-sub,
.small-muted,
.stat-label,
.feature-text {
    color: rgba(248, 250, 252, 0.72);
}

.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.license-page .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.stat,
.stat-card,
.stat-tile,
.stat-box,
.mini-stat {
    color: #fff;
    border-radius: var(--app-radius-lg);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.stat,
.stat-card {
    padding: 20px;
}

.stat-card,
.stat-tile,
.stat-box,
.feature-card,
.role-card,
.template-card,
.user-card,
.issue-card,
.mobile-card,
.item-row {
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card,
.stat-tile,
.stat-box,
.feature-card,
.row-click,
.table tbody tr {
    cursor: pointer;
}

.stat-card:hover,
.stat-tile:hover,
.stat-box:hover,
.feature-card:hover,
.role-card:hover,
.template-card:hover,
.user-card:hover,
.issue-card:hover,
.mobile-card:hover,
.item-row:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-lift);
}

.stat-icon,
.feature-icon,
.tile-icon {
    font-size: 1.5rem;
}

.tile-value {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.tile-label {
    opacity: 0.95;
}

.stat-value,
.mini-num,
.num {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.license-page .stat h2 {
    font-size: 2.6rem;
    font-weight: 800;
}

.label,
.mini-label {
    font-weight: 600;
}

.blue,
.bg3,
.color-blue {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.green,
.bg2,
.color-green {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.red,
.bg4,
.color-red {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.gold,
.bg1,
.color-gold {
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111827;
}

.purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.section,
.info-box,
.user-card,
.issue-card,
.mobile-card,
.timeline-box,
.progress-box,
.quick-pill,
.template-card,
.item-row {
    background: var(--surface-3);
    border: 1px solid var(--stroke-soft);
    border-radius: var(--app-radius);
}

.section {
    margin-top: 20px;
    padding: 22px;
    color: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.info-box,
.user-card,
.issue-card,
.mobile-card,
.timeline-box {
    padding: 16px;
}

.info-title {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.info-value {
    margin-top: 6px;
    color: #fff;
    font-weight: 700;
    word-break: break-word;
}

.toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.empty,
.empty-box,
.loader-box {
    color: #cbd5e1;
    text-align: center;
}

.empty,
.empty-box {
    padding: 36px;
}

.loader-box {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box,
.search-input,
.form-control,
.form-select {
    min-height: 46px;
    border-radius: 12px;
}

.search-box,
.search-input {
    border: 0;
    background: rgba(255, 255, 255, 0.96);
}

.dropzone {
    cursor: pointer;
    border-style: dashed !important;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dropzone:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.sub-page .form-control,
.sub-page .form-select {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sub-page .form-select option {
    color: #111827;
}

.custom-table,
.table {
    color: #fff;
}

.custom-table thead th,
.table thead th,
.shift-table thead th {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.custom-table td,
.custom-table th,
.table tbody td,
.shift-table tbody td {
    border-color: rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.table tbody tr:hover,
.row-click:hover {
    background: rgba(255, 255, 255, 0.04);
}

.table-responsive {
    border-radius: var(--app-radius);
}

.plan-card {
    height: 100%;
    padding: 22px;
    border: 1px solid var(--stroke);
    border-radius: var(--app-radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.plan-feature {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card,
.role-card,
.priority-card {
    height: 100%;
    padding: 20px;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.quick-pill {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
}

.quick-btn {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 700;
}

.avatar,
.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
}

.avatar {
    width: 90px;
    height: 90px;
    margin: auto;
    color: #111827;
    font-size: 38px;
    background: linear-gradient(135deg, #facc15, #fb923c);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    color: #fff;
    font-size: 32px;
    background: #2563eb;
}

.info-line {
    color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-line a {
    color: #facc15;
}

.modal-backdrop-custom,
.drawer-backdrop,
.modal-scrim {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
}

.modal-box,
.drawer-box {
    width: 100%;
    padding: 24px;
}

.modal-box {
    max-width: 480px;
}

.drawer-box {
    max-width: 520px;
}

.modal-content,
.card {
    border-radius: var(--app-radius);
}

.timeline {
    position: relative;
    margin-left: 8px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 2px;
    background: rgba(255, 255, 255, 0.18);
}

.timeline-item {
    position: relative;
    padding-left: 38px;
    margin-bottom: 22px;
}

.timeline-dot {
    position: absolute;
    top: 10px;
    left: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.template-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(30, 41, 59, 0.92));
}

.template-card:hover {
    border-color: #0dcaf0;
}

.code-box {
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #0b1220;
}

.preview-box {
    min-height: 220px;
}

.pagination-wrap {
    font-size: 0.72rem;
}

.notif-menu {
    min-width: 320px;
}

.notif-menu-wide {
    min-width: 340px;
}

.is-hidden {
    display: none;
}

.install-btn {
    display: none;
}

.w-350 {
    width: 350px;
}

.mw-320 {
    max-width: 320px;
}

.mw-980 {
    max-width: 980px;
}

.logo-preview-sm {
    max-height: 80px;
}

.progress-thin {
    height: 8px;
}

.progress-slim {
    height: 10px;
}

.progress-medium {
    height: 12px;
}

.detail-modal-backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.chat-message-width {
    max-width: 78%;
}

.chat-message-narrow {
    max-width: 75%;
}

.chat-scroll-panel {
    max-height: 65vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #07122c, #0b1735);
}

.chat-bubble {
    word-break: break-word;
}

.chat-attachment {
    max-height: 260px;
    object-fit: cover;
    cursor: pointer;
}

.log-console {
    min-height: 420px;
    max-height: 420px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 12px;
    background: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
}

.cursor-pointer {
    cursor: pointer;
}

.dashboard-redirect-body {
    color: #fff;
    text-align: center;
    padding-top: 100px;
    font-family: Arial, sans-serif;
    background: #0f172a;
}

.animate-badge {
    animation: pulseBadge 0.6s ease;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.ims-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    min-width: 280px;
    max-width: 340px;
    padding: 14px 16px;
    color: #fff;
    cursor: pointer;
    background: #0d6efd;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-15px);
    transition: 0.4s;
}

.ims-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .ims-toast {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .page-wrap,
    .dashboard-wrap,
    .settings-wrap,
    .issues-wrap,
    .dash-wrap,
    .sub-page,
    .license-page,
    .users-page,
    .profile-wrap {
        padding: 14px;
    }

    .hero,
    .hero-card,
    .page-head,
    .header-box {
        padding: 18px;
    }

    .hero-title,
    .page-title {
        font-size: 1.45rem;
    }

    .stat-value,
    .stat-number {
        font-size: 1.45rem;
    }

    .license-page .stats-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .pagination-wrap button {
        width: 100px;
    }
}

/* ========================================
   RESPONSIVE LIST + PAGINATION PASS
======================================== */
.list-pagination,
.pagination-wrap,
.pager-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.pager-meta {
    color: rgba(248, 250, 252, 0.72);
    font-size: 0.9rem;
}

.pager-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pager-actions .btn,
.list-pagination .btn,
.pagination-wrap .btn {
    min-width: 88px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-table,
.table {
    table-layout: auto;
}

.custom-table td,
.custom-table th,
.table td,
.table th {
    overflow-wrap: anywhere;
}

.toolbar,
.filter-bar,
.header-box,
.page-head,
.glass-card .d-flex,
.glass-box .d-flex {
    min-width: 0;
}

.mobile-card,
.issue-card,
.user-card,
.template-card,
.role-card,
.plan-card,
.glass-box {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    html,
    body {
        background-attachment: scroll;
        overflow-x: hidden;
    }

    img.navlogo {
        width: 112px;
    }

    .navbar .container,
    .navbar .container-fluid {
        gap: 8px;
    }

    .navbar-nav {
        gap: 4px;
    }

    .header-box,
    .page-head,
    .dashboard-header,
    .glass-card > .d-flex.justify-content-between,
    .glass-box > .d-flex.justify-content-between {
        align-items: stretch !important;
        flex-direction: column;
    }

    .header-box .btn,
    .page-head .btn,
    .page-head .btn-main,
    .glass-card > .d-flex.justify-content-between .btn,
    .glass-box > .d-flex.justify-content-between .btn {
        width: 100%;
    }

    .modal-mask,
    .modal-scrim,
    .modal-backdrop-custom,
    .drawer-backdrop {
        align-items: flex-start;
        padding: 12px;
        overflow-y: auto;
    }

    .modal-panel,
    .modal-box,
    .drawer-box {
        max-height: none;
        width: 100%;
    }

    .modal-head,
    .modal-bodyx,
    .modal-foot {
        padding: 14px;
    }

    .list-pagination,
    .pagination-wrap,
    .pager-wrap {
        align-items: stretch;
        flex-direction: column;
    }

    .pager-actions,
    .pagination-wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .pager-actions .btn,
    .list-pagination .btn,
    .pagination-wrap .btn {
        width: 100%;
        min-width: 0;
    }

    .pager-meta {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .stat-card,
    .stat-box,
    .stat-tile,
    .stat {
        min-height: 112px;
        padding: 14px;
    }

    .pill-grid,
    .perm-grid {
        grid-template-columns: 1fr;
    }

    .d-flex.gap-2,
    .d-flex.gap-3,
    .d-flex.flex-wrap.gap-2,
    .d-flex.flex-wrap.gap-3 {
        min-width: 0;
    }
}

@media (max-width: 420px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .page-title,
    .hero-title,
    h2,
    h3 {
        font-size: 1.25rem;
    }

    .badge {
        white-space: normal;
    }
}
