* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="file"],
input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

button {
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.upload-form {
    margin-bottom: 2rem;
}

.result-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.result-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

#transcription, #translation {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #333;
}

#audioPreview {
    width: 100%;
    margin: 1rem 0;
}

.logout {
    display: inline-block;
    color: #e74c3c;
    text-decoration: none;
    margin-top: 1rem;
}

.logout:hover {
    text-decoration: underline;
}

#loading {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

#loading p {
    color: #666;
    margin: 0;
}

#results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }
    
    button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.logout-button {
    background-color: #e74c3c;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.logout-button:hover {
    background-color: #c0392b;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-header h3 {
    margin: 0;
}

.copy-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.copy-button.copied {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.copy-icon {
    font-size: 1.1rem;
}

.copy-text {
    font-weight: 500;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.button-group button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button {
    background-color: #28a745;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.submit-button i {
    font-size: 1.1rem;
}

.reset-button {
    background-color: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reset-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.reset-button i {
    font-size: 1.1rem;
}

/* Styly pro input souboru */
.file-input {
    display: none;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.file-input-label:hover {
    border-color: #28a745;
    background-color: #f0f0f0;
}

.file-input-label i {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.file-input-label span {
    color: #666;
}

.file-name {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Styly pro tlačítka nahrávání */
.record-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.record-button, .stop-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.record-button {
    background-color: #28a745;
    color: white;
}

.record-button:hover {
    background-color: #218838;
}

.record-button i {
    font-size: 1.1rem;
}

.stop-button {
    background-color: #dc3545;
    color: white;
}

.stop-button:hover {
    background-color: #c82333;
}

.stop-button:disabled {
    background-color: #dc354580;
    cursor: not-allowed;
}

.stop-button i {
    font-size: 1.1rem;
} 