* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, #083c3c 0%, #0f5f57 45%, #6cc8be 100%);
    position: relative;
}

body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── Background shapes ── */
.background-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.shape-1 {
    width: 450px;
    height: 450px;
    left: -150px;
    bottom: -150px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    right: -120px;
    top: 50px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    right: 150px;
    bottom: -100px;
}

.dot-pattern {
    position: absolute;
    top: 120px;
    left: 40px;
    width: 180px;
    height: 180px;
    background-image: radial-gradient(rgba(255,255,255,0.15) 2px, transparent 2px);
    background-size: 28px 28px;
}

/* ── Everything above the background ── */
header, main, .page-wrapper, .form-container, .login-container, .activity-detail-container {
    position: relative;
    z-index: 1;
}

/* ── Header ── */
header {
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: white;
    padding: 16px 24px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-section {
    display: flex;
    gap: 12px;
    align-items: center;
}

.username {
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
}

.logout-btn {
    background: rgba(255,255,255,0.12);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.25);
    transition: background 0.25s, transform 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.admin-link {
    background: rgba(92,184,92,0.85);
    color: white;
    padding: 7px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 600;
    transition: background 0.2s;
}

.admin-link:hover {
    background: rgba(76,174,76,0.95);
}

/* ── Cards ── */
.card, .activity-card, .activity-detail, .comments-section, .login-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: none;
    padding: 30px;
}

main {
    max-width: 1200px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

h1, h2, h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
}

p {
    color: #666;
    margin-bottom: 10px;
}

/* ── Login ── */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 600;
    font-size: 0.9em;
}

input {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fafafa;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    outline: none;
    border-color: #1e8b72;
    box-shadow: 0 0 0 3px rgba(30,139,114,0.12);
    background: white;
}

select {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fafafa;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
}

select:focus {
    outline: none;
    border-color: #1e8b72;
    box-shadow: 0 0 0 3px rgba(30,139,114,0.12);
}

textarea {
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    color: #333;
    font-family: inherit;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #1e8b72;
    box-shadow: 0 0 0 3px rgba(30,139,114,0.12);
}

/* ── Buttons ── */
button {
    width: 100%;
    padding: 12px;
    background: #1e8b72;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

button:hover {
    background: #17725d;
    transform: translateY(-2px);
}

/* ── Alerts ── */
.error {
    background: #fff0f0;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-size: 0.9em;
}

.error:empty { display: none; }

.success {
    background: #eafaf1;
    color: #1e8b72;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-size: 0.9em;
}

.success:empty { display: none; }

.info {
    background: #e8f4f2;
    color: #0b6a63;
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #b8ddd8;
    font-size: 0.9em;
}

.info:empty { display: none; }

/* ── Icons ── */
i { margin-right: 0.5em; }
button i { margin-right: 0.4em; }
.vote-btn i { margin-right: 0.3em; }
.comment-delete-btn i { margin-right: 0.3em; }
.detail-label i { margin-right: 0.4em; color: inherit; }