/* Vispārējā atiestatīšana */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Ķermeņa stils */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f3f4f6;
    color: #333;
    font-size: 16px;
}

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

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

/* Galvenā satura stils */
.content {
    width: 100%;
    max-width: 800px;
    padding: 100px 20px 20px;
    text-align: center;
}

.content h2 {
    font-size: 1.8rem;
    color: #4e54c8;
    margin-bottom: 30px;
}

/* Kartīšu konteiners */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Kartīšu stils */
.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.card img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.card p {
    font-size: 1rem;
    color: #333;
    font-weight: bold;
}

/* Responsīvais dizains */
@media (max-width: 768px) {
    .content {
        padding-top: 80px;
    }

    nav ul {
        gap: 10px;
    }

    .card {
        width: 100%;
        max-width: 160px;
    }
}

/* Papildsekciju stils */
.extra-sections {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: left;
    padding: 0 20px;
}

.section {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.section h3 {
    color: #4e54c8;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.section p {
    color: #333;
    font-size: 1rem;
}