body {
    margin: 0;
    padding: 0;
    font-family: 'Fira Code', monospace;
    background-color: #1A1A1A;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection {
    background-color: white; 
    color: black; 
  }
  
/* For Firefox */
::-moz-selection {
    background-color: white; 
    color: black; 
  }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.logo:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.logo i {
    color: #555555;
    font-size: 18px;
    transition: color 0.2s;
}

.logo:hover i {
    color: white;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#document-title {
    font-size: 14px;
    margin: 0;
    padding: 5px 10px;
    font-weight: 500;
    color: #555555;
    cursor: pointer;
}

#document-title:hover {
    color: white;
}

#document-title-input {
    font-size: 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555555;
    color: white;
    font-family: 'Fira Code', monospace;
    text-align: center;
    outline: none;
    padding: 5px;
    width: 300px;
}

.actions {
    display: flex;
    gap: 5px;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #555555;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.icon-button i {
    font-size: 18px;
    transition: color 0.2s;
}

.icon-button:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.terminal {
    flex-grow: 1;
    padding: 15px;
    overflow: auto;
    position: relative;
    display: flex;
    justify-content: center;
}

#notepad {
    width: 700px;
    height: 100%;
    background-color: transparent;
    color: white;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    resize: none;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    line-height: 1.5;
    caret-color: white;
}

/* Confirmation Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1A1A1A;
    border: 1px solid #222222;
    padding: 20px;
    width: 400px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    background-color: #444;
    color: white;
    border: none;
    padding: 6px 16px;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-btn:hover {
    background-color: #555;
}

.modal-content h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 16px;
}

.modal-content h6 {
    margin: 5px 0;
    color: #59B6FF;
    font-size: 12px;
    font-weight: 500;
}

.modal-content p {
    margin: 5px 0;
    color: #777777;
    font-size: 14px;
    font-weight: 500;
}