:root {
    --ca-bg: #f3f5f9;
    --ca-surface: #ffffff;
    --ca-border: #e4e8ee;
    --ca-text: #243447;
    --ca-muted: #6b7785;
    --ca-primary: #0d6efd;
    --ca-shadow: 0 8px 24px rgba(26, 39, 68, 0.08);
}

html {
    font-size: 15px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    height: 100%;
    background: var(--ca-bg);
    color: var(--ca-text);
}

main {
    min-height: calc(100vh - 74px);
    padding-bottom: 1.5rem;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.18);
}

.control-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #304255;
}

.app-shell {
    max-width: 1320px;
}

.page-card {
    background: var(--ca-surface);
    border: 1px solid var(--ca-border);
    border-radius: 0.85rem;
    box-shadow: var(--ca-shadow);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.table-container {
    border: 1px solid var(--ca-border);
    border-radius: 0.7rem;
    overflow: hidden;
}

.table thead th {
    background: #f8fafc;
    font-weight: 600;
    border-bottom: 1px solid var(--ca-border);
}

.table td {
    vertical-align: middle;
}

th a {
    text-decoration: none;
    color: inherit;
}

.navbar.app-navbar {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.app-navbar .nav-link {
    border-radius: 0.45rem;
    padding: 0.45rem 0.7rem;
    margin-right: 0.15rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.app-navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.16);
}

.app-navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.24);
    font-weight: 600;
}

.app-navbar .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.app-navbar .dropdown-item.active {
    background: rgba(13, 110, 253, 0.5);
    color: #fff;
}

.container.login {
    max-width: 500px;
}

.w-actions {
    width: 140px;
}

.center-table-outter {
    display: table;
    height: 100%;
    width: 100%;
}

.center-table-inner {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.page-loader {
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: all .2s ease;
    opacity: 0;
    z-index: -1;
}

.page-loader.loader-cmp {
    position: absolute;
    display: flex;
    text-align: center;
    justify-content: center;
    vertical-align: middle;
    align-items: center;
}

.page-loader.active {
    opacity: 1;
    z-index: 2000;
}

.preloader .preloader-wrapper {
    margin-bottom: 8px;
}

.auth-wrapper {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid var(--ca-border);
    border-radius: 1rem;
    box-shadow: var(--ca-shadow);
    padding: 1.5rem;
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--ca-muted);
    margin-bottom: 1.25rem;
}

.action-btn {
    min-width: 2.2rem;
}

.action-btn-edit {
    color: #0f5132;
    border-color: #75b798;
}

.action-btn-edit:hover {
    color: #fff;
    background: #198754;
    border-color: #198754;
}

.action-btn-delete {
    color: #842029;
    border-color: #ea868f;
}

.action-btn-delete:hover {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
}

.action-btn-link {
    color: #084298;
    border-color: #6ea8fe;
}

.action-btn-link:hover {
    color: #fff;
    background: #0d6efd;
    border-color: #0d6efd;
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--ca-muted);
}