/* Vispārējā atiestatīšana un stili */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f3f4f6;
    color: #333;
}

/* Galvenes stils */
header {
    width: 100%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s, border-bottom 0.3s;
}

nav ul li a.active,
nav ul li a:hover {
    color: #6c63ff;
    border-bottom: 2px solid #6c63ff;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info .username {
    font-weight: bold;
    color: #4e54c8;
}

.logout {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.logout img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/* Materiālu tabulas stils */
.table {
    width: 90%;
    margin: 80px auto 30px; /* Pielāgota atstarpe galvenei */
    border-collapse: collapse;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.table th {
    background-color: #6c63ff;
    color: #fff;
    font-weight: bold;
}

.table td {
    color: #333;
    font-weight: normal;
}

/* Statusa krāsu stili */
.status-green {
    background-color: #00a92a;
    color: #00a92a;
    font-weight: bold;
    border: 1px solid #00a92a;
}

.status-orange {
    background-color: #ffc200;
    color: #ffbd00;
    font-weight: bold;
    border: 1px solid #ffc100;
}

.status-red {
    background-color: #ff0016;
    color: #ff0010;
    font-weight: bold;
    border: 1px solid #ff0020;
}

/* Eksporta pogas stils */
.button {
    display: block;
    margin: 20px auto;
    padding: 10px 25px; /* Vienota atstarpe */
    background-color: #6c63ff;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #4e54c8;
    transform: scale(1.05);
}

/* Materiālu pievienošanas sadaļa */
.add-material {
    margin: 30px auto;
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    font-size: 1rem;
}

.add-material .form-title {
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.form-group input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus {
    border-color: #6c63ff;
    background-color: #fff;
    outline: none;
}

/* Responsīvais dizains */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}

/* Rīkjoslas stils (meklēšanas josla un filtrēšana) */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 800px;
    margin: 120px auto 20px; /* Atstarpe zem fiksētās galvenes */
    padding: 10px 15px;
    background-color: #fff;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.toolbar input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f9f9f9;
    margin-right: 10px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.toolbar input[type="text"]:focus {
    border-color: #6c63ff;
    background-color: #fff;
    outline: none;
}

.toolbar .button {
    padding: 10px 20px;
    background-color: #6c63ff;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.toolbar .button:hover {
    background-color: #4e54c8;
    transform: scale(1.05);
}

/* Materiālu noņemšanas sadaļa */
.remove-material {
    margin: 30px auto;
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    font-size: 1rem;
}

.remove-material .form-title {
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.remove-material .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.remove-material .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.remove-material .form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.remove-material .form-group input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.remove-material .form-group input:focus {
    border-color: #6c63ff;
    background-color: #fff;
    outline: none;
}

/* Profila pogas stils */
.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.profile-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.profile-btn:hover {
    transform: scale(1.1);
}

/* Izrakstīšanās pogas stils */
.logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: #ff4d4d;
    color: #ffffff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.logout:hover {
    background-color: #e60000;
    transform: translateY(-2px);
}

.logout:active {
    background-color: #cc0000;
    transform: translateY(0);
}