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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e1e;
    color: #d4d4d4;
    height: 100vh;
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #2d2d30;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-actions button {
    flex: 1;
}

.error-message {
    color: #f48771;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.editor-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.editor-header {
    background-color: #2d2d30;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3c3c3c;
}
.rc-image {
    width: 3rem;
    height: 2rem;
}
.editor-header h1 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-right: auto;
    margin-left: 1rem;
}

.editor-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #007acc;
    color: white;
}

.btn-primary:hover {
    background-color: #005a9e;
}

.btn-secondary {
    background-color: #3c3c3c;
    color: #d4d4d4;
}

.btn-secondary:hover {
    background-color: #4a4a4a;
}

.editor-content {
    flex: 1;
    padding: 1rem;
}

#textEditor {
    width: 100%;
    height: 100%;
    background-color: #1e1e1e;
    color: #d4d4d4;
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    padding: 1rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    tab-size: 4;
}

#textEditor:focus {
    border-color: #007acc;
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}

.save-message {
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.save-message.success {
    background-color: #4caf50;
    color: white;
    opacity: 1;
}

.save-message.error {
    background-color: #f44336;
    color: white;
    opacity: 1;
}

@media (max-width: 768px) {
    .editor-header {
        padding: 0.75rem 1rem;
    }

    .editor-header h1 {
        font-size: 1rem;
    }

    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .editor-content {
        padding: 0.5rem;
    }

    #textEditor {
        font-size: 13px;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}