body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 20px;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

h1, h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 25px;
}

.input-section {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"] {
    width: calc(100% - 110px); /* Adjust for button */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    margin-right: 10px;
    vertical-align: middle;
}

button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    vertical-align: middle;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    background-color: #004085;
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
    font-size: 0.9em;
    display: none; /* Скрыто по умолчанию */
}

/* Key Card Styles */
.key-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.key-card-info {
    flex-grow: 1;
}

.key-card-info h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
}

.totp-code {
    font-size: 2em;
    font-weight: bold;
    color: #28a745;
    letter-spacing: 2px;
    margin-right: 20px;
}

.timer {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.key-card-actions {
    display: flex;
    gap: 10px;
}

.key-card-actions button {
    padding: 8px 12px;
    font-size: 0.9em;
}

.copy-button {
    background-color: #28a745;
}

.copy-button:hover {
    background-color: #218838;
}

.delete-button {
    background-color: #dc3545;
}

.delete-button:hover {
    background-color: #c82333;
}

#noKeysMessage {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px 0;
}