body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: #007bff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #0056b3;
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #e9ecef;
    font-size: 0.9em;
    position: fixed;
    bottom: 0;
    width: 100%;
}

h1 {
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: #007bff;
    outline: none;
}

button {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    main {
        padding: 10px;
        margin: 10px;
    }

    form {
        max-width: 100%;
    }
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.task-block {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: none;
}

.task-header {
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.task-info {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.task-info span {
    flex: 1;
    min-width: 100px;
}

.task-request-label,
.task-prediction-label {
    font-weight: bold;
    font-size: 1em;
}

.task-request-text,
.task-prediction-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

@media (max-width: 600px) {
    .task-info {
        flex-direction: column;
        gap: 5px;
    }
}

.status-completed {
    color: #006400;
    font-weight: bold;
}

.status-failed {
    color: #8B0000;
    font-weight: bold;
}

.failed-prediction {
    color: #8B0000;
    font-style: italic;
    margin-top: 5px;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.transaction-table th, .transaction-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.transaction-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.transaction-withdraw {
    color: #8B0000;
    font-weight: bold;
}

.transaction-deposit {
    color: #006400;
    font-weight: bold;
}