@import url('https://fonts.cdnfonts.com/css/minecraftia');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Courier New", Courier, monospace;
    background-color: #d4d4d4;
    color: #2c2c2c;
    line-height: 1.6;
}

/* Custom scrollbar - Modern */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #e0e0e0;
}
::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 5px;
}
* {
    scrollbar-width: thin;
    scrollbar-color: #4CAF50 #e0e0e0;
}

/* fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.wiki-container {
    max-width: 1300px;
    margin: 20px auto;
    background-color: #faf6f0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.header {
    padding: 25px 30px;
    background: #2d5a2f;
    border-radius: 8px 8px 0 0;
}

.header h1 {
    margin: 0;
    font-size: 32px;
    color: #ffffff;
    font-family: 'Minecraftia', 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}

.header p {
    margin: 8px 0 0 0;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}

.clearfix {
    display: flex;
    flex: 1;
    gap: 20px;
}

/* Ad Sidebar (right side) */
.ad-sidebar {
    width: 250px;
    padding: 20px;
    background: #f5f5f0;
    border-left: 1px solid #d0d0d0;
    flex-shrink: 0;
    border-radius: 0 0 8px 0;
}

.ad-sidebar h3 {
    font-size: 14px;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #4CAF50;
    color: #2d5a2f;
    font-family: 'Minecraftia', 'Courier New', monospace;
    font-weight: 600;
}

.ad-space {
    background: #e8e8e8;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 13px;
    transition: all 0.2s ease;
}

.ad-space:hover {
    border-color: #4CAF50;
    background: #f0f0f0;
}

/* When image is present - fill container */
.ad-space.has-image {
    padding: 0;
    border: none;
    background: transparent;
    height: 400px;
}

.ad-space.has-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

