:root {
    --primary-color: #d4af37;
    /* Gold */
    --primary-hover: #f9d768;
    --bg-dark: #121212;
    --glass-bg: rgba(20, 20, 20, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --sidebar-width: 260px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-dark);
}

body {
    background-color: #000;
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('https://w0.peakpx.com/wallpaper/306/186/HD-wallpaper-metin2-game-fantasy.jpg');
    background-size: cover;
    background-position: center;
}

.app-container {
    width: 1080px;
    height: 560px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    border-right: var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 25px 0;
    overflow-y: auto;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 35px;
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    position: relative;
}

.sidebar-header::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    margin: 10px auto 0;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-group {
    margin-bottom: 25px;
    padding: 0 15px;
}

.nav-group-title {
    padding: 5px 15px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.nav-item {
    display: block;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 2px;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    /* Cleaner font for lists */
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-color);
    padding-left: 20px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    border-radius: 0 4px 4px 0;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.top-bar {
    height: var(--header-height);
    border-bottom: var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 30px;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
}

.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
    transition: background 0.3s;
}

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

/* Components */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.item-card {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.8) 0%, rgba(15, 15, 15, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.item-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
}

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

.item-card img {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s;
}

.item-card:hover img {
    transform: scale(1.1);
}

.section-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    font-style: italic;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    width: 100%;
}

/* Tabs */
.tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    display: flex;
    gap: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: linear-gradient(to top, rgba(212, 175, 55, 0.05), transparent);
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
    }

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

/* Table Responsive Styles */
.content-area table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

.content-area table th,
.content-area table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.content-area table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.content-area table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Ensure content doesn't break layout */
.content-area {
    overflow-x: auto !important;
    overflow-y: auto !important;
}

.content-area>* {
    max-width: 100%;
}

.content-area img {
    max-width: 100%;
    height: auto;
}

/* Force table width override */
.content-area table[style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
}

/* Override table inline styles with theme colors */
.content-area table[style] {
    background-color: rgba(20, 20, 20, 0.6) !important;
    color: var(--text-main) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.content-area table[style] th,
.content-area table[style] td {
    color: var(--text-main) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.content-area table[style] th {
    background-color: rgba(212, 175, 55, 0.15) !important;
    color: var(--primary-color) !important;
}

/* Comprehensive table style override */
.content-area table td[style],
.content-area table th[style] {
    background: rgba(30, 30, 30, 0.5) !important;
    border-color: rgba(212, 175, 55, 0.15) !important;
    color: var(--text-main) !important;
}

.content-area table tr:first-child td[style],
.content-area table tr:first-child th[style] {
    background: rgba(212, 175, 55, 0.2) !important;
}

.content-area table span[style*="color"] {
    color: var(--text-main) !important;
}

.content-area table tr:first-child span[style*="color"] {
    color: var(--primary-color) !important;
}

/* Global layout classes */
.global-body {
    padding: 10px;
}

.global-header {
    padding: 10px 0px 0px 15px;
}

/* Shortcode link styles */
.shortcode-link {
    color: #fff !important;
    border: 1px dashed #fff;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.shortcode-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

/* Custom page content styles */
.custom-page-content {
    padding: 20px;
    line-height: 1.8;
}

.custom-page-content h1,
.custom-page-content h2,
.custom-page-content h3,
.custom-page-content h4 {
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.custom-page-content h1 {
    font-size: 2em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.custom-page-content h2 {
    font-size: 1.5em;
}

.custom-page-content h3 {
    font-size: 1.3em;
}

.custom-page-content p {
    margin-bottom: 1em;
    color: var(--text-main);
}

.custom-page-content ul,
.custom-page-content ol {
    margin-left: 20px;
    margin-bottom: 1em;
    color: var(--text-main);
}

.custom-page-content li {
    margin-bottom: 0.5em;
}

.custom-page-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.custom-page-content a:hover {
    text-decoration: underline;
}

.custom-page-content strong,
.custom-page-content b {
    color: var(--primary-color);
    font-weight: 600;
}

.custom-page-content code {
    background: rgba(212, 175, 55, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    color: var(--primary-color);
}

.custom-page-content pre {
    background: rgba(20, 20, 20, 0.6);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1em;
}

.custom-page-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin: 1em 0;
    color: var(--text-muted);
    font-style: italic;
}


/* Shortcode item styles */
.shortcode-item-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 4px;
    text-decoration: none;
    color: #ffc107;
    transition: all 0.2s;
}

.shortcode-item-link:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #ffca2c;
    text-decoration: none;
}

.shortcode-item-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Simple Grid System (Bootstrap-like) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
}

.g-4 {
    margin-top: -1.5rem;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.g-4>* {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-top: 1.5rem;
}

/* Adjustments for custom spacing */
.mb-3 {
    margin-bottom: 1rem !important;
}

.text-center {
    text-align: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}