body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fc;
    color: #333;
}
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
    align-items: flex-start;
}
.sidebar {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    margin-top: 10px;
}
.sidebar h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #111;
}
.related-questions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 15px;
}
.related-questions li {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.related-questions li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.related-questions a {
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    color: #333;
    transition: 0.3s;
}
.related-questions a:hover {
    text-decoration: underline;
    color: #0056b3;
}
.disabled-question {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    font-weight: bold;
    transition: 0.3s;
    width: fit-content;
}
.back-button:hover {
    background: #e0e0e0;
}
.container {
    flex: 5;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
}
.question-title {
    font-size: 32px;
    font-weight: bold;
    color: #111;
    text-align: center;
    margin-bottom: 30px;
}
.answer-block {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.answer-block h2 {
    font-size: 22px;
    margin-bottom: 15px;
}
.tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.tag-category {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}
.tag {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    background-color: #e3e8f0;
    border-radius: 20px;
    color: #333;
}
.tag.stage.hr {
    background-color: rgba(255, 102, 102, 0.3);
}
.tag.stage.tech {
    background-color: rgba(76, 153, 255, 0.3);
}
.tag.stage.system-design {
    background-color: rgba(255, 204, 0, 0.3);
}
.stage {
    background-color: #d1ecf1;
}
.question-comment {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 3px solid #ccc;
    border-radius: 6px;
}
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
    cursor: pointer;
    justify-content: flex-end;
}
.study-checkbox {
    display: none;
}
.checkbox-container label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}
.checkbox-container label::before {
    content: '✔';
    display: inline-block;
    width: 18px;
    height: 18px;
    text-align: center;
    font-size: 14px;
    color: transparent;
    background: white;
    border: 2px solid #999;
    border-radius: 5px;
    transition: all 0.3s;
}
.study-checkbox:checked + label {
    background-color: #4caf50;
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}
.study-checkbox:checked + label::before {
    background: white;
    color: #4caf50;
    border: 2px solid #4caf50;
}
.checkbox-container label:hover {
    background-color: #e0e0e0;
}
.note-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}
.note-container h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #111;
}
.note-textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    resize: none;
    box-sizing: border-box;
}
.note-textarea::placeholder {
    color: #999;
    font-style: italic;
}
.save-note-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-size: 14px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: block;
    margin-top: 10px;
    transition: 0.3s;
}
.save-note-button:hover {
    background: linear-gradient(135deg, #45a049, #3e8e41);
    transform: scale(1.05);
}
.note-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 5px;
}
.edit-button, .delete-button {
    border: 1px solid transparent;
    background: #f0f0f0;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.edit-button:hover {
    background: #4CAF50;
    color: white;
}
.delete-button:hover {
    background: #e74c3c;
    color: white;
}
pre {
    background: #f5f5f5;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
}
code {
    color: #d63384;
}
pre code {
    display: block;
    background: none;
    padding: 0;
    white-space: pre-wrap;
}

.hljs-keyword, .hljs-built_in {
    color: #d73a49;
}
.hljs-string {
    color: #032f62;
}
.hljs-number {
    color: #005cc5;
}
.hljs-comment {
    color: #6a737d;
}
.subscription-warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
    border: 1px solid #ffeeba;
}
.subscribe-button {
    display: inline-block;
    background: #ffa500;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}
.subscribe-button:hover {
    background: #ff8700;
}
.checkbox-container.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.checkbox-container.disabled input[type="checkbox"] {
    cursor: not-allowed;
}
.checkbox-container.disabled label {
    background-color: #ddd !important;
    color: #888 !important;
    box-shadow: none !important;
    transition: none !important;
}
.checkbox-container.disabled label:hover {
    background-color: #ddd !important;
    color: #888 !important;
}
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(40, 167, 69, 0.95);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.success-message.fade-out {
    opacity: 0;
    transform: translate(-50%, -55%);
}

.success-message.hidden {
    display: none;
}

@media (max-width: 768px) {
    .related-questions,
    .related-questions-title {
        display: none !important;
    }
    .main-container {
        flex-direction: column;
        align-items: center;
    }
    .container {
        max-width: 90%;
        padding: 0 10px;
    }
    .question-title {
        font-size: 28px;
    }
    .answer-block {
        max-width: 100%;
        padding: 20px;
    }
    .checkbox-container {
        justify-content: center;
    }

}

