:root {
    --bg-color: #1a1c23;
    --bg-light: #1f2128;
    --sidebar-color: #111317;
    --accent-color: #5865F2; /* Discord-ish Blue */
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --card-bg: #242731;
    --border-color: #333745;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    line-height: 1.6;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar h2 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.sidebar h2 span {
    color: var(--accent-color);
    font-weight: 700;
}

.sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar a:hover, .sidebar a.active {
    background-color: var(--bg-light);
    color: #fff;
    border-left-color: var(--accent-color);
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    padding: 3rem;
    width: calc(100% - 260px);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Dashboard / Index Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
/* Card specific for quick links */
.card.quick-links a {
    color: var(--accent-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.card.quick-links a:hover {
    color: #fff;
}

/* Info List for Nodes, etc. */
.info-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.info-list li:last-child {
    border-bottom: none;
}

/* Getting Started Section on Dashboard */
.getting-started {
    margin-top: 2.5rem;
    grid-column: 1 / -1; /* Make it span full width of the grid */
}

.getting-started h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.getting-started ul, .getting-started ol {
    padding-left: 1.5rem;
    line-height: 1.7;
}

.getting-started ul li {
    margin-bottom: 0.5rem;
}

.getting-started a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Useful Links with Copy Button */
.links-with-copy li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.links-with-copy li:last-child {
    border-bottom: none;
}

.links-with-copy a {
    color: var(--accent-color);
    text-decoration: none;
}

.copy-btn {
    background-color: var(--border-color);
    color: var(--text-muted);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Announcements Page Layout */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
}

.announcement-post {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.announcement-header h3 {
    color: #fff;
}

.announcement-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Accordion for Ranking Page */
.accordion {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 1rem;
    overflow: hidden;
}

.accordion summary {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.accordion summary::-webkit-details-marker {
    display: none; /* Hide for Chrome/Safari */
}

.accordion summary:hover {
    background-color: #2c303d;
}

.accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.accordion[open] > summary::after {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Ranking Page Layout */
.ranking-section {
    margin-bottom: 3rem;
}

.ranking-section h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.point-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.point-item {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid;
}

.point-item.mission {
    border-left-color: #10b981; /* Green for positive */
}

.point-item.punishment {
    border-left-color: #ef4444; /* Red for negative */
}

.point-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.punishment-tier {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Staff Guides Page Layout */
.guide-section {
    margin-bottom: 3rem;
}

.guide-section h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.guide-card {
    display: flex;
    flex-direction: column;
}

.guide-card p {
    flex-grow: 1;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.guide-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

/* Search Bar for Rules Page */
#rules-search {
    width: 100%;
    max-width: 900px;
    padding: 0.8rem 1rem;
    margin-bottom: 2.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

#rules-search:focus {
    outline: none;
    border-color: var(--accent-color);
}
/* Rules Page Layout */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
}

.rule-section {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.rule-section h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.rule-section ol, .rule-section ul {
    padding-left: 1.5rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.rule-section.zero-tolerance {
    border-left: 4px solid #ef4444;
}

/* Hierarchy Page Layout */
.hierarchy-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
}

.role-tier {
    background-color: var(--card-bg);
    border-left: 3px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.role-tier.admin { border-left-color: #ef4444; }
.role-tier.mod { border-left-color: #f59e0b; }
.role-tier.support { border-left-color: #10b981; }

.role-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.role-tier ul {
    list-style-position: inside;
    padding-left: 0.5rem;
    margin-top: 0.5rem;
}

.role-tier ul li {
    margin-bottom: 0.25rem;
}

/* Code & Commands Formatting */
code {
    background-color: #0f1115;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #f43f5e;
}

.command-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.command-table th, .command-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.command-table th {
    background-color: #1e222b;
    color: #fff;
}

.command-table td code {
    font-size: 1rem;
}

/* Announcement Banner */
.announcement-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 8px;
    padding: 0.65rem 1.25rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.92rem;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.banner-badge {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.banner-text {
    color: #e2e8f0;
    opacity: 0.9;
}