@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #151932;
    --bg-card: #1a1f3a;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: rgba(99, 102, 241, 0.1);
    --sidebar-width: 240px;
    --header-height: 60px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    font-size: 14px;
}



.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 20s infinite ease-in-out;
}

.animated-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(80px, -40px) rotate(120deg);
    }

    66% {
        transform: translate(-40px, 80px) rotate(240deg);
    }
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    z-index: 10;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-logo {
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.logo-text h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0;
}

.sidebar-menu {
    padding: 15px 0;
}

.menu-section {
    margin-bottom: 20px;
    padding: 0 15px;
}

.menu-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 700;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.menu-item:hover::before,
.menu-item.active::before {
    transform: scaleY(1);
}

.menu-item i {
    font-size: 1rem;
    width: 20px;
}

.menu-badge {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
}

.header {
    position: fixed;
    left: var(--sidebar-width);
    top: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 11;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: left 0.3s ease;
}

.header.full-width {
    left: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.menu-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--accent-danger);
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--bg-card);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 20px;
    min-height: calc(100vh - var(--header-height));
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s ease;
}

.main-content.full-width {
    margin-left: 0;
}

.glass-card {
    background: rgba(26, 31, 58, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.glass-card:hover::before {
    opacity: 1;
}

.stat-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-change {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
}

.stat-change.positive {
    color: var(--accent-success);
}

.stat-change.negative {
    color: var(--accent-danger);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.action-btn {
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.action-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.chart-container {
    position: relative;
    height: 250px;
    padding: 15px;
}

.risk-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.risk-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(6px);
}

.risk-critical {
    border-left-color: var(--accent-danger);
}

.risk-high {
    border-left-color: var(--accent-warning);
}

.risk-medium {
    border-left-color: var(--accent-primary);
}

.risk-low {
    border-left-color: var(--accent-success);
}

.risk-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-high {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.task-item,
.policy-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-item:hover,
.policy-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    transform: translateX(6px);
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: 0.85rem;
}

.custom-table thead th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 12px;
    border: none;
}

.custom-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s;
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.005);
}

.custom-table tbody td {
    padding: 12px;
    border: none;
    vertical-align: middle;
}

.custom-table tbody tr td:first-child {
    border-radius: 10px 0 0 10px;
}

.custom-table tbody tr td:last-child {
    border-radius: 0 10px 10px 0;
}

.user-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    position: relative;
}

.status-online {
    background: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-offline {
    background: #475569;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.modern-badge {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    border-color: rgba(99, 102, 241, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.card-title-modern {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title-modern i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.compliance-meter {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.meter-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 15px;
    position: relative;
}

.meter-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-success), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--accent-primary);
    margin-bottom: 12px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7.5px;
    top: 18px;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.timeline-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 6px;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .header {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .search-bar {
        width: 200px;
    }

    .user-info {
        display: none;
    }
}

@media (max-width: 576px) {
    .search-bar {
        display: none;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

.breadcrumb-item+.breadcrumb-item::before {
    padding-right: 0px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    color: black;
}

.select2-container--default .select2-selection--single {
    background-color: transparent;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white;
}

.select2-results {
    color: black;
}

.pagination .page-link {
    border: none;
    transition: all 0.2s ease-in-out;
}

.pagination .page-link:hover:not(:disabled) {
    background-color: #0d6efd;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.pagination .page-item.disabled .page-link {
    background-color: #f1f1f1;
    color: #999;
    cursor: not-allowed;
}

.fotter_table {
    padding: 10px;
}

.fotter_table button {
    border: 1px solid white;
    padding: 3px 18px;
    border-radius: 10%;
    color: rgb(255, 255, 255);
}

.breadcrumb-item.active {
    color: white;
    font-weight: bold;
}

.breadcrumb-item a:hover {
    color: #0a58ca;
    text-decoration: underline;
    transform: translateY(-1px);
}
.modal-dialog{
    margin-bottom: 50px !important;
    margin-top: 50px !important;
}