/* Pamatstils visai lapai */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #2c3e50;
    color: #ecf0f1;
    margin: 0;
    padding: 20px;
    text-align: center;
}

h1 {
    text-align: center;
    color: #ecf0f1;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Page Header for user greeting and hamburger */
.page-header {
    display: flex;
    justify-content: space-between; /* Space out greeting and hamburger */
    align-items: center;
    padding: 10px 20px;
    background-color: #34495e;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.user-greeting {
    font-size: 1.2em;
    font-weight: bold;
    color: #f1c40f; /* Highlight user greeting */
}

/* Hamburger menu icon */
.hamburger-menu {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    z-index: 1001; /* Above other content */
    position: relative; /* For position relative to bars */
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #ecf0f1;
    transition: all 0.3s ease-in-out;
}

/* Hamburger menu animation */
.hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Navigation menu (initially hidden, slides in) */
.main-nav {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    position: fixed; /* Fixed position */
    top: 0;
    right: -250px; /* Initially off-screen */
    width: 250px;
    height: 100%;
    background-color: #34495e;
    padding-top: 70px; /* Space for hamburger/greeting */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1000; /* Below hamburger icon */
}

.main-nav.active {
    right: 0; /* Slide in */
}

.main-nav button {
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    margin: 10px 20px; /* Adjust margin for vertical stack */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Align text left within button */
}

.main-nav button:hover {
    background-color: #c0392b;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Logout button specific style */
.logout-button {
    background-color: #f39c12; /* A different color for logout */
}

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

/* Galvenais konteineris formām */
.container {
    background-color: #34495e;
    padding: 25px;
    margin: 20px auto;
    width: 50%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Formu stils */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

label {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
}

/* Ievades lauki un tekstlodziņš */
input, textarea {
    width: 80%;
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: none;
    outline: none;
    color: #34495e; /* Text color for input */
}

/* Teksta laukam fiksēts augstums */
textarea {
    resize: none;
    height: 80px;
}

/* Pogas stils */
button {
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    margin-top: 10px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background-color: #c0392b;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1002; /* Sit on top, higher than hamburger */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.modal-content {
    background-color: #34495e;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    width: 40%; /* Adjust width as needed */
    max-width: 500px;
    text-align: center;
    color: #ecf0f1;
}

.modal-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.modal-content form {
    gap: 10px;
}

.modal-content label {
    font-size: 1em;
    margin-top: 5px;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
    width: 70%;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #2c3e50;
}

.modal-content button {
    padding: 10px 25px;
    font-size: 1em;
}

.modal-content p {
    margin-top: 20px;
    font-size: 0.9em;
}

.modal-content .switch-form {
    color: #e74c3c;
    cursor: pointer;
    text-decoration: underline;
}

.modal-content .switch-form:hover {
    color: #c0392b;
}

.auth-form {
    display: block;
}