.btn-primary,
.bg-primary,
.text-primary {
    background-color: #e91e63 !important;
    border-color: #e91e63 !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #d81b60 !important;
    border-color: #d81b60 !important;
}

.btn-outline-primary {
    color: #fff !important;
    border-color: #e91e63 !important;
    background-color: #e91e63 !important;
}

.btn-outline-primary:hover {
    background-color: #d81b60 !important;
    border-color: #d81b60 !important;
    color: #fff !important;
}

header .navbar,
footer {
    background-color: grey !important;
    color: #fff !important;
}

header .navbar .nav-link {
    color: #fff !important;
}

header .navbar .nav-link:hover {
    color: #fff !important;
}

footer,
footer small {
    color: #fff !important;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

i.bi {
    vertical-align: middle;
}

.stat-card {
    background: #fff;
    border-radius: 14px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    height: 160px !important;
    padding: 18px 0 !important;
    transition: box-shadow .2s ease;
}

.stat-card:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
}

.stat-card i {
    margin-bottom: 6px;
}

.stat-card h6 {
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #666;
}

.stat-card h2 {
    margin-top: 6px;
    font-size: 1.9rem;
    font-weight: 700;
}

.stat-row,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card.color-blue {
    background: linear-gradient(135deg, #3f8cff, #6ba8ff);
    color: #fff !important;
}

.stat-card.color-pink {
    background: linear-gradient(135deg, #ff4f8b, #ff7ab3);
    color: #fff !important;
}

.stat-card.color-gold {
    background: linear-gradient(135deg, #ffb547, #ffd479);
    color: #fff !important;
}

.stat-card.color-green {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #fff !important;
}

.stat-card.color-blue h6,
.stat-card.color-pink h6,
.stat-card.color-gold h6,
.stat-card.color-green h6 {
    color: #fff !important;
}

.stat-card.color-blue i,
.stat-card.color-pink i,
.stat-card.color-gold i,
.stat-card.color-green i {
    color: #fff !important;
}


.table-wrapper {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
    margin-top: 20px;
}

table thead {
    background: #f8f9fa !important;
}

table th {
    font-weight: 600 !important;
    padding: 12px;
    white-space: nowrap;
}

table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.truncate {
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.search-input {
    padding-left: 36px !important;
    height: 38px !important;
    border-radius: 6px !important;
    border: 1px solid #c8ccd2;
    font-size: 0.9rem;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #777;
    pointer-events: none;
}

.filter-btn {
    height: 38px !important;
    border-radius: 6px !important;
    padding: 0 14px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-control {
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    height: 38px !important;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px !important;
    font-size: 0.75rem;
}

.btn-icon-only {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border-radius: 6px !important;
}

.modal-content {
    border-radius: 14px !important;
}

.modal-header {
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-weight: 600;
}

.pagination .page-link {
    border-radius: 6px !important;
    font-size: 0.85rem;
}

.pagination .page-item.active .page-link {
    background-color: #e91e63 !important;
    border-color: #e91e63 !important;
}

.admin-footer {
    background-color: #1e1f22;
    color: #fff !important;
    border-top: 1px solid #2b2d31;
    font-size: 0.9rem;
}

.admin-footer small {
    color: #fff !important;
}

.checkmark {
    width: 80px;
    height: 80px;
    stroke: #28a745;
    stroke-width: 4;
    stroke-miterlimit: 10;
    margin: auto;
    animation: scaleUp 0.6s ease-out forwards;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke: #28a745;
    fill: none;
    animation: stroke 0.6s cubic-bezier(.65, .05, .36, 1) forwards;
}

.checkmark__check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(.65, .05, .36, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scaleUp {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.status-progress {
    height: 8px !important;
    border-radius: 6px !important;
    overflow: hidden;
    background-color: #e9ecef;
}

.chart-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.filter-box {
    background: #fff !important;
    border-radius: 14px !important;
    padding: 22px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 22px !important;
}

.server-status-container {
    animation: fadeIn 0.4s ease;
}

.ss-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid #f1f1f3;
}

.ss-card h4 {
    font-weight: 700;
    margin-top: 6px;
}

.ss-title {
    font-size: 15px;
    font-weight: 600;
    color: #555;
}

.ss-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    margin: 0 auto 10px auto;
}

.ss-icon.cpu {
    background: #0d6efd;
}

.ss-icon.ram {
    background: #198754;
}

.ss-icon.disk {
    background: #ffc107;
    color: #000;
}

.ss-icon.internet {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.ss-icon.uptime {
    background: linear-gradient(135deg, #673ab7, #512da8);
}

.ss-icon.app {
    background: linear-gradient(135deg, #ff5722, #e64a19);
}

.ss-progress {
    height: 8px;
    background: #eaeaea;
    border-radius: 50px;
    overflow: hidden;
    margin: 12px 0;
}

.ss-progress-bar {
    height: 100%;
    border-radius: 50px;
    transition: width 0.4s ease;
}

.ss-system-table td {
    padding: 10px 4px;
    font-size: 15px;
}

.ss-system-table td:first-child {
    font-weight: 600;
    color: #444;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-thumb.video {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.media-thumb:hover {
    opacity: 0.8;
}