body.dark-mode .ad-sidebar {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .ad-sidebar h3 {
    color: #4CAF50;
}

body.dark-mode .ad-space {
    background: #333;
    border-color: #555;
    color: #aaa;
}

.nav-sidebar {
    width: 220px;
    padding: 20px;
    background: #f5f5f0;
    border-right: 1px solid #d0d0d0;
    flex-shrink: 0;
    border-radius: 0 0 0 8px;
}

.nav-sidebar h3 {
    font-size: 14px;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #4CAF50;
    color: #2d5a2f;
    font-family: 'Minecraftia', 'Courier New', monospace;
    font-weight: 600;
}

.nav-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.nav-sidebar li {
    margin-bottom: 8px;
}

.nav-sidebar a {
    color: #555555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    display: block;
    border-radius: 4px;
    transition: all 0.2s ease;
    outline: none;
}

.nav-sidebar a:focus,
.nav-sidebar a:active,
.nav-sidebar a:visited {
    outline: none !important;
    outline-width: 0 !important;
    outline-color: transparent !important;
    text-decoration: none !important;
    -moz-outline: none !important;
    -moz-user-focus: ignore !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Prevent dotted borders on focus */
.nav-sidebar a::-moz-focus-inner {
    border: 0 !important;
    padding: 0 !important;
}

/* Extra strong focus prevention */
.nav-sidebar a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.nav-sidebar a:hover {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2d5a2f;
    text-decoration: none;
}

.nav-sidebar .current {
    font-weight: 700;
    color: #ffffff;
    background: #2d5a2f;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    outline: none;
    text-decoration: none;
}

.content {
    flex: 1;
    padding: 40px;
    max-width: 1000px;
    overflow-wrap: break-word;
    background-color: #fefcf8;
}

.content h2 {
    border-bottom: 3px solid #4CAF50;
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 24px;
    font-family: 'Minecraftia', 'Courier New', monospace;
    color: #2d5a2f;
}

.content h3 {
    font-size: 20px;
    margin-top: 25px;
    font-family: 'Minecraftia', 'Courier New', monospace;
    color: #2d5a2f;
    padding-left: 12px;
    border-left: 4px solid #4CAF50;
}

.content p {
    margin: 12px 0;
    line-height: 1.7;
}

.content ul, .content ol {
    margin: 12px 0;
    padding-left: 35px;
}

.content li {
    margin-bottom: 8px;
}

/* Fix for images breaking layout */
.content img {
    max-width: 100%;
    height: auto;
}

.wiki-image {
    margin: 20px 0;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wiki-image img {
    border: 3px solid #4CAF50;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Server status & info boxes - Modern */
.server-status {
    background: #f8f8f0;
    padding: 20px;
    margin-bottom: 25px;
    font-size: 13px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.server-status h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 8px;
    color: #2d5a2f;
}

.status-online {
    color: #4CAF50;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(76,175,80,0.3);
}

.status-offline {
    color: #f44336;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(244,67,54,0.3);
}

.server-info {
    background: #f8f8f0;
    padding: 20px;
    margin: 20px 0;
    font-size: 14px;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.server-info dt {
    font-weight: bold;
    float: left;
    margin-right: 12px;
    clear: left;
    color: #2d5a2f;
}

.server-info dd {
    margin-left: 0;
    margin-bottom: 8px;
    overflow: hidden;
    color: #555555;
}

/* Modern Table */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table th {
    background: #2d5a2f;
    padding: 12px 15px;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

table td {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 15px;
    background-color: #ffffff;
    color: #2c2c2c;
}

table tr:nth-child(even) td {
    background-color: #f5f5f0;
}

table tr:hover td {
    background-color: #f0f8f0;
}

.footer {
    padding: 20px 30px;
    text-align: center;
    font-size: 13px;
    color: #888888;
    background: #f8f8f0;
    border-top: 1px solid #d0d0d0;
    border-radius: 0 0 8px 8px;
}

.map-placeholder {
    background: #f8f8f0;
    padding: 60px 40px;
    text-align: center;
    color: #888888;
    font-style: italic;
    border-radius: 8px;
    border: 2px dashed #cccccc;
}

/* Player head */
.player-head {
    vertical-align: middle;
    margin-right: 8px;
    background: transparent;
    image-rendering: pixelated;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.player-head:hover {
    transform: scale(1.1);
}

/* Image caption */
.image-caption {
    font-size: 12px;
    color: #888888;
    margin-top: 8px;
    font-style: italic;
}

/* Timeline CSS - Modern */
.timeline {
    position: relative;
    padding: 25px 0;
    margin: 25px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #4CAF50;
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    left: 19px;
    top: 8px;
    width: 15px;
    height: 15px;
    background: #4CAF50;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.timeline-content {
    background: #f8f8f0;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    margin-top: 0;
    font-size: 16px;
    color: #2d5a2f;
    border-left: none;
    padding-left: 0;
}

.timeline-content p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #555555;
}

/* Back to top button - Modern */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2d5a2f;
    color: #ffffff;
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'Minecraftia', 'Courier New', monospace;
    font-size: 12px;
    display: none;
    z-index: 1000;
    border-radius: 25px;
    border: none;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background: #4CAF50;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

/* Links */
a {
    color: #1976D2;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2d5a2f;
    text-decoration: underline;
}

/* Player card popup */
.player-card {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #faf6f0;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 25px;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    min-width: 350px;
    text-align: center;
}

.player-card.active {
    display: block;
}

.player-card-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.player-card-overlay.active {
    display: block;
}

/* Search in nav sidebar */
.nav-search {
    position: relative;
    max-width: 100%;
}

.nav-search .search-input {
    width: 100%;
    background: rgba(255,255,255,0.9);
    border: 2px solid #4CAF50;
    color: #2c2c2c;
    padding: 8px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    box-sizing: border-box;
}

.nav-search .search-input::placeholder {
    color: #888;
}

.nav-search .search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #2d5a2f;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.nav-search .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: #faf6f0;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 200px;
    max-width: 300px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1002;
    display: none;
}

.nav-search .search-results.active {
    display: block;
}

.nav-search .search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.nav-search .search-result-item:last-child {
    border-bottom: none;
}

.nav-search .search-result-item a {
    color: #2d5a2f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: block;
}

.nav-search .search-result-item a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

.nav-search .search-no-results {
    padding: 15px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

/* Dark mode toggle button */
.darkmode-btn {
    margin-top: 30px;
    padding: 8px 12px;
    border: 2px solid #4CAF50;
    background: transparent;
    color: #4CAF50;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.darkmode-btn:hover {
    background: rgba(76, 175, 80, 0.1);
}

body.dark-mode .darkmode-btn {
    border-color: #4CAF50;
    color: #4CAF50;
}

body.dark-mode .darkmode-btn:hover {
    background: rgba(76, 175, 80, 0.3);
}

body.dark-mode .nav-search .search-input {
    background: rgba(255,255,255,0.9);
    border-color: #4CAF50;
    color: #2c2c2c;
}

body.dark-mode .nav-search .search-input:focus {
    background: #ffffff;
    border-color: #2d5a2f;
}

body.dark-mode .nav-search .search-input::placeholder {
    color: #888;
}

body.dark-mode .nav-search .search-results {
    background: #2a2a2a;
    border-color: #4CAF50;
}

body.dark-mode .nav-search .search-result-item {
    border-bottom-color: #444;
}

body.dark-mode .nav-search .search-result-item a {
    color: #4CAF50;
}

/* Responsive */
@media (max-width: 768px) {
    .wiki-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .clearfix {
        flex-direction: column;
    }
    
    .nav-sidebar {
        width: auto;
        border-right: none;
        border-bottom: 1px solid #d0d0d0;
        border-radius: 0;
    }
    
    .content {
        max-width: 100%;
        padding: 20px;
    }
    
    table {
        white-space: normal;
        display: table;
    }
     
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
}

/* Player card popup - global */
.player-card {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #faf6f0;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 25px;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    min-width: 350px;
    max-width: 450px;
    text-align: center;
}

.player-card.active {
    display: block;
}

.player-card-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.player-card-overlay.active {
    display: block;
}

.player-card h3 {
    margin-top: 0;
    color: #2d5a2f;
    font-family: 'Minecraftia', 'Courier New', monospace;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 8px;
}

.player-card #playerCardSkinContainer canvas {
    margin: 10px auto;
    display: block;
    cursor: grab;
}

.player-card #playerCardSkinContainer canvas:active {
    cursor: grabbing;
}

.player-card .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-family: 'Minecraftia', 'Courier New', monospace;
}

.player-card table {
    margin: 15px 0;
    display: table;
    white-space: normal;
    width: 100%;
}

.player-card table th {
    background: #2d5a2f;
    color: white;
}

.player-card table td {
    background: #fff;
}

.header-btn {
    background: rgba(255,255,255,0.9);
    border: 2px solid #4CAF50;
    color: #2c2c2c;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    background: #ffffff;
    border-color: #2d5a2f;
    transform: scale(1.05);
}

.header-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .wiki-container {
    background-color: #2a2a2a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body.dark-mode .header {
    background: #1a3a1a;
}

body.dark-mode .nav-sidebar {
    background: #252525;
    border-right-color: #444;
}

body.dark-mode .nav-sidebar a {
    color: #b0b0b0;
}

body.dark-mode .nav-sidebar a:hover {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

body.dark-mode .nav-sidebar .current {
    background: #1a3a1a;
    color: #fff;
}

body.dark-mode .content {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .content h2 {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

body.dark-mode .content h3 {
    color: #4CAF50;
}

body.dark-mode .server-info,
body.dark-mode .server-status {
    background: #333;
    border-left-color: #4CAF50;
}

body.dark-mode .server-info dt,
body.dark-mode .server-info dd,
body.dark-mode .server-status p {
    color: #b0b0b0;
}

body.dark-mode table th {
    background: #1a3a1a;
    color: #4CAF50;
}

body.dark-mode table td {
    background: #333;
    color: #e0e0e0;
}

body.dark-mode table tr:nth-child(even) td {
    background: #2a2a2a;
}

body.dark-mode .player-card {
    background: #2a2a2a;
    border-color: #4CAF50;
}

body.dark-mode .player-card h3 {
    color: #4CAF50;
}

body.dark-mode .player-card table th {
    background: #1a3a1a;
}

body.dark-mode .player-card table td {
    background: #333;
    color: #e0e0e0;
}

body.dark-mode .timeline-content {
    background: #333;
    border-color: #444;
}

body.dark-mode .timeline-content p {
    color: #b0b0b0;
}

body.dark-mode .timeline::before {
    background: #4CAF50;
}

body.dark-mode .search-input {
    background: rgba(255,255,255,0.9);
    border-color: #4CAF50;
    color: #2c2c2c;
}

body.dark-mode .search-input:focus {
    background: #ffffff;
    border-color: #2d5a2f;
}

body.dark-mode .search-input::placeholder {
    color: #888;
}

body.dark-mode .header-btn {
    background: rgba(255,255,255,0.9);
    border-color: #4CAF50;
    color: #2c2c2c;
}

body.dark-mode .header-btn:hover {
    background: #ffffff;
    border-color: #2d5a2f;
}

body.dark-mode .search-results {
    background: #2a2a2a;
    border-color: #4CAF50;
}

body.dark-mode .search-result-item {
    border-bottom-color: #444;
}

body.dark-mode .search-result-item a {
    color: #4CAF50;
}

body.dark-mode .wiki-image {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .footer {
    background: #1a1a1a;
    color: #aaa;
    border-top-color: #444;
}

body.dark-mode .footer p {
    color: #aaa;
}

/* Dark mode scrollbar */
body.dark-mode ::-webkit-scrollbar-track {
    background: #333;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #4CAF50;
}

body.dark-mode * {
     scrollbar-color: #4CAF50 #333;
}

/* Nav Tools List */
.nav-tools {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.nav-tools li {
    margin-bottom: 8px;
}

.nav-tools a {
    color: #555555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    display: block;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-tools a:hover {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2d5a2f;
    text-decoration: none;
}

/* YouTube Link */
.youtube-link {
    color: #ff0000 !important;
    font-weight: 600 !important;
}

.youtube-link:hover {
    color: #cc0000 !important;
    background-color: rgba(255, 0, 0, 0.1) !important;
}

/* Daily History Box */
.history-box {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8f5e9 100%);
    border-left: 4px solid #4CAF50;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.history-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2d5a2f;
    font-size: 18px;
}

.history-box p {
    margin: 0;
    line-height: 1.6;
}

body.dark-mode .history-box {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a3a1a 100%);
    border-left-color: #4CAF50;
}

body.dark-mode .history-box h3 {
    color: #4CAF50;
}

/* Server Quick Info Cards */
.server-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.info-card {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8f5e9 100%);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2d5a2f;
    font-size: 18px;
}

.info-card p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

body.dark-mode .info-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a3a1a 100%);
    border-left-color: #4CAF50;
}

body.dark-mode .info-card h3 {
    color: #4CAF50;
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.quick-link-card {
    background: #f5f5f0;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    display: block;
}

.quick-link-card:hover {
    border-color: #4CAF50;
    background: #e8f5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    text-decoration: none;
}

.quick-link-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #2d5a2f;
    font-size: 16px;
}

.quick-link-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

body.dark-mode .quick-link-card {
    background: #2a2a2a;
}

body.dark-mode .quick-link-card:hover {
    background: #1a3a1a;
    border-color: #4CAF50;
}

body.dark-mode .quick-link-card h3 {
    color: #4CAF50;
}

body.dark-mode .quick-link-card p {
    color: #aaa;
}

/* Kommun Grid */
.kommun-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.kommun-card {
    background: #f5f5f0;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
    display: block;
}

.kommun-card:hover {
    border-color: #4CAF50;
    background: #e8f5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    text-decoration: none;
}

.kommun-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2d5a2f;
    font-size: 18px;
}

.kommun-card p {
    margin: 5px 0;
    font-size: 13px;
    color: #555;
}

.kommun-card .read-more {
    color: #4CAF50;
    font-weight: 600;
    margin-top: 10px;
    font-size: 12px;
}

body.dark-mode .kommun-card {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .kommun-card:hover {
    background: #1a3a1a;
    border-color: #4CAF50;
}

body.dark-mode .kommun-card h3 {
    color: #4CAF50;
}

body.dark-mode .kommun-card p {
    color: #aaa;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    cursor: pointer;
    outline: none;
}

.nav-dropdown > a:focus {
    outline: none;
}

/* Fix dotted outline and spacing on click */
.nav-sidebar a:focus,
.nav-sidebar a:active,
.nav-sidebar a:visited,
.nav-sidebar a:focus-visible {
    outline: none !important;
    outline-width: 0 !important;
    outline-color: transparent !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    -moz-outline: none !important;
    -moz-user-focus: ignore !important;
}

/* Prevent dotted borders on focus */
.nav-sidebar a::-moz-focus-inner {
    border: 0 !important;
    padding: 0 !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #f5f5f0;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 1000;
    padding: 5px 0;
    margin: 0;
    list-style: none;
    border: 1px solid #d0d0d0;
}

.dropdown-content.active {
    display: block;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    padding: 8px 15px;
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 12px;
    border-radius: 0;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(76, 175, 80, 0.15);
    color: #2d5a2f;
}

body.dark-mode .dropdown-content {
    background: #2a2a2a;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    border-color: #444;
}

body.dark-mode .dropdown-content a {
    color: #aaa;
}

body.dark-mode .dropdown-content a:hover {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}
