/* Digicloud Dedicated Server Manager — digicloud.css
   Version: 3.0.0 | Author: Digicloud
   Bilingual RTL/LTR styles with Vazirmatn font support */

/* ============================================================
   LANGUAGE-AWARE FONT STACKS
   ============================================================ */
.dg-addon-wrapper.dg-lang-fa,
.dg-addon-wrapper.dg-lang-fa * {
    font-family: 'Vazirmatn', Tahoma, 'Segoe UI', Arial, sans-serif;
}
.dg-addon-wrapper.dg-lang-en,
.dg-addon-wrapper.dg-lang-en * {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}
.dg-module,
.dg-module * {
    font-family: inherit !important;
}

/* ============================================================
   RTL WRAPPER
   ============================================================ */
.dg-rtl {
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
}

.dg-ltr {
    direction: ltr;
    text-align: left;
    unicode-bidi: embed;
}

/* ============================================================
   MODULE CONTAINER
   ============================================================ */
.dg-module {
    padding: 15px;
    max-width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.dg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}
.dg-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dg-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ============================================================
   LOGO
   ============================================================ */
.dg-logo {
    height: 32px;
    vertical-align: middle;
    margin-left: 8px;
}

/* ============================================================
   ALERT BANNERS
   ============================================================ */
.dg-alert {
    border-radius: 6px;
    padding: 12px 16px;
    margin: 8px 0;
    direction: inherit;
    text-align: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dg-alert i,
.dg-alert .fa {
    font-size: 16px;
    flex-shrink: 0;
}
.dg-alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}
.dg-alert-danger {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}
.dg-alert-info {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}
.dg-alert-success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

/* ============================================================
   KPI CARDS
   ============================================================ */
.dg-kpi-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.dg-kpi-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
    flex: 1;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}
.dg-kpi-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.dg-kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 10px 10px 0;
}
.dg-kpi-card.kpi-primary::after { background: #007bff; }
.dg-kpi-card.kpi-success::after { background: #28a745; }
.dg-kpi-card.kpi-warning::after { background: #ffc107; }
.dg-kpi-card.kpi-danger::after { background: #dc3545; }
.dg-kpi-card.kpi-info::after { background: #17a2b8; }
.dg-kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 8px 0;
    line-height: 1.2;
}
.dg-kpi-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
}
.dg-kpi-trend {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 6px;
}
.dg-kpi-trend.trend-up {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}
.dg-kpi-trend.trend-down {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}
.dg-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}
.dg-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* ============================================================
   TAB CONTENT AREA
   ============================================================ */
.dg-tab-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}
.dg-module .nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0;
}
.dg-module .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: -2px;
}
.dg-module .nav-tabs .nav-link:hover {
    color: #2c3e50;
    border-bottom-color: #adb5bd;
}
.dg-module .nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: transparent;
}

/* ============================================================
   TABLES RTL OVERRIDE
   ============================================================ */
.dg-module .table th,
.dg-module .table td {
    text-align: inherit;
    vertical-align: middle;
}
.dg-module .table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    white-space: nowrap;
}
.dg-module .table-hover tbody tr:hover {
    background: #f1f5f9;
}
.dg-module .table-striped tbody tr:nth-of-type(odd) {
    background: #fafbfc;
}
.dg-table-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}
.dg-table-actions .btn {
    padding: 3px 8px;
    font-size: 12px;
}

/* ============================================================
   NOVNC / KVM CONTAINER
   ============================================================ */
.dg-kvm-container {
    width: 100%;
    min-height: 600px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.dg-kvm-toolbar {
    direction: inherit;
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #1a1a2e;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
    align-items: center;
}
.dg-kvm-toolbar .btn {
    font-size: 12px;
    padding: 4px 10px;
}
.dg-kvm-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #adb5bd;
    font-size: 12px;
    margin-right: auto;
}
.dg-kvm-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dg-kvm-status .dot.connected { background: #28a745; }
.dg-kvm-status .dot.disconnected { background: #dc3545; }

/* ============================================================
   DEBUG BAR
   ============================================================ */
.dg-debug-bar {
    background: #1a1a2e;
    color: #e94560;
    font-size: 11px;
    padding: 4px 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: inherit;
}
.dg-debug-bar a {
    color: #a8d8ea;
    text-decoration: underline;
}

/* ============================================================
   MODAL RTL FIXES
   ============================================================ */
.dg-module .modal-header,
.dg-module .modal-body,
.dg-module .modal-footer {
    direction: inherit;
    text-align: inherit;
}
.dg-module .modal-header .close {
    margin: -1rem auto -1rem -1rem;
}
.dg-module .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.dg-module .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 16px 20px;
}
.dg-module .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 12px 20px;
}

/* ============================================================
   FORM RTL
   ============================================================ */
.dg-module .form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}
.dg-module .form-control {
    direction: inherit;
    text-align: inherit;
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dg-module .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}
.dg-module select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    padding-left: 30px;
}
.dg-module textarea.form-control {
    min-height: 100px;
    resize: vertical;
}
.dg-form-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* ============================================================
   PACKAGE CARDS
   ============================================================ */
