/* style.css */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background: #f4f4f4;
    color: #333;
}

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

h1, h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.button, .edit-link, .delete-link, .back-link, .logout-button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: background 0.3s ease;
    margin-right: 5px;
}

.button:hover {
    background: #0056b3;
}

.edit-link { background: #28a745; }
.edit-link:hover { background: #218838; }

.delete-link { background: #dc3545; }
.delete-link:hover { background: #c82333; }

.back-link { background: #6c757d; }
.back-link:hover { background: #5a6268; }

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


.list ul {
    list-style: none;
    padding: 0;
}

.list li {
    background: #e9ecef;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.list li > div:first-child {
    flex-grow: 1;
}

.list li a {
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.list li a:hover {
    text-decoration: underline;
}

form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input[type="text"],
form input[type="number"],
form input[type="file"],
form input[type="email"],
form input[type="password"],
form textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

form button[type="submit"] {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

form button[type="submit"]:hover {
    background: #0056b3;
}

/* Attēla stili priekšmetu skatā */
.item-photo {
    max-width: 150px;
    height: auto;
    display: block;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Ziņojumu stili */
.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: bold;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Valodu pārslēdzējs */
.lang-switcher {
    text-align: right;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.lang-switcher select, .lang-switcher button {
    margin-left: 10px;
}

/* Autentifikācijas statusa zona */
.auth-status {
    text-align: right;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}
.auth-status strong {
    color: #007bff;
}
.auth-status a {
    margin-left: 10px;
}
