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

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: #001733;
    color: #d6deeb;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.title-bar {
    height: 35px;
    background: #011627;
    border-bottom: 1px solid #01121f;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
}

.title-bar .logo {
    color: #82aaff;
    font-weight: bold;
    font-size: 13px;
}

.title-bar .subtitle {
    color: #4b6479;
    font-size: 11px;
}

.search-bar-container {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.search-input-trigger {
    width: 500px;
    height: 24px;
    background: #01121f;
    border: 1px solid #1d3b53;
    border-radius: 4px;
    padding: 0 10px;
    color: #4b6479;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-input-trigger:hover {
    border-color: #82aaff;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    z-index: 1000;
}

.search-modal.active {
    display: flex;
}

.search-box {
    width: 600px;
    background: #011627;
    border: 1px solid #82aaff;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.search-header {
    padding: 12px 15px;
    border-bottom: 1px solid #01121f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-icon {
    color: #82aaff;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #d6deeb;
    font-size: 14px;
    font-family: inherit;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #01121f;
    cursor: pointer;
}

.search-result-item:hover {
    background: #01121f;
}

.search-result-name {
    color: #d6deeb;
    font-weight: 500;
    margin-bottom: 4px;
}

.search-result-subtitle {
    color: #4b6479;
    font-size: 11px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #4b6479;
}

/* Tabs Bar */
.tabs-bar {
    height: 35px;
    background: #001733;
    border-bottom: 1px solid #01121f;
    display: flex;
    align-items: center;
    overflow-x: auto;
}

.tab {
    height: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid #01121f;
    cursor: pointer;
    color: #4b6479;
    font-size: 12px;
    white-space: nowrap;
}

.tab:hover {
    color: #d6deeb;
}

.tab.active {
    background: #011627;
    color: #d6deeb;
}

.tab-close {
    opacity: 0;
    transition: opacity 0.2s;
}

.tab:hover .tab-close {
    opacity: 1;
}

.tab-close:hover {
    color: #82aaff;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* File Explorer */
.file-explorer {
    width: 250px;
    background: #011627;
    border-right: 1px solid #01121f;
    overflow-y: auto;
}

.explorer-header {
    padding: 10px 15px;
    border-bottom: 1px solid #01121f;
    color: #4b6479;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

.explorer-folder {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #d6deeb;
    font-size: 13px;
}

.explorer-folder:hover {
    background: #01121f;
}

.explorer-files {
    padding-left: 20px;
}

.explorer-file {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #d6deeb;
    font-size: 13px;
}

.explorer-file:hover {
    background: #01121f;
}

/* Image folder styles */
.explorer-subfolder {
    padding: 6px 12px;
    padding-left: 32px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #d6deeb;
    font-size: 13px;
}

.explorer-subfolder:hover {
    background: #01121f;
}

.explorer-image {
    padding: 6px 12px;
    padding-left: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #d6deeb;
    font-size: 13px;
}

.explorer-image:hover {
    background: #01121f;
}

/* Editor */
.editor {
    flex: 1;
    overflow-y: auto;
    background: #011627;
}

.editor-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

/* Split View */
.split-view {
    width: 0;
    background: #011627;
    border-left: 1px solid #01121f;
    overflow-y: auto;
    transition: width 0.3s;
}

.split-view.active {
    width: 50%;
}

.split-header {
    padding: 8px 15px;
    border-bottom: 1px solid #01121f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #001733;
    position: sticky;
    top: 0;
    z-index: 10;
}

.split-header-title {
    color: #4b6479;
    font-size: 12px;
}

.split-close {
    cursor: pointer;
    color: #4b6479;
}

.split-close:hover {
    color: #82aaff;
}

.split-content {
    padding: 20px;
}

/* Status Bar */
.status-bar {
    height: 22px;
    background: #82aaff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 11px;
    color: #011627;
}

.status-left, .status-right {
    display: flex;
    gap: 15px;
}

/* Code Syntax Highlighting */
.code {
    background: #001733;
    border: 1px solid #01121f;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.code .key { color: #c792ea; }
.code .string { color: #ecc48d; }
.code .string a { color: #d0a66c; }
.code .number { color: #f78c6c; }
.code .boolean { color: #ff5874; }
.code .null { color: #7fdbca; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 2px;
}

::-webkit-scrollbar-track {
    background: #001733;
}

::-webkit-scrollbar-thumb {
    background: #1d3b53;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #82aaff;
}

/* Markdown Content */
.markdown h1 {
    color: #82aaff;
    font-size: 32px;
    margin-bottom: 10px;
}

.markdown h2 {
    color: #82aaff;
    font-size: 24px;
    margin: 20px 0 10px 0;
}

.markdown h3 {
    color: #82aaff;
    font-size: 18px;
    margin: 15px 0 10px 0;
}

.markdown p {
    color: #d6deeb;
    margin-bottom: 15px;
    line-height: 1.8;
}

.markdown .subtitle {
    color: #7fdbca;
    font-size: 18px;
    margin-bottom: 20px;
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.member-card {
    background: #001733;
    border: 1px solid #1d3b53;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.member-card:hover {
    border-color: #82aaff;
    transform: translateY(-2px);
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: block;
}

.member-name {
    color: #d6deeb;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.member-role {
    color: #82aaff;
    font-size: 11px;
    text-align: center;
    margin-bottom: 10px;
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.member-link {
    color: #4b6479;
    text-decoration: none;
    font-size: 14px;
}

.member-link:hover {
    color: #82aaff;
}

.member-competitions {
    text-align: center;
    color: #4b6479;
    font-size: 10px;
}

/* Competitions Grid */
.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.competition-card {
    background: #001733;
    border: 1px solid #1d3b53;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.competition-card:hover {
    border-color: #82aaff;
    transform: translateY(-2px);
}

.competition-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.competition-info {
    padding: 15px;
}

.competition-date {
    color: #82aaff;
    font-size: 11px;
    margin-bottom: 8px;
}

.competition-title {
    color: #d6deeb;
    font-weight: bold;
    margin-bottom: 8px;
}

.competition-description {
    color: #4b6479;
    font-size: 12px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.competition-participants {
    display: flex;
}

.participant-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #011627;
    margin-left: -8px;
}

.participant-avatar:first-child {
    margin-left: 0;
}

.participant-more {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1d3b53;
    border: 2px solid #011627;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #d6deeb;
    margin-left: -8px;
}

/* Image viewer */
.image-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.image-viewer img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-viewer-title {
    color: #82aaff;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}
.json-link {
    color: #82aaff;
    text-decoration: underline;
}

/* Lien d'image */
.json-img {
    color: #82aaff;
    text-decoration: underline;
    position: relative;
}

/* Boîte de preview */
.json-img .preview {
    display: none;
    position: absolute;
    left: 0;
    top: 18px;
    padding: 4px;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 4px;
    z-index: 999;
}

/* Image dans la preview */
.json-img .preview img {
    max-width: 240px;
    max-height: 280px;
    display: block;
    border-radius: 3px;
}

/* Display on hover */
.json-img:hover .preview {
    display: block;
}

.search-result-item.selected {
    background: #1d3b53 !important;
    border-left: 2px solid #82aaff;
}

span.js{
    background-color: #F0DB4F;
    color: #323330;
    padding-left: 11px;
    padding-top: 10px;
}


span.js2{
    background-color: #F0DB4F;
    color: #323330;
    padding-left: 5px;
    padding-top: 5px;
}