/* 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;
}

/* Galvenā konteinera stils */
.container {
    padding: 100px 20px 20px; /* Pielāgota atstarpe, lai pielāgotos fiksētajai galvenei */
    max-width: 1200px;
    margin: 0 auto;
}

/* BUJ tabulas stils */
h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

#faq-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

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

#faq-table th {
    background-color: #6c63ff;
    color: white;
    font-weight: bold;
    text-align: center;
}

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

/* Pogu stils */
button {
    margin: 0 5px;
    padding: 8px 16px;
    background-color: #6c63ff;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* Responsīvais dizains */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        gap: 10px;
    }

    #faq-table th,
    #faq-table td {
        font-size: 0.9rem;
    }
}

/* 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);
}

.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);
}