/* ========================================
   INDEX - GLOBAL/BASE STYLES ONLY
   (Section styles live in section CSS files)
   ======================================== */

* {
    box-sizing: border-box;
    max-width: 100%;
}

body.index-body {
    font-family: Arial, sans-serif;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    text-align: center;
    overflow-x: hidden;
    cursor: default;
}

h2 {
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 2rem;
}

/* Auth/User info (kept global so it is always fixed at top-right) */
.user-info {
    position: fixed;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    font-size: 1.1rem;
    z-index: 9999;
    box-sizing: border-box;
    border-radius: 8px;
}

.welcome-mark {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.95em;
    line-height: 1.3;
    min-width: 80px;
    min-height: 32px;
}

.user-icon {
    margin-right: 2px;
    vertical-align: middle;
    height: 1.3em;
    width: 1.3em;
    flex-shrink: 0;
}

.user-icon circle,
.user-icon path {
    stroke: #ffffff;
    stroke-width: 2.2;
}

.role-mark {
    color: #ffd700;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-left: 3px;
    font-size: 0.98em;
}

.login-btn,
.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    color: #ffffff;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 18px;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 8px;
    cursor: pointer;
    outline: none;
    min-width: 60px;
    white-space: nowrap;
}

.login-btn {
    background: linear-gradient(135deg, #8b4513 0%, #c8102e 100%);
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.25);
}

.login-btn:hover {
    background: linear-gradient(135deg, #c8102e 0%, #8b4513 100%);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.35), 0 2px 8px rgba(200, 16, 46, 0.25);
    transform: translateY(-2px);
    text-decoration: none;
    border-color: rgba(255, 215, 0, 0.5);
}

.logout-btn {
    background: linear-gradient(135deg, #c8102e 0%, #8b4513 100%);
    box-shadow: 0 3px 10px rgba(200, 16, 46, 0.25);
    min-height: 28px;
    position: relative;
    z-index: 2;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #8b4513 0%, #c8102e 100%);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.35), 0 2px 8px rgba(139, 69, 19, 0.25);
    transform: translateY(-2px);
    text-decoration: none;
    border-color: rgba(255, 215, 0, 0.5);
}

.logout-btn:active {
    transform: scale(0.98);
}

.logout-icon {
    vertical-align: middle;
    height: 1.1em;
    width: 1.1em;
    margin-right: 2px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .user-info {
        top: 10px;
        right: 10px;
        gap: 8px;
    }

    .welcome-mark,
    .login-btn,
    .logout-btn {
        padding: 8px 10px;
        border-radius: 9px;
    }
}
