/* Minecraft стиль - насыщенный */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto+Mono&display=swap');

body {
    background-color: #1e3b1e;
    background-image:
        linear-gradient(rgba(60, 100, 60, 0.3) 2px, transparent 2px),
        linear-gradient(90deg, rgba(60, 100, 60, 0.3) 2px, transparent 2px);
    background-size: 32px 32px;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    color: #f0f0e0;
    padding-bottom: 20px;
}

.navbar {
    background-color: #2d5a2d !important;
    border-bottom: 4px solid #a0c0a0;
    border-top: 4px solid #1a3a1a;
    box-shadow: 0 8px 0 #0a1a0a;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: #ffffaa !important;
    text-shadow: 4px 4px 0 #1a3a1a;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card {
    background-color: #c0c0c0;
    border: 4px solid;
    border-color: #f0f0f0 #6b8e6b #6b8e6b #f0f0f0;
    border-radius: 0;
    box-shadow: 10px 10px 0 #1a3a1a;
    margin-bottom: 30px;
}

.card-header {
    background-color: #4f7a4f;
    color: #ffffaa;
    border-bottom: 4px solid #2d5a2d;
    border-radius: 0 !important;
    font-weight: 700;
    font-size: 18px;
    padding: 16px 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #1a3a1a;
}

.card-header.bg-info {
    background-color: #4f7a7a !important;
}

.card-header.bg-success {
    background-color: #4f7a4f !important;
}

.card-header.bg-danger {
    background-color: #aa4f4f !important;
}

.card-header.bg-primary {
    background-color: #4f6a7a !important;
}

.card-header.bg-light {
    background-color: #6b8e6b !important;
    color: #ffffaa !important;
    border-bottom: 4px solid #4f7a4f;
}

.card-body {
    background-color: #e0e0e0;
    padding: 20px;
    color: #1e3b1e;
    border-radius: 0;
    border: 2px solid;
    border-color: #f0f0f0 #8b9a8b #8b9a8b #f0f0f0;
}

.card-footer {
    background-color: #b0c0b0;
    border-top: 4px solid #8b9a8b;
    padding: 16px 20px;
    border-radius: 0;
}

.btn {
    border: 4px solid;
    border-color: #f0f0f0 #6b8e6b #6b8e6b #f0f0f0;
    border-radius: 0;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 28px;
    box-shadow: 6px 6px 0 #1a3a1a;
    transition: all 0.05s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-shadow: 2px 2px 0 #1a3a1a;
}

.btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 #1a3a1a;
}

.btn-primary {
    background-color: #4f7a7a;
}

.btn-primary:hover {
    background-color: #3f6a6a;
}

.btn-success {
    background-color: #4f7a4f;
}

.btn-success:hover {
    background-color: #3f6a3f;
}

.btn-warning {
    background-color: #c9a84b;
    color: #1e3b1e;
    text-shadow: 2px 2px 0 #8b6e3a;
}

.btn-warning:hover {
    background-color: #b8983a;
}

.btn-secondary {
    background-color: #6b8e6b;
}

.CodeMirror {
    border: 4px solid;
    border-color: #f0f0f0 #6b8e6b #6b8e6b #f0f0f0;
    border-radius: 0;
    height: 320px;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 15px;
    background-color: #1e3b1e !important;
    color: #f0f0e0 !important;
}

