/* Custom CSS for LiteBans Web Interface to match Shring Hub theme */
:root {
    --primary-color: #A855F7; /* Updated vibrant purple */
    --primary-hover: #9333EA; /* Updated darker purple for hover */
    --accent-color: #FCD34D; /* Updated brighter yellow */
    --white-color: #FFFFFF;
    --text-color: #E5E7EB; /* Updated light grey for readability */
    --background-dark: transparent; /* Remove grey, rely on background image */
    --card-background: rgba(17, 24, 39, 0.8); /* Semi-transparent dark for cards */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --copy-ip-bg: rgba(168, 85, 247, 0.1); /* Adjusted for new primary color */
    --join-btn-bg: rgba(252, 211, 77, 0.1); /* Adjusted for new accent color */
    --ip-copied-bg: rgba(34, 197, 94, 0.1);
    --warning-bg: rgba(239, 68, 68, 0.1);
    --red-color: #EF4444;
    --green-color: #22C55E;
    --stat-icon-bg-1: rgba(168, 85, 247, 0.4);
    --stat-icon-bg-2: rgba(168, 85, 247, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: url("https://shring.net/images/header-background.jpg") no-repeat fixed center;
    background-size: cover;
    color: var(--text-color);
    min-height: 100vh;
}

/* Remove the gradient animation since we're using a background image */
@keyframes gradientAnimation {
    /* No longer needed */
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.custom-cursor.active {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.95); /* Updated to match card background */
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 150px;
    z-index: 9999;
    box-shadow: var(--shadow);
}

.navbar .menu-mobile {
    display: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar .menu-mobile .logo .server-name {
    color: var(--white-color);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.navbar .menu-mobile .hamburger {
    font-size: 26px;
    color: var(--white-color);
    cursor: pointer;
}

.navbar .links-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.navbar .litebans-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-grow: 1;
}

.navbar .shring-links {
    display: flex;
    gap: 32px;
    justify-content: flex-end;
}

.navbar .litebans-links .link,
.navbar .shring-links .link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    transition: 0.3s ease;
    position: relative;
}

.navbar .litebans-links .link:hover,
.navbar .shring-links .link:hover {
    color: var(--primary-color);
}

.navbar .litebans-links .link.active,
.navbar .shring-links .link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.navbar .litebans-links .badge {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* Header */
#header {
    position: relative;
    background: transparent; /* Rely on body background image */
    min-width: 100%;
    min-height: 500px;
    height: 40vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

#header .content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 150px;
    width: 100%;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

#header .content .info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#header .content .info .title {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 65px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Improve readability */
}

#header .content .info .title span {
    color: var(--primary-color);
}

#header .content .info .minecraft-server-ip {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#header .content .info .description {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Navigation Buttons Section */
#navigation {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 60px 150px;
}

#navigation .content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#navigation .nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

#navigation .nav-btn {
    background: var(--copy-ip-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 24px;
    color: var(--white-color);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: var(--shadow);
}

#navigation .nav-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.3), 0 0 15px rgba(168, 85, 247, 0.5);
}

/* Recent Bans Section */
#recent-bans {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 60px 150px;
}

#recent-bans .content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#recent-bans .section-title {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#recent-bans .view-more {
    text-align: center;
    margin-top: 24px;
}

/* Sections (Bans, Mutes, Warnings, Kicks, History, Info, Check) */
#bans, #mutes, #warnings, #kicks, #history, #info, #check {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 60px 150px;
}

#bans .content, #mutes .content, #warnings .content, #kicks .content, #history .content, #info .content, #check .content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-color);
    background: var(--background-dark);
    border-radius: 8px;
    overflow: hidden;
}

.table td, .table th {
    padding: 12px;
    vertical-align: middle;
    border: 1px solid rgba(229, 231, 235, 0.2); /* Adjusted for better contrast */
}

.table thead th {
    vertical-align: bottom;
    background: var(--primary-color);
    color: var(--white-color);
    border-bottom: 2px solid rgba(229, 231, 235, 0.2);
}

.table tbody tr {
    transition: 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(168, 85, 247, 0.1);
    transform: scale(1.005);
}

/* Avatars */
.avatar-name, .avatar-name-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 25px;
    height: 25px;
    image-rendering: pixelated;
}

.avatar-name a, .avatar-name-left a {
    color: var(--primary-color);
    text-decoration: none;
}

.avatar-name a:hover, .avatar-name-left a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Badges */
.badge {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
}

/* Buttons */
.btn {
    background: var(--copy-ip-bg);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--white-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: var(--shadow);
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.3), 0 0 15px rgba(168, 85, 247, 0.5);
}

/* Form */
.form-inline {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.form-control {
    background: var(--background-dark);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
    outline: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    list-style: none;
}

.page-item {
    display: inline-block;
}

.page-link {
    background: var(--background-dark);
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.page-link:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.3), 0 0 15px rgba(168, 85, 247, 0.5);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    background: var(--background-dark);
    color: var(--text-color);
    opacity: 0.5;
    pointer-events: none;
    border-color: var(--primary-color);
    box-shadow: none;
}

.page-count {
    background: var(--card-background);
    border: 2px solid var(--primary-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Responsive */
@media screen and (max-width: 991px) {
    #header, #navigation, #recent-bans, #bans, #mutes, #warnings, #kicks, #history, #info, #check {
        padding: 80px 90px;
    }
    .navbar {
        padding: 24px 90px;
    }
}

@media screen and (max-width: 767px) {
    #header, #navigation, #recent-bans, #bans, #mutes, #warnings, #kicks, #history, #info, #check {
        padding: 60px 20px;
    }
    #header {
        height: 50vh;
    }
    #header .content {
        padding: 60px 20px;
    }
    #header .content .info .title {
        font-size: 48px;
    }
    .navbar {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar .menu-mobile {
        display: flex;
    }
    .navbar .links-container {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        padding: 16px 0;
        display: none;
    }
    .navbar .links-container.active {
        display: flex;
    }
    .navbar .litebans-links,
    .navbar .shring-links {
        flex-direction: column;
        gap: 16px;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .navbar .litebans-links .link,
    .navbar .shring-links .link {
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    #navigation .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 479px) {
    #header, #navigation, #recent-bans, #bans, #mutes, #warnings, #kicks, #history, #info, #check {
        padding: 40px 20px;
    }
    #header .content .info .title {
        font-size: 36px;
    }
}