/* 
 * InVideoGames Premium Theme
 * Dark Mode & Glassmorphism 
 */

:root {
    --primary-color: #7b2cbf;
    /* Richer Purple */
    --primary-hover: #9d4edd;
    --secondary-color: #c77dff;
    --accent-color: #e0aaff;
    --success-color: #00b894;
    --info-color: #0984e3;
    --warning-color: #fdcb6e;
    --danger-color: #ff7675;
    --dark-bg: #10002b;
    /* Deep Purple Black */
    --card-bg: rgba(36, 0, 70, 0.4);
    /* Glass Purple */
    --text-color: #e0aaff;
    --text-muted: #c77dff;
    /* Lighter purple text */
    --navbar-bg: rgba(16, 0, 43, 0.95);
    --border-color: rgba(157, 78, 221, 0.2);
}

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.15), transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 206, 201, 0.1), transparent 20%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c5ce7' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #2d3436;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.text-white {
    color: #fff !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff !important;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
    letter-spacing: -1px;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
}

.nav-link i {
    margin-right: 5px;
    color: var(--accent-color);
}

/* Glassmorphism Cards */
.card {
    background: var(--card-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color) !important;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    margin-bottom: 24px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(108, 92, 231, 0.4) !important;
}

.card-header {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1.5rem;
    font-weight: 600;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid var(--border-color) !important;
}

/* Hero Section */
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(60, 9, 108, 0.95), rgba(36, 0, 70, 0.9)),
        url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    padding: 6rem 2rem;
    /* More breathing room */
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(123, 44, 191, 0.3);
    text-align: center;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    color: #dfe6e9;
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #8e44ad) !important;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.6);
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), #00cec9) !important;
    box-shadow: 0 4px 20px rgba(0, 184, 148, 0.4);
    color: white !important;
}

.btn-danger {
    background: linear-gradient(45deg, var(--danger-color), #d63031) !important;
    box-shadow: 0 4px 20px rgba(232, 67, 147, 0.4);
    color: white !important;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    background: transparent !important;
}

.btn-outline-light:hover {
    border-color: #fff;
    background: white !important;
    color: var(--primary-color) !important;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
}

/* Tables */
.table {
    color: var(--text-color) !important;
    border-collapse: separate;
    border-spacing: 0 15px;
    /* Increased spacing between rows */
    margin-bottom: 0;
}

.table thead th {
    background: transparent;
    border-bottom: none;
    color: var(--secondary-color);
    /* Brighter header text */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    padding: 1rem 1.5rem;
}

.table tbody tr {
    background: rgba(45, 0, 85, 0.4);
    /* Stronger purple glass background */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.table tbody tr:hover {
    background: rgba(60, 9, 108, 0.6);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: default;
}

.table td {
    border: none;
    vertical-align: middle;
    padding: 1.5rem;
    /* More padding for shape */
    color: #fff;
    font-size: 1rem;
}

.table tbody tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.table tbody tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* List Groups */
/* List Groups */
.list-group-item {
    background: rgba(60, 9, 108, 0.3) !important;
    border: 1px solid var(--border-color) !important;
    color: #fff !important;
    margin-bottom: 16px;
    /* Increased spacing */
    border-radius: 16px !important;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.list-group-item:hover {
    background: rgba(90, 24, 154, 0.4) !important;
    transform: translateY(-3px);
    /* Subtle lift */
    border-color: var(--primary-hover) !important;
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.2);
}

/* Form Elements */
.form-control,
.form-select {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--border-color) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15) !important;
}

.form-label {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Badges */
.badge {
    padding: 0.6em 1em;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bg-success {
    background: rgba(0, 184, 148, 0.2) !important;
    color: #00b894 !important;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.bg-danger {
    background: rgba(232, 67, 147, 0.2) !important;
    color: #e84393 !important;
    border: 1px solid rgba(232, 67, 147, 0.3);
}

.bg-warning {
    background: rgba(253, 203, 110, 0.2) !important;
    color: #fdcb6e !important;
    border: 1px solid rgba(253, 203, 110, 0.3);
}

.bg-info {
    background: rgba(9, 132, 227, 0.2) !important;
    color: #74b9ff !important;
    border: 1px solid rgba(9, 132, 227, 0.3);
}

/* Footer */
footer {
    background: #000 !important;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    color: var(--text-muted);
}

footer h5 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.5px;
}

footer a {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 15px;
    position: relative;
    padding-bottom: 5px;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

footer a:hover::after {
    transform: scaleX(1);
}

footer a:hover {
    color: #fff;
}

.disclaimer {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Custom Text Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Effects */
.glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.neon-border {
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 206, 201, 0.3);
}

/* Player Selection Specific */
.player-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color) !important;
    cursor: pointer;
    transition: all 0.2s;
}

.player-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.player-item input:checked+label {
    color: var(--accent-color);
    font-weight: 600;
}

.dropdown-menu {
    background: #1e1f26;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.dropdown-item {
    color: var(--text-color);
}

.dropdown-item:hover {
    background: rgba(157, 78, 221, 0.1);
    color: #fff;
}

/* Rank & Avatar Styles */
.rank-badge {
    width: 36px;
    height: 36px;
    background: rgba(16, 0, 43, 0.6);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.table-row-highlight {
    background: rgba(123, 44, 191, 0.15) !important;
    border: 1px solid var(--primary-color);
}

/* Pagination Custom Styles */
.pagination .page-link {
    background-color: var(--dark-bg);
    border-color: var(--border-color);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: rgba(123, 44, 191, 0.2);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(123, 44, 191, 0.3);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(123, 44, 191, 0.5);
}

.pagination .page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-color: var(--border-color);
}

.placeholder-light::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}