/* styles.css */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode body {
    background-color: #1b1b1b;
    color: #ffffff;
}

.toggle-container {
    position: absolute;
    top: 20px;
    left: 20px;
}

.dark-mode-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 5px 10px;
    transition: background-color 0.3s;
    position: relative;
}

.dark-mode .dark-mode-label {
    background-color: #333333;
}

.dark-mode-icon {
    font-size: 18px;
}

.tooltip {
    display: none; /* Hidden by default */
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    z-index: 1;
    margin-left: 10px; /* Add margin to create separation space */
}

.dark-mode-label:hover .tooltip {
    display: block;
}

.container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode .container {
    background-color: #333333;
    color: #ffffff;
}

textarea {
    width: calc(100% - 20px); /* Adjust width to account for padding */
    height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    transition: background-color 0.3s, color 0.3s;
}

textarea[readonly] {
    background-color: #e9ecef;
}

.dark-mode textarea {
    background-color: #4d4d4d;
    color: #ffffff;
    border: 1px solid #666666;
}

.dark-mode textarea[readonly] {
    background-color: #4d4d4d;
}

button {
    margin: 5px;
    padding: 10px 20px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.dark-mode button {
    background-color: #555555;
    color: #ffffff;
}

.dark-mode button:hover {
    background-color: #777777;
}
