/* Lunetrix Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

#loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: 18px;
}

#auth-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-box {
    background: #222;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
}

.auth-box h2 {
    margin-bottom: 15px;
    color: #00ff88;
}

.auth-box p {
    margin-bottom: 20px;
    color: #ccc;
}

.auth-box button {
    background: #00ff88;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.auth-box button:hover {
    background: #00cc66;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

header h1 {
    color: #00ff88;
}

#user-info {
    color: #ccc;
}

main {
    max-width: 800px;
    margin: 0 auto;
}

section {
    margin-bottom: 40px;
    background: #222;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

section h3 {
    margin-bottom: 15px;
    color: #00ff88;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.item:last-child {
    border-bottom: none;
}

.actions {
    display: flex;
    gap: 10px;
}

button {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: #555;
}

.logout-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff4444;
    color: white;
}

.logout-btn:hover {
    background: #cc3333;
}

/* Index page styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

header h1 {
    color: #00ff88;
    margin-bottom: 10px;
}

header p {
    color: #ccc;
    font-size: 18px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    color: #00ff88;
    margin-bottom: 15px;
}

section h3 {
    color: #fff;
    margin: 20px 0 10px 0;
}

section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

ul {
    color: #ccc;
    padding-left: 20px;
}

ul li {
    margin-bottom: 8px;
}

.btn-primary {
    display: inline-block;
    background: #00ff88;
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #00cc66;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .actions {
        width: 100%;
        justify-content: flex-end;
    }

    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}