/* ===== GLOBAL ===== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f4f9;
    margin: 0;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 10px;
}

.card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 16px; /* πιο smooth */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* πιο soft */
    transition: transform 0.2s ease;
}

button {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    background: #f7b500;
    font-weight: bold;
    cursor: pointer;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== RESULTS BARS ===== */

.bar {
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin: 6px 0;
    height: 12px;
}

.bar-yes {
    background: #4CAF50;
    height: 100%;
}

.bar-no {
    background: #f44336;
    height: 100%;
}

/* ===== NAVBAR ===== */

.navbar {
    background: #6a0dad;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: bold;
    font-size: 20px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .nav-links {
        display: none;
        flex-direction: column;
        background: #6a0dad;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .menu-toggle {
        display: block;
    }

    .card button {
        width: 100%;
        margin: 8px 0;
    }
}
/* ===== PI LOGIN BUTTON ===== */

.pi-btn {
    border: none;
    border-radius: 20px;
    padding: 4px 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

/* Login Button */
.pi-btn.login {
    background: linear-gradient(135deg, #f7b500, #ffd86b);
    color: #4a2c00;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.pi-btn.login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* Logout Button */
.pi-btn.logout {
    background: #ffffff;
    color: #6a0dad;
    border: 2px solid #ffffff;
}

.pi-btn.logout:hover {
    background: #f4f4f9;
}

/* Username Display */
.pi-user {
    color: #fff;
    font-weight: bold;
    margin-right: 10px;
}

/* Mobile Styling */
@media (max-width: 768px) {
    .pi-btn {
        width: 80%;
        margin: 10px auto;
        display: block;
    }

    .pi-user {
        display: block;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
        flex-direction: column;
        background: #6a0dad;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    /* 🔥 ΑΠΑΡΑΙΤΗΤΟ ΓΙΑ ΤΟ BURGER MENU */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .menu-toggle {
        display: block;
    }

    .card button {
        width: 100%;
        margin: 8px 0;
    }
}