body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #282c34;
    color: #ff7b00;
    user-select: none;
    background: url('bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 1px;
}

.header h1 {
    margin: 0;
    font-size: 20px;
    color: #06790c;
    font-weight: bold;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.input-container {
    display: flex;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.container {
    display: flex;
    width: 1100px;
    margin-top: 10px;
    margin-bottom: 60px;
    padding: 20px;
    background-color: #20232a;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid #ff8800;
    border-radius: 15px;
}

.left-panel {
    flex: 1;
    margin-right: 10px;
    background-color: #282c34;
    padding: 10px;
    border-radius: 10px;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.main-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    background-color: #20232a;
    border-radius: 10px;
}

.main-panel>div {
    padding: 10px;
    background-color: #282c34;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.main-panel .bottom-main-panel {
    margin-bottom: 0;
}

.top-main-panel {
    display: flex;
    gap: 20px;
}

.top-main-panel>div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bottom-main-panel button:hover {
    background-color: #4aaed9;
    color: #fff;
}

.bottom-main-panel div {
    display: flex;
    justify-content: space-between;
}

.right-panels {
    display: flex;
    flex-direction: column;
    flex: 1.078;
    margin-left: 10px;
}

.top-side-panel {
    background-color: #181818;
    padding: 9px;
    padding-right: 5px;
    padding-bottom: 0px;
    border-radius: 10px;
    margin-bottom: 10px;
    height: 129px;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.top-side-panel::-webkit-scrollbar {
    width: 16px;
}

.top-side-panel::-webkit-scrollbar-track {
    background: #181818;
    border-radius: 5px;
}

.top-side-panel::-webkit-scrollbar-thumb {
    background-color: #663200;
    border-radius: 15px;
    border: 5px solid #181818;
}

.top-side-panel::-webkit-scrollbar-thumb:hover {
    background-color: #834600;
    cursor: pointer;
}

.top-side-panel .toggle-button {
    display: block;
    width: 100%;
    height: 33px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 13px;
    text-align: center;
    background-color: #74410a;
    color: rgb(253, 194, 0);
    border: 1px solid #ff8800;
    border-radius: 5px;
    cursor: pointer;
}

.top-side-panel .toggle-button {
    display: block;
    width: 100%;
    height: 33px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 13px;
    text-align: center;
    background-color: #74410a;
    color: rgb(253, 194, 0);
    border: 1px solid #ff8800;
    border-radius: 5px;
    cursor: pointer;
}

.top-side-panel .toggle-button.active {
    background-color: #fd9800;
    color: #000000;
}

.side-panel {
    background-color: #282c34;
    padding: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.side-panel .toggle-onoff {
    padding: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    text-align: center;
    background-color: #07af2c;
    color: rgb(0, 0, 0);
    border: 1px solid #000000;
    border-radius: 5px;
    cursor: pointer;
}

.toggle-onoff.active {
    background-color: #fd9800;
    color: #000000;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bottom-side-panel {
    background-color: #282c34;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

input,
textarea {
    width: calc(100% - 20px);
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ff8800;
    border-radius: 5px;
    background-color: #181818;
    color: #e2e076;
    resize: none;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #ff8800;
    user-select: text;
}

.output {
    height: 300px;
    overflow-y: auto;
    color: rgb(42, 146, 32);
}

.label {
    font-family: 'Source Code Pro', monospace;
    margin-bottom: 5px;
}

.button-item {
    display: inline-block;
    padding: 10px;
    margin: 0;
    background-color: #181818;
    border: 1px solid #ff9900;
    border-radius: 5px;
    color: #e2e076;
    cursor: pointer;
    user-select: none;
}

.button-item:hover {
    background-color: rgb(253, 194, 0);
    color: #20232a;
}

.category {
    margin-bottom: 10px;
}

.category-header {
    background-color: #74410a;
    color: rgb(253, 194, 0);
    padding: 10px;
    border: 1px solid #ff7300;
    border-radius: 5px;
    cursor: pointer;
}

.category-content {
    display: none;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 10px;
    font-size: 14px;
}

.category-content.open {
    display: flex;
}

.category-header.active {
    background-color: #fd9800;
    color: #000000
}

.search-container {
    position: relative;
    width: 100%;
}

.clear-button {
    position: absolute;
    right: 4px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ff0000;
    background-color: transparent;
    border: none;
    font-size: 18px;
}

.bottom-side-panel {
    background-color: #282c34;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.bottom-side-panel>div {
    display: flex;
}

#buttonContainer {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

#addPage {
    background-color: #17692a;
    border: 1px solid #28a745;
    color: white;
    flex: 1;
}

#deletePage {
    background-color: #801818;
    border: 1px solid #dc3545;
    color: white;
    flex: 1;
    margin-right: 10px;
}

#addPage,
#deletePage {
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    padding: 13px;
    text-align: center;
}

#addPage:hover {
    background-color: #07af2c;
}

#deletePage:hover {
    background-color: #c82333;
}

