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

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.toolbar {
    background-color: #2d2d2d;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation {
    display: flex;
    gap: 10px;
}

.btn {
    background-color: #3d3d3d;
    border: none;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    color: #ffffff;
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.delete {
    background-color: #ff4444;
    color: white;
}

.btn.delete:hover {
    background-color: #cc0000;
}

.formatting {
    display: flex;
    align-items: center;
    gap: 20px;
}

.select {
    padding: 8px;
    border: 1px solid #4d4d4d;
    border-radius: 4px;
    font-size: 14px;
    background-color: #3d3d3d;
    color: #ffffff;
    min-width: 100px;
}

.colors {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #4d4d4d;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.color-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2d2d2d;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.color-btn:hover::after {
    opacity: 1;
}

.page-container {
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex: 1;
    overflow: auto;
}

.page {
    width: 100%;
    height: 4000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.page textarea {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    outline: none;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background-color: #000000;
    color: #ffffff;
}

.page-info {
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    padding: 10px;
    background-color: #2d2d2d;
} 