.dashboard-card {
    background: rgba(245, 252, 251, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 35px rgba(80, 120, 125, 0.10);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.25s ease;
}

.dashboard-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.component-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.component-title i {
    color: var(--primary);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.teal {
    background: rgba(18, 130, 143, 0.12);
    color: var(--primary);
}

.stat-icon.green {
    background: rgba(118, 173, 47, 0.16);
    color: #679B25;
}

.stat-icon.orange {
    background: rgba(242, 176, 94, 0.18);
    color: #C27A20;
}

.stat-icon.pink {
    background: rgba(239, 159, 177, 0.18);
    color: #C85E75;
}

.stat-icon.purple {
    background: rgba(155, 140, 232, 0.16);
    color: #7667C5;
}

.stat-info {
    min-width: 0;
}

.stat-label {
    font-size: 0.74rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

.stat-hint {
    font-size: 0.73rem;
    color: var(--text-secondary);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(18, 130, 143, 0.10);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.chip i {
    font-size: 0.7rem;
}

.chip-purple {
    background: rgba(155, 140, 232, 0.14);
    color: #7667C5;
}

.chip-green {
    background: rgba(118, 173, 47, 0.14);
    color: #679B25;
}

.chip-plain {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #12828F, #1597A2);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex: 0 0 auto;
    box-shadow: 0 6px 16px rgba(18, 130, 143, 0.22);
}

.avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
}

.dropdown-menu {
    background: rgba(245, 252, 251, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(50, 80, 85, 0.18);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--text-main);
    padding: 0.55rem 0.8rem;
    transition: all 0.2s ease;
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(18, 130, 143, 0.08);
    color: var(--primary-dark);
}

.dropdown-header {
    padding: 0.5rem 0.8rem 0.35rem;
}

.dropdown-header-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.dropdown-header-sub {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.dropdown-divider {
    border-color: rgba(38, 53, 54, 0.08);
    opacity: 1;
    margin: 0.35rem 0.25rem;
}

.modal-content {
    background: rgba(245, 252, 251, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(50, 80, 85, 0.18);
}

.modal-header,
.modal-footer {
    border-color: rgba(38, 53, 54, 0.07);
}

.toast-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.toast {
    background: rgba(245, 252, 251, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(80, 120, 125, 0.18);
    color: var(--text-main);
    min-width: 300px;
    max-width: 380px;
    border-left: 4px solid transparent;
    overflow: hidden;
}

.toast .toast-body {
    font-size: 0.875rem;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
}

.toast-success {
    border-left-color: var(--accent-green);
}

.toast-success .toast-body i {
    color: #679B25;
}

.toast-danger {
    border-left-color: #E36D87;
}

.toast-danger .toast-body i {
    color: var(--danger);
}

.toast-warning {
    border-left-color: var(--accent-orange);
}

.toast-warning .toast-body i {
    color: #C27A20;
}

.toast-info {
    border-left-color: var(--primary);
}

.toast-info .toast-body i {
    color: var(--primary);
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(245, 252, 251, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(50, 80, 85, 0.18);
    padding: 2.5rem 2rem 2rem;
    animation: fadeUp 0.4s ease both;
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, #12828F, #1597A2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.75rem;
    box-shadow: 0 12px 28px rgba(18, 130, 143, 0.3);
}

.login-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
}

.input-icon {
    position: relative;
}

.input-icon > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
}

.input-icon .form-control {
    padding-left: 2.6rem;
}

.input-icon .toggle-password {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.input-icon .toggle-password:hover {
    color: var(--primary);
}

.login-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin: 1.5rem 0 0;
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.error-card {
    max-width: 460px;
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeUp 0.4s ease both;
}

.error-icon {
    font-size: 2.6rem;
    color: var(--accent-pink);
    margin-bottom: 0.5rem;
}

.error-code {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #12828F, #9B8CE8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.error-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.phase-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phase-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
}

.phase-list li > i {
    color: var(--text-secondary);
    width: 1.1rem;
    text-align: center;
    flex: 0 0 auto;
}

.phase-list .phase-name {
    flex: 1 1 auto;
    min-width: 0;
}

.kv-list {
    display: grid;
    grid-template-columns: minmax(120px, auto) 1fr;
    gap: 0.6rem 1.25rem;
    font-size: 0.875rem;
    margin: 0;
}

.kv-list dt {
    color: var(--text-secondary);
    font-weight: 500;
}

.kv-list dd {
    margin: 0;
    font-weight: 500;
    color: var(--text-main);
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 2.6rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    opacity: 0.85;
}

.empty-state-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.empty-state-text {
    font-size: 0.85rem;
    max-width: 420px;
    margin: 0 auto 1rem;
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.5));
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 10px;
}

.spinner-soft {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 3px solid rgba(18, 130, 143, 0.15);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.dapur-pill-btn {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.dapur-pill-caret {
    font-size: 0.62rem;
    margin-left: 0.1rem;
}

.dapur-switch-menu {
    min-width: 280px;
    max-height: 60vh;
    overflow-y: auto;
}

.dapur-switch-menu .dropdown-item {
    white-space: normal;
}

.page-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.toolbar-field {
    min-width: 160px;
}

.toolbar-field .form-control,
.toolbar-field .form-select {
    min-width: 160px;
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.perm-group {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.perm-group-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.perm-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border-radius: 8px;
    padding: 0.28rem 0.5rem;
}

.perm-check:hover {
    background: rgba(18, 130, 143, 0.06);
}

.perm-check .form-check-input {
    margin-top: 0.18rem;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.matrix-table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.matrix-table thead th {
    background: rgba(18, 130, 143, 0.08);
    color: var(--primary-dark);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding: 0.65rem 0.85rem;
}

.matrix-table tbody td {
    border-bottom: 1px solid rgba(38, 53, 54, 0.05);
    padding: 0.65rem 0.85rem;
}

.matrix-table tbody tr:last-child td {
    border-bottom: none;
}

.table-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(80, 120, 125, 0.15);
    flex: 0 0 auto;
}

.list-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.list-action:hover {
    background: #ffffff;
    color: var(--primary-dark);
    transform: translateX(2px);
}

.list-action > i:first-child {
    color: var(--primary);
    width: 1.1rem;
    text-align: center;
}

.list-action > .ms-auto {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.activity-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 0.45rem;
    flex: 0 0 auto;
}

.activity-text {
    font-size: 0.85rem;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #E36D87;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(227, 109, 135, 0.4);
}

.notif-menu {
    padding: 0;
    overflow: hidden;
}

.notif-dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(38, 53, 54, 0.05);
    color: var(--text-secondary);
    transition: background 0.2s ease;
}

.notif-dropdown-item:last-child {
    border-bottom: none;
}

.notif-dropdown-item:hover {
    background: rgba(18, 130, 143, 0.06);
    color: var(--text-main);
}

.notif-dropdown-item.notif-unread {
    background: rgba(18, 130, 143, 0.05);
    border-left: 3px solid var(--primary);
}

.notif-list {
    display: flex;
    flex-direction: column;
}

.notif-item {
    display: flex;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(38, 53, 54, 0.06);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item.notif-unread {
    background: rgba(18, 130, 143, 0.05);
    border-left: 3px solid var(--primary);
}

.notif-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: var(--radius-sm);
    background: rgba(18, 130, 143, 0.10);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-body {
    flex: 1 1 auto;
    min-width: 0;
}

.notif-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.3rem;
}

.alert-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-sm);
}

.alert-row > .status-warning,
.alert-row > .status-danger {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
    align-items: center;
    flex: 0 0 30px;
    font-size: 0.8rem;
}

.chart-wrap {
    position: relative;
    height: 300px;
}

.fade-up {
    animation: fadeUp 0.35s ease both;
}