.CodeMirror .cm-keyword { color: #f0f0e0 !important; }
.CodeMirror .cm-atom { color: #f0f0e0 !important; }
.CodeMirror .cm-number { color: #f0f0e0 !important; }
.CodeMirror .cm-def { color: #f0f0e0 !important; }
.CodeMirror .cm-variable { color: #f0f0e0 !important; }
.CodeMirror .cm-variable-2 { color: #f0f0e0 !important; }
.CodeMirror .cm-variable-3 { color: #f0f0e0 !important; }
.CodeMirror .cm-property { color: #f0f0e0 !important; }
.CodeMirror .cm-operator { color: #f0f0e0 !important; }
.CodeMirror .cm-comment { color: #a0c0a0 !important; }
.CodeMirror .cm-string { color: #f0f0e0 !important; }
.CodeMirror .cm-string-2 { color: #f0f0e0 !important; }

.CodeMirror-selected { background-color: #3a6a3a !important; }
.CodeMirror-cursor { border-left: 4px solid #ffffaa !important; }

.CodeMirror-linenumber { color: #a0c0a0 !important; }

.cm-s-default .CodeMirror-gutters {
    background-color: #2d5a2d;
    border-right: 4px solid #4f7a4f;
}

.badge {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
    border-color: #f0f0f0 #4f7a4f #4f7a4f #f0f0f0;
}

.badge.bg-success {
    background-color: #4f7a4f !important;
}

.badge.bg-danger {
    background-color: #aa4f4f !important;
}

.badge.bg-secondary {
    background-color: #6b8e6b !important;
}

.results-card {
    height: 420px;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
}

.results-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 18px;
    background-color: #e0e0e0;
}

.scrollable-results {
    flex: 1;
    overflow-y: auto;
    max-height: none;
    padding-right: 8px;
}

.scrollable-results::-webkit-scrollbar {
    width: 16px;
}

.scrollable-results::-webkit-scrollbar-track {
    background: #b0c0b0;
    border: 4px solid;
    border-color: #f0f0f0 #6b8e6b #6b8e6b #f0f0f0;
}

.scrollable-results::-webkit-scrollbar-thumb {
    background: #4f7a4f;
    border: 4px solid;
    border-color: #f0f0f0 #2d5a2d #2d5a2d #f0f0f0;
}

.scrollable-results::-webkit-scrollbar-thumb:hover {
    background: #3f6a3f;
}

.results-header {
    flex-shrink: 0;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 4px solid #4f7a4f;
    background: #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.results-header p {
    margin-bottom: 6px;
    color: #1e3b1e;
    font-weight: 600;
}

.results-header strong {
    color: #1e3b1e;
    font-size: 16px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert-list .card {
    margin-bottom: 0;
    border-left: 8px solid;
    border-radius: 0;
    box-shadow: 5px 5px 0 #1a3a1a;
}

.alert-list .card.border-success {
    border-left-color: #4f7a4f;
}

.alert-list .card.border-danger {
    border-left-color: #aa4f4f;
}

.alert-list .card .card-body {
    background-color: #f0f0e0;
    padding: 12px;
}

.alert-list .card .card-body strong.text-success {
    color: #4f7a4f !important;
}

.alert-list .card .card-body strong.text-danger {
    color: #aa4f4f !important;
}

.alert-danger {
    background-color: #aa4f4f;
    border: 4px solid;
    border-color: #f0f0f0 #6b8e6b #6b8e6b #f0f0f0;
    border-radius: 0;
    color: #f0f0e0;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 6px 6px 0 #1a3a1a;
}

.alert-danger h5 {
    color: #ffffaa;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #1a3a1a;
}

.alert-danger pre {
    background-color: #1e3b1e !important;
    border: 4px solid;
    border-color: #f0f0f0 #6b8e6b #6b8e6b #f0f0f0;
    border-radius: 0;
    color: #f0f0e0 !important;
    padding: 15px;
    font-size: 14px;
}

.text-muted {
    color: #4f6a4f !important;
    font-weight: 600;
}

.modal-content {
    border: 4px solid;
    border-color: #f0f0f0 #6b8e6b #6b8e6b #f0f0f0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 10px 10px 0 #1a3a1a;
}

.modal-header {
    background-color: #4f7a4f;
    color: #ffffaa;
    border-bottom: 4px solid #2d5a2d;
    padding: 16px 24px;
    border-radius: 0;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #1a3a1a;
}

.modal-body {
    background-color: #e0e0e0;
    padding: 24px;
}

.modal-body pre {
    background-color: #1e3b1e !important;
    border: 4px solid;
    border-color: #f0f0f0 #6b8e6b #6b8e6b #f0f0f0;
    border-radius: 0;
    color: #f0f0e0 !important;
    padding: 18px;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
}

#validation-error-container {
    margin-bottom: 30px;
}

#example-rules-text {
    background-color: #f0f0e0;
    border: 4px solid;
    border-color: #f0f0f0 #6b8e6b #6b8e6b #f0f0f0;
    border-radius: 0;
    padding: 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    color: #1e3b1e;
    line-height: 1.8;
    white-space: pre-wrap;
}