body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Site Logo */
.site-logo {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

/* Mod Cards */
.mod-card {
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.mod-icon {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #404040;
}

.mod-icon-placeholder {
    width: 64px;
    height: 64px;
    background: #404040;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.mod-icon-large {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #404040;
}

.mod-icon-placeholder-large {
    width: 128px;
    height: 128px;
    background: #404040;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 48px;
}

/* Admin Icons */
.admin-mod-icon {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #404040;
}

.admin-mod-icon-placeholder {
    width: 32px;
    height: 32px;
    background: #404040;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 12px;
}

/* Logo Preview */
.current-logo-preview {
    height: 60px;
    width: auto;
    border-radius: 6px;
    border: 2px solid #404040;
}

/* Screenshot Gallery */
.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.screenshot-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    aspect-ratio: 16/9;
}

.screenshot-thumbnail:hover {
    transform: scale(1.05);
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.screenshot-thumbnail:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-overlay i {
    color: white;
    font-size: 2rem;
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 15px;
    border-radius: 5px;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Buttons */
.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
}

/* Cards and Tables */
.card {
    background: #2d2d2d;
    border: 1px solid #404040;
}

.table {
    color: #e0e0e0;
}

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

.modal-content {
    background: #2d2d2d;
    border: 1px solid #404040;
}

.modal-header {
    border-bottom: 1px solid #404040;
}

.modal-footer {
    border-top: 1px solid #404040;
}

.form-control, .form-select {
    background-color: #404040;
    border: 1px solid #555;
    color: #e0e0e0;
}

.form-control:focus, .form-select:focus {
    background-color: #4a4a4a;
    border-color: #007bff;
    color: #e0e0e0;
}

.form-label {
    color: #e0e0e0;
}

.form-text {
    color: #888 !important;
}

.alert {
    border: none;
    border-radius: 6px;
}

.navbar-brand {
    font-weight: bold;
    display: flex;
    align-items: center;
}

.screenshot-preview {
    display: inline-block;
    position: relative;
    margin: 5px;
}

.screenshot-preview img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

.screenshot-preview .delete-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
}

/* Drag & Drop Styles */
.mod-row {
    cursor: move;
    transition: all 0.2s ease;
}

.mod-row.dragging {
    opacity: 0.5;
    background: #404040 !important;
}

.mod-row.over {
    border-top: 2px solid #007bff !important;
}

.handle {
    cursor: grab;
    transition: color 0.2s ease;
}

.handle:hover {
    color: #007bff !important;
}

.handle:active {
    cursor: grabbing;
}

/* HTML Content Styles */
.mod-detailed-content {
    line-height: 1.6;
    color: #e0e0e0;
}

.mod-detailed-content h1,
.mod-detailed-content h2,
.mod-detailed-content h3,
.mod-detailed-content h4,
.mod-detailed-content h5,
.mod-detailed-content h6 {
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mod-detailed-content h1 { font-size: 2rem; }
.mod-detailed-content h2 { font-size: 1.75rem; }
.mod-detailed-content h3 { font-size: 1.5rem; }
.mod-detailed-content h4 { font-size: 1.25rem; }
.mod-detailed-content h5 { font-size: 1.1rem; }
.mod-detailed-content h6 { font-size: 1rem; }

.mod-detailed-content p {
    margin-bottom: 1rem;
}

.mod-detailed-content ul,
.mod-detailed-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.mod-detailed-content li {
    margin-bottom: 0.5rem;
}

.mod-detailed-content strong {
    color: #ffffff;
    font-weight: 600;
}

.mod-detailed-content em {
    color: #cccccc;
    font-style: italic;
}

.mod-detailed-content a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mod-detailed-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.mod-detailed-content code {
    background: #2d2d2d;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #ff6b6b;
    border: 1px solid #404040;
}

.mod-detailed-content pre {
    background: #2d2d2d;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid #404040;
    margin-bottom: 1rem;
}

.mod-detailed-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.mod-detailed-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    color: #cccccc;
    font-style: italic;
    background: #2d2d2d;
    padding: 1rem;
    border-radius: 0 6px 6px 0;
}

.mod-detailed-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.mod-detailed-content table th,
.mod-detailed-content table td {
    padding: 0.75rem;
    border: 1px solid #404040;
    text-align: left;
}

.mod-detailed-content table th {
    background: #2d2d2d;
    color: #ffffff;
    font-weight: 600;
}

.mod-detailed-content table tr:nth-child(even) {
    background: #2a2a2a;
}

.mod-detailed-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.5rem 0;
}

/* Navigation Tabs */
.navigation-tabs {
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
    padding: 1rem 0;
}

