* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #0f172a;
    color: #e5e7eb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.rp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 6vw;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.rp-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.rp-logo-icon {
    font-size: 1.4rem;
}

.rp-logo-text {
    letter-spacing: 0.03em;
}

.rp-nav {
    display: flex;
    gap: 0.75rem;
}

.rp-nav-link {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.rp-nav-link:hover {
    border-color: rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.9);
}

.rp-nav-cta {
    background: linear-gradient(135deg, #22c55e, #22d3ee);
    color: #0f172a;
    font-weight: 600;
}

.rp-nav-cta:hover {
    filter: brightness(1.05);
}

/* Main layout */
.rp-main {
    flex: 1;
    padding: 3rem 6vw 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Hero (landing / login) */
.rp-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: center;
}

.rp-hero-text h1 {
    font-size: clamp(2.3rem, 3vw + 1.5rem, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #a5b4fc, #22c55e);
    -webkit-background-clip: text;
    color: transparent;
}

.rp-hero-text p {
    color: #cbd5f5;
    max-width: 34rem;
    line-height: 1.5;
}

.rp-hero-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0 0.75rem;
    flex-wrap: wrap;
}

.rp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.rp-btn-primary {
    background: linear-gradient(135deg, #22c55e, #22d3ee);
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.2);
}

.rp-btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.3);
}

.rp-btn-secondary {
    border-color: rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
}

.rp-btn-secondary:hover {
    background: rgba(15, 23, 42, 0.9);
}

.rp-btn-full {
    width: 100%;
}

.rp-hero-note {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Card used for login + forms */
.rp-hero-card,
.rp-dashboard-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 1.5rem;
    padding: 1.8rem 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.7);
}

.rp-hero-card h2,
.rp-dashboard-card h2 {
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
}

/* Forms (login, banned, repairs, calendar) */
.rp-login-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.rp-login-form label {
    font-size: 0.86rem;
    color: #cbd5f5;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rp-login-form input,
.rp-login-form select {
    padding: 0.6rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    outline: none;
    font-size: 0.95rem;
}

.rp-login-form input:focus,
.rp-login-form select:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.6);
}

.rp-form-footer {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.rp-form-footer a {
    color: #22d3ee;
}

/* Features on landing page */
.rp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}

.rp-feature {
    padding: 1.3rem 1.2rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.rp-feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.rp-feature p {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Footer */
.rp-footer {
    padding: 1rem 6vw 1.4rem;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: center;
}

/* ===== Dashboard layout ===== */
.rp-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rp-dashboard-greeting h1 {
    font-size: clamp(2rem, 2.4vw + 1rem, 2.6rem);
    background: linear-gradient(135deg, #a5b4fc, #22c55e);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.rp-dashboard-greeting p {
    max-width: 38rem;
    color: #cbd5f5;
}

.rp-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 2rem;
}

.rp-dashboard-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Dashboard quick menu */
.rp-dashboard-menu {
    list-style: none;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.rp-dashboard-menu li a {
    font-size: 0.95rem;
    color: #e5e7eb;
    padding: 0.45rem 0.6rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid transparent;
}

.rp-dashboard-menu li a:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(148, 163, 184, 0.7);
}

/* ===== Calendar base styles ===== */
.rp-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.rp-calendar-title h2 {
    font-size: 1.15rem;
}

.rp-calendar-subtitle {
    font-size: 0.85rem;
    color: #9ca3af;
}

.rp-cal-nav-btn {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    color: #e5e7eb;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
}

.rp-cal-nav-btn:hover {
    background: rgba(15, 23, 42, 1);
}

.rp-calendar {
    margin-top: 0.5rem;
}

.rp-calendar-weekdays,
.rp-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.rp-calendar-weekdays span {
    font-size: 0.75rem;
    text-align: center;
    color: #9ca3af;
}

.rp-calendar-grid {
    margin-top: 0.35rem;
}

.rp-calendar-cell {
    min-height: 2.6rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(30, 64, 175, 0.6);
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0.25rem 0.35rem;
    font-size: 0.85rem;
    color: #e5e7eb;
    position: relative;
}

.rp-calendar-cell > span:first-child {
    pointer-events: none;
}

.rp-calendar-cell-empty {
    border-color: transparent;
    background: transparent;
}

.rp-calendar-cell-today {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.6);
}

/* Dot and title for days with events */
.rp-calendar-event-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22d3ee;
    margin-left: auto;
    margin-top: auto;
}

.rp-calendar-event-title {
    font-size: 0.65rem;
    padding: 2px 4px;
    margin-top: 2px;
    border-radius: 6px;
    background: rgba(34, 211, 238, 0.18); /* soft teal glow */
    color: #22d3ee;                       /* bright teal text */
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-self: flex-end;
}

/* Tables (banned, repairs, events list) */
.rp-table-wrapper {
    margin-top: 0.75rem;
    overflow-x: auto;
}

.rp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.rp-table th,
.rp-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(30, 64, 175, 0.7);
    text-align: left;
}

.rp-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.rp-table-actions a {
    margin-right: 0.6rem;
    font-size: 0.85rem;
    color: #22d3ee;
}

.rp-table-actions a:last-child {
    margin-right: 0;
}

/* Avatars */
.rp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.rp-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    color: #cbd5f5;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Status pill */
.rp-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.rp-pill-active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.rp-pill-inactive {
    background: rgba(148, 163, 184, 0.2);
    color: #e5e7eb;
}

/* Alerts */
.rp-alert {
    padding: 0.6rem 0.8rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
}

.rp-alert-error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.rp-alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #bbf7d0;
}

/* Responsive */
@media (max-width: 850px) {
    .rp-hero {
        grid-template-columns: 1fr;
    }

    .rp-main {
        padding: 2.2rem 1.5rem 2rem;
    }

    .rp-header {
        padding: 0.75rem 1.5rem;
    }

    .rp-hero-card {
        order: -1;
    }
}

@media (max-width: 900px) {
    .rp-dashboard-grid {
        grid-template-columns: 1fr;
    }
}