.dg-package-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    height: 100%;
    position: relative;
}
.dg-package-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0,123,255,0.15);
}
.dg-package-card.selected {
    border-color: #28a745;
    background: #f0fff4;
}
.dg-package-card.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free', 'FontAwesome' !important;
    font-weight: 900;
    position: absolute;
    top: 10px;
    left: 10px;
    color: #28a745;
    font-size: 16px;
}
.dg-package-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}
.dg-package-price {
    font-size: 22px;
    font-weight: 700;
    color: #007bff;
    margin: 12px 0;
}
.dg-package-price small {
    font-size: 13px;
    font-weight: 400;
    color: #6c757d;
}
.dg-package-features {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-size: 13px;
    color: #495057;
    text-align: right;
}
.dg-package-features li {
    padding: 4px 0;
    border-bottom: 1px solid #f1f1f1;
}
.dg-package-features li:last-child {
    border-bottom: none;
}

/* ============================================================
   DRAG HANDLE
   ============================================================ */
.dg-drag-handle {
    cursor: grab;
    color: #adb5bd;
    font-size: 18px;
    padding: 4px 8px;
}
.dg-drag-handle:active {
    cursor: grabbing;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.dg-status-active { color: #28a745; }
.dg-status-inactive { color: #6c757d; }
.dg-status-error { color: #dc3545; }
.dg-status-expired { color: #6c757d; }
.dg-status-suspended { color: #ffc107; }

.dg-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.dg-badge-success {
    background: rgba(40,167,69,0.12);
    color: #28a745;
}
.dg-badge-danger {
    background: rgba(220,53,69,0.12);
    color: #dc3545;
}
.dg-badge-warning {
    background: rgba(255,193,7,0.18);
    color: #856404;
}
.dg-badge-info {
    background: rgba(23,162,184,0.12);
    color: #0c5460;
}
.dg-badge-secondary {
    background: rgba(108,117,125,0.12);
    color: #6c757d;
}

/* ============================================================
   LOG LEVEL COLORS
   ============================================================ */
.dg-log-debug { background: #e9ecef; color: #495057; }
.dg-log-info { background: #d1ecf1; color: #0c5460; }
.dg-log-warning { background: #fff3cd; color: #856404; }
.dg-log-error { background: #f8d7da; color: #721c24; }
.dg-log-critical { background: #721c24; color: #fff; }

/* ============================================================
   CHART CONTAINERS
   ============================================================ */
.dg-chart-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.dg-chart-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    min-height: 300px;
    flex: 1;
    min-width: 300px;
    position: relative;
}
.dg-chart-card h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dg-chart-card h5 .chart-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: #adb5bd;
}
.dg-chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #adb5bd;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.dg-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    min-width: 300px;
    max-width: 500px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    animation: dg-fadeIn 0.3s ease;
    direction: inherit;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.dg-toast-success { background: #28a745; }
.dg-toast-error { background: #dc3545; }
.dg-toast-warning { background: #ffc107; color: #333; }
.dg-toast-info { background: #17a2b8; }

@keyframes dg-fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes dg-fadeOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
.dg-toast.dg-toast-hide {
    animation: dg-fadeOut 0.3s ease forwards;
}

/* ============================================================
   PROGRESS BAR IN RTL
   ============================================================ */
.dg-rtl .progress {
    direction: ltr;
}
.dg-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.dg-btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    font-size: 13px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
}
.dg-btn-primary {
    background: #007bff;
    color: #fff;
}
.dg-btn-primary:hover {
    background: #0056b3;
    color: #fff;
}
.dg-btn-success {
    background: #28a745;
    color: #fff;
}
.dg-btn-success:hover {
    background: #1e7e34;
    color: #fff;
}
.dg-btn-danger {
    background: #dc3545;
    color: #fff;
}
.dg-btn-danger:hover {
    background: #bd2130;
    color: #fff;
}
.dg-btn-outline {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #495057;
}
.dg-btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}
.dg-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}
.dg-btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}
.dg-btn:disabled,
.dg-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   LOADING / SPINNER
   ============================================================ */
.dg-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: dg-spin 0.6s linear infinite;
}
.dg-spinner-sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
}
.dg-spinner-lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}
@keyframes dg-spin {
    to { transform: rotate(360deg); }
}
.dg-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.dg-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #adb5bd;
}
.dg-empty-state i,
.dg-empty-state .fa {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}
.dg-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ============================================================
   PAGINATION RTL
   ============================================================ */
.dg-module .pagination {
    direction: inherit;
    justify-content: center;
    gap: 4px;
}
.dg-module .pagination .page-link {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 6px 12px;
    font-size: 13px;
}
.dg-module .pagination .page-item.active .page-link {
    background: #007bff;
    border-color: #007bff;
}

/* ============================================================
   SIDEBAR / SETTINGS PANEL
   ============================================================ */
.dg-settings-group {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.dg-settings-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}
.dg-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}
.dg-settings-row:last-child {
    border-bottom: none;
}

/* ============================================================
   TOGGLE SWITCH
   ============================================================ */
.dg-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.dg-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.dg-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ced4da;
    border-radius: 24px;
    transition: 0.2s;
}
.dg-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
.dg-toggle input:checked + .dg-toggle-slider {
    background: #28a745;
}
.dg-toggle input:checked + .dg-toggle-slider::before {
    transform: translateX(20px);
}

/* ============================================================
   TOOLTIP CUSTOM
   ============================================================ */
.dg-tooltip {
    position: relative;
    display: inline-block;
}
.dg-tooltip .dg-tooltip-text {
    visibility: hidden;
    background: #2c3e50;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}
.dg-tooltip:hover .dg-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ============================================================
   SERVER LIST CARD
   ============================================================ */
.dg-server-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s;
}
.dg-server-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.dg-server-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}
.dg-server-card-body {
    flex: 1;
    min-width: 0;
}
.dg-server-card-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dg-server-card-meta {
    font-size: 12px;
    color: #6c757d;
}

/* ============================================================
   TIMELINE / ACTIVITY LOG
   ============================================================ */
.dg-timeline {
    position: relative;
    padding-right: 24px;
}
.dg-timeline::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}
.dg-timeline-item {
    position: relative;
    padding: 0 24px 20px 0;
}
.dg-timeline-item::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e9ecef;
}
.dg-timeline-item .time {
    font-size: 11px;
    color: #adb5bd;
}
.dg-timeline-item .content {
    font-size: 13px;
    color: #495057;
}

