.container {
    background-color: #e9eef2;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
/*    max-width: 600px; */
}

p.example {
    color: red;
    text-align: center;
    margin-bottom: 25px;
}

p.description {
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    padding: 0 10px;
}

.input-container {
    margin-bottom: 20px;
}

.input-container label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

#vectorInput {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

#vectorInput.invalid-input {
    border-color: red;
    outline-color: red;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    text-align: left;
}

button#calculateButton {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1em;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

button#calculateButton:hover {
    background-color: #0056b3;
}

.result-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-header h3 {
    margin: 0;
    color: #0056b3;
    font-size: 1.3em;
}

.header-buttons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-buttons button {
    height: 32px;
    padding: 5px 10px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    position: relative;
    flex-shrink: 0;
    gap: 5px;
}

.header-buttons button svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.header-buttons button span:not(.copy-tooltip) {
    font-size: 0.9em;
    line-height: 1;
    white-space: nowrap;
}

button#copyBtn {
    background-color: #6c757d;
    margin-right: 10px;
}

button#copyBtn:hover {
    background-color: #5a6268;
}

button#copyBtn .copy-tooltip {
    visibility: hidden;
    width: 80px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    font-size: 0.8em;
    white-space: nowrap;
    pointer-events: none;
}

button#copyBtn.copied .copy-tooltip {
    visibility: visible;
    opacity: 1;
    background-color: #28a745;
}

button#copyBtn.copied[data-copy-state="error"] .copy-tooltip {
    background-color: #dc3545;
}


button#resetBtn {
    background-color: #dc3545;
}

button#resetBtn:hover {
    background-color: #c82333;
}

#result {
    width: 100%;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #f8f9fa;
    font-family: monospace;
    font-size: 0.95em;
    box-sizing: border-box;
    resize: vertical;
    color: #333;
    min-height: 550px;
}

#result.error {
    color: red;
    border-color: red;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
     p.description {
        padding: 0;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
     .header-buttons {
         justify-content: flex-start;
     }
}