body {
    margin: 0;
    padding: 0;
    background-color: #E8EEF3;
    font-family: Arial, sans-serif;
}

.navbar {
    background-color: #013068;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 90%;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #013068;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background-color: #002050;
}

button {
    background-color: #013068;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #002050;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #013068;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.error {
    color: red;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 4px;
}

.vocabulary-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.vocabulary-form {
    margin-top: 20px;
}

.success {
    color: green;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #e8f5e9;
    border-radius: 4px;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.content {
    padding: 20px;
}

.vocabulary-form h3 {
    color: #013068;
    margin-top: 30px;
    margin-bottom: 15px;
}

.info {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.practice-settings {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.settings-form {
    display: flex;
    gap: 20px;
}

.settings-form .form-group {
    flex: 1;
}

.practice-area {
    margin-top: 30px;
}

.vocab-question {
    text-align: center;
    margin: 20px 0;
}

.question-word {
    font-size: 24px;
    color: #013068;
    margin: 0;
}

.practice-form input[type="text"] {
    font-size: 18px;
    text-align: center;
}

.practice-form button {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px;
    font-size: 16px;
}

.friends-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.invite-form {
    margin-bottom: 30px;
}

.invitations-list {
    margin-top: 30px;
}

.invitations-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.invitations-list th,
.invitations-list td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.invitations-list th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #013068;
}

.invitations-list tr:hover {
    background-color: #f9f9f9;
}

textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.translation-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.translation-group label {
    min-width: 150px;
    margin-bottom: 0;
}

.translation-group input {
    flex: 1;
    background-color: #f8f9fa;
}

.translation-group input:focus {
    background-color: white;
}

.audio-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    margin-right: 5px;
}

.audio-btn:hover {
    background: #f0f0f0;
    border-radius: 50%;
}

.vocab-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.vocab-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.vocab-card:hover {
    transform: translateY(-2px);
}

.vocab-english {
    font-size: 18px;
    color: #013068;
}

.vocab-german {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #013068;
    color: white;
    padding: 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

.vocab-card:hover .vocab-german {
    display: block;
}

.reading-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.word {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.word:hover {
    color: #013068;
}

.word.known {
    cursor: default;
}

.word.translatable {
    border-bottom: 1px dotted #013068;
}

.translation {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #013068;
    color: white;
    padding: 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    font-size: 14px;
}

.word:hover .translation {
    display: block;
}

.search-form {
    margin-bottom: 30px;
}

.search-results {
    margin-top: 30px;
}

.edit-form {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.edit-form .form-group {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 0;
}

.edit-form button {
    margin-top: 0;
}

.admin-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-link {
    display: block;
    padding: 15px;
    background-color: #013068;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s;
}

.admin-link:hover {
    background-color: #002050;
}

.text-form {
    margin-bottom: 30px;
}

.text-list {
    margin-top: 30px;
}

.text-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.text-list th,
.text-list td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.text-list th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #013068;
}

.btn-edit,
.btn-delete {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 4px;
    text-decoration: none;
}

.btn-edit {
    background-color: #013068;
    color: white;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.admin-button {
    background-color: #dc3545;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.admin-button:hover {
    background-color: #c82333;
}

.users-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.users-list th,
.users-list td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.users-list th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #013068;
}

.users-list .actions {
    white-space: nowrap;
}

.users-list .actions form {
    margin: 0 5px;
} 