body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    max-width: 1600px;
    margin: 0 auto;
}

.diff-container {
    display: flex;
    flex: 1;
    width: 100%;
    gap: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    margin-top: 10px;
}

.editor-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    min-height: 0;
    min-width: 0;
}

.CodeMirror {
    height: 100% !important;
    font-size: 15px;
    line-height: 1.5;
    width: 100% !important;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.CodeMirror-lines {
    padding: 0;
}

.CodeMirror pre.CodeMirror-line, 
.CodeMirror pre.CodeMirror-line-like {
    padding: 0 10px;
}

.content-wrapper {
    flex: 1;
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    justify-content: center;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1600px;
}

.editor-label {
    background-color: #333;
    color: white;
    padding: 8px 10px;
    font-weight: bold;
    flex-shrink: 0;
    margin: 0;
    border-radius: 3px 3px 0 0;
}

.editor-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

.tools-bar {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    flex-shrink: 0;
}

.tools-bar-friends {
    display: flex;
    gap: 10px;
}

button {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    background-color: #4a4a4a;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #666;
}

button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.square-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.square-button svg {
    width: 20px;
    height: 20px;
}

#result {
    padding: 10px;
    margin-top: 5px;
    border-radius: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.valid {
    background-color: rgba(0, 255, 0, 0.1);
    color: #0a0;
}

.invalid {
    background-color: rgba(255, 0, 0, 0.1);
    color: #a00;
}

.diff-added {
    background-color: rgba(0, 255, 0, 0.2);
}

.diff-removed {
    background-color: rgba(255, 0, 0, 0.2);
}

.diff-changed {
    background-color: rgba(255, 255, 0, 0.2);
}

.notification {
    position: fixed;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    transition: bottom 0.3s;
    z-index: 1000;
}

.notification.show {
    bottom: 20px;
}

@media (max-height: 600px) {
    .tools-bar {
        margin: 5px 0;
    }
    
    #result {
        padding: 5px;
        margin-top: 2px;
    }
}

.back-to-index {
    margin: 0 15px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #4a4a4a, #333);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid #555;
    gap: 8px;
}

.back-link:hover {
    background: linear-gradient(135deg, #555, #444);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.back-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.back-link svg {
    width: 16px;
    height: 16px;
}