.tabs-container {
    display: flex;
    gap: 0.5rem;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #404040;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #555;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button:hover {
    background: #4a4a4a;
    color: #ffffff;
    border-color: #007bff;
    text-decoration: none;
}

.tab-button.active {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

/* Admin Navigation Tabs */
.admin-navigation-tabs {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #404040;
}

.admin-navigation-tabs .tabs-container {
    gap: 1rem;
}

.admin-navigation-tabs .tab-button {
    background: #404040;
    border: 1px solid #555;
    font-size: 1rem;
}

.admin-navigation-tabs .tab-button:hover {
    background: #4a4a4a;
    border-color: #007bff;
}

.admin-navigation-tabs .tab-button.active {
    background: #007bff;
    border-color: #007bff;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin Panel Light Text */
.admin-text-light {
    color: #f8f9fa !important;
}

.admin-section-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0;
}

.admin-card {
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 8px;
}

.admin-card .card-header {
    background: #363636;
    border-bottom: 1px solid #404040;
    color: #ffffff;
}

.admin-card .card-title {
    color: #ffffff;
    margin-bottom: 0;
}

.table-admin {
    color: #f8f9fa;
}

.table-admin th {
    background: #363636;
    color: #ffffff;
    border-bottom: 1px solid #404040;
    font-weight: 600;
}

.table-admin td {
    border-color: #404040;
    vertical-align: middle;
}

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

.table-striped tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-modal .modal-content {
    background: #2d2d2d;
    border: 1px solid #404040;
}

.admin-modal .modal-header {
    border-bottom: 1px solid #404040;
}

.admin-modal .modal-footer {
    border-top: 1px solid #404040;
}

.admin-textarea {
    background: #404040;
    border: 1px solid #555;
    color: #f8f9fa;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.admin-textarea:focus {
    background: #4a4a4a;
    border-color: #007bff;
    color: #f8f9fa;
}

/* Server Info Content */
.server-info-content {
    color: #e0e0e0;
    line-height: 1.7;
}

.server-info-content h1,
.server-info-content h2,
.server-info-content h3,
.server-info-content h4,
.server-info-content h5,
.server-info-content h6 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.server-info-content h1 { 
    font-size: 2.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.server-info-content h2 { 
    font-size: 2rem;
    border-bottom: 1px solid #404040;
    padding-bottom: 0.5rem;
}

.server-info-content h3 { font-size: 1.75rem; }
.server-info-content h4 { font-size: 1.5rem; }
.server-info-content h5 { font-size: 1.25rem; }
.server-info-content h6 { font-size: 1.1rem; }

.server-info-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.server-info-content ul,
.server-info-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.server-info-content li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.server-info-content strong {
    color: #ffffff;
    font-weight: 600;
}

.server-info-content em {
    color: #cccccc;
    font-style: italic;
}

.server-info-content a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.server-info-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.server-info-content code {
    background: #2d2d2d;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #ff6b6b;
    border: 1px solid #404040;
    font-size: 0.9rem;
}

.server-info-content pre {
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #404040;
    margin-bottom: 1.5rem;
}

.server-info-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e0e0e0;
}

.server-info-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    color: #cccccc;
    font-style: italic;
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
}

.server-info-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
}

.server-info-content table th,
.server-info-content table td {
    padding: 1rem;
    border: 1px solid #404040;
    text-align: left;
}

.server-info-content table th {
    background: #363636;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.server-info-content table tr:nth-child(even) {
    background: #2a2a2a;
}

.server-info-content table tr:hover {
    background: #323232;
}

.server-info-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #404040;
}

/* Shop Button Styles */
.nav-link .fa-shopping-cart {
    color: #28a745;
}

.tab-button .fa-shopping-cart {
    color: #28a745;
}

/* Admin Tab Improvements */
.admin-navigation-tabs .tab-button {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.admin-navigation-tabs .tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.admin-navigation-tabs .tab-button.active {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Form Improvements */
.admin-textarea {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.4;
}

.form-text code {
    background: #2d2d2d;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    color: #ff6b6b;
    font-size: 0.85rem;
}

/* Button Improvements */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Shop Settings Styles */
.shop-preview {
    background: #28a745;
    color: white;
    border: none;
}

.shop-preview:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.admin-input {
    background: #404040;
    border: 1px solid #555;
    color: #f8f9fa;
}

.admin-input:focus {
    background: #4a4a4a;
    border-color: #007bff;
    color: #f8f9fa;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.preview-section {
    background: #2d2d2d;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #404040;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-label {
    cursor: pointer;
}