/* ============================================================
   SEARCH / FILTER BAR
   ============================================================ */
.dg-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.dg-filter-bar .form-control {
    max-width: 250px;
}
.dg-search-input {
    position: relative;
}
.dg-search-input input {
    padding-right: 36px;
}
.dg-search-input i,
.dg-search-input .fa {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

/* ============================================================
   JSON VIEWER
   ============================================================ */
.dg-json-viewer {
    background: #1a1a2e;
    color: #a8d8ea;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace !important;
    font-size: 12px;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.5;
}
.dg-json-viewer .json-key { color: #e94560; }
.dg-json-viewer .json-string { color: #a8d8ea; }
.dg-json-viewer .json-number { color: #f9ed69; }
.dg-json-viewer .json-boolean { color: #f38181; }
.dg-json-viewer .json-null { color: #6c757d; }

/* ============================================================
   CODE / COMMAND BLOCK
   ============================================================ */
.dg-code-block {
    background: #1a1a2e;
    color: #e9ecef;
    padding: 12px 16px;
    border-radius: 6px;
    font-family: 'Courier New', monospace !important;
    font-size: 13px;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    position: relative;
}
.dg-code-block .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.1);
    color: #adb5bd;
    border: none;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
}
.dg-code-block .copy-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ============================================================
   SCROLLBAR CUSTOM
   ============================================================ */
.dg-module ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.dg-module ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.dg-module ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
.dg-module ::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ============================================================
   HEATMAP CONTAINER
   ============================================================ */
.dg-heatmap-container {
    overflow-x: auto;
    direction: ltr;
}
.dg-heatmap-container canvas {
    display: block;
    margin: 0 auto;
}

/* ============================================================
   AI REPORT SECTION
   ============================================================ */
.dg-ai-report {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 1px solid #b8d4fe;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.dg-ai-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.dg-ai-report-header h5 {
    font-size: 15px;
    font-weight: 600;
    color: #1a56db;
    margin: 0;
}
.dg-ai-report-content {
    font-size: 13px;
    line-height: 1.8;
    color: #2c3e50;
    white-space: pre-line;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .dg-kpi-row {
        flex-direction: column;
    }
    .dg-chart-row {
        flex-direction: column;
    }
    .dg-chart-card {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .dg-kpi-value { font-size: 20px; }
    .dg-kvm-container { min-height: 400px; }
    .dg-kvm-toolbar { flex-direction: column; }
    .dg-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .dg-filter-bar {
        flex-direction: column;
    }
    .dg-filter-bar .form-control {
        max-width: 100%;
    }
    .dg-server-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dg-module {
        padding: 8px;
    }
    .dg-kpi-card {
        padding: 14px;
    }
    .dg-chart-card {
        padding: 12px;
        min-height: 250px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .dg-debug-bar,
    .dg-kvm-toolbar,
    .dg-toast,
    .dg-header-actions,
    .dg-filter-bar,
    .dg-btn { display: none !important; }

    .dg-module {
        padding: 0;
    }
    .dg-kpi-card,
    .dg-chart-card,
    .dg-tab-content {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    .dg-kpi-card:hover {
        transform: none;
    }
}

/* ============================================================
   TRANSITION UTILITIES
   ============================================================ */
.dg-fade-in {
    animation: dg-fadeIn 0.3s ease;
}
.dg-slide-up {
    animation: dg-slideUp 0.3s ease;
}
@keyframes dg-slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SORTABLEJS GHOST/CHOSEN CLASSES
   ============================================================ */
.dg-sortable-ghost {
    opacity: 0.3;
    background: #e9ecef !important;
}
.dg-sortable-chosen {
    background: #f0f4ff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.dg-sortable-drag {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