#pageButtonsContainer {
    margin-top: 10px;
}

.page-button {
    background-color: #f0f0f0;
    border: 1px solid #000000;
    color: #333;
    padding: 10px 15px;
    margin: 2px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    flex-shrink: 0;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.page-button:hover {
    background-color: #8b8989;
    border-color: #000000;
}

.page-button:active {
    background-color: #d0d0d0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.page-button.selected {
    background-color: #c5880d;
    color: #20232a;
}


#pageButtonsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    overflow-y: auto;
    max-height: 308px;
    background-color: #282c34;
}

#pageButtonsContainer::-webkit-scrollbar {
    width: 16px;
}

#pageButtonsContainer::-webkit-scrollbar-thumb {
    background-color: #663200;
    border-radius: 15px;
    border: 5px solid #282c34;
}

#pageButtonsContainer::-webkit-scrollbar-thumb:hover {
    background-color: #834600;
}

.output::-webkit-scrollbar {
    width: 16px;
}

.output:hover {
    cursor: pointer;
}

.output::-webkit-scrollbar-track {
    background: #181818;
    border-radius: 5px;
}

.output::-webkit-scrollbar-thumb {
    background-color: #663200;
    border-radius: 15px;
    border: 5px solid #181818;
}

.output::-webkit-scrollbar-thumb:hover {
    background-color: #834600;
}

.bottom-main-panel button {
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    border: 1px solid #ff8800;
    background-color: #20232a;
    color: #ff8800;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
}

.bottom-main-panel button:hover {
    background-color: #ff8800;
    color: #20232a;
    font-weight: bold;
}

.bottom-main-panel div {
    display: flex;
    justify-content: space-between;
}

.footer {
    background-color: #20232a;
    color: #e0f2fe;
    padding: 10px;
    border-top: 1px solid #ff8800;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0px;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #e0f2fe;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff8800;
}

.footer-support {
    display: flex;
    gap: 10px;
    margin-left: 106px;
    text-align: center;
}

.donate-button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background-color: #0c3a00;
    border: 1px solid #000000;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.donate-button:hover {
    background-color: #00af17;
    color: #4f5053;
}

.tutorial-button {
    display: inline-block;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #000000;
    background-color: #f78c00;
    border: 1px solid #000000;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.tutorial-button:hover {
    background-color: #fbff00;
    color: #4f5053;
}

.swal-custom {
    background-color: #333 !important;
    color: #fff !important;
}

.swal-custom .swal2-title {
    color: #fff !important;
}

.swal-custom .swal2-input {
    background-color: #444 !important;
    color: #fff !important;
}

.swal-custom .swal2-confirm {
    background-color: #ff8800 !important;
    color: #fff !important;
}

.swal-custom .swal2-cancel {
    background-color: #6c757d !important;
    color: #fff !important;
}

.disabled-input {
    background-color: #44050a;
    border-color: #c20013;
    color: #721c24;
    pointer-events: none;
    user-select: none;
}