/* Reset and base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-secondary: #64748b;
    --color-bg: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: var(--color-text);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.logout-form {
    display: inline;
}

/* Avatar Menu */
.avatar-menu {
    position: relative;
}

.avatar-menu-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.avatar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 200;
}

.avatar-menu.open .avatar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.avatar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.15s;
}

.avatar-dropdown-item:hover {
    background: var(--color-bg-secondary);
}

.avatar-dropdown-item:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

.avatar-dropdown-item:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

.avatar-dropdown-button {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.avatar-dropdown-item svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-secondary {
    background-color: var(--color-bg-secondary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-border);
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-success {
    background-color: #059669;
    color: white;
}

.btn-success:hover {
    background-color: #047857;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn:disabled,
.btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-primary.loading::after {
    border-top-color: white;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Events section */
.events-section {
    margin-bottom: 3rem;
}

.events-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.events-grid {
    display: grid;
    gap: 1rem;
}

/* Event card */
.event-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: box-shadow 0.2s;
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.5rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
}

.event-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 600;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.event-title a {
    color: var(--color-text);
    text-decoration: none;
}

.event-title a:hover {
    color: var(--color-primary);
}

.event-group,
.event-venue {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
}

.empty-state-icon {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.empty-state p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

/* Groups section */
.groups-section {
    margin-top: 3rem;
}

.groups-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.groups-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.group-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.group-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--color-primary);
}

.group-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.group-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.group-name {
    font-weight: 500;
}

/* Notification bell */
.notification-bell {
    position: relative;
}

.bell-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: color 0.2s;
}

.bell-button:hover {
    color: var(--color-primary);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-error);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
}

.notification-dropdown.open {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}

.notification-header a {
    font-size: 0.875rem;
    font-weight: normal;
    color: var(--color-primary);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-empty {
    padding: 1rem;
    text-align: center;
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
}

/* Auth pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.auth-card-wide {
    max-width: 500px;
}

.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
}

.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group small {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    padding: 0;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    line-height: 1;
}

.badge-info {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.badge-success {
    background-color: #d1fae5;
    color: #047857;
}

.badge-warning {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-info {
        align-items: center;
    }

    .settings-group-item {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* Not found page */
.not-found-page {
    max-width: 500px;
    margin: 4rem auto;
    text-align: center;
}

.not-found-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.not-found-page p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* Profile page */
.profile-page {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.profile-avatar-container {
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-size: 3rem;
    font-weight: 600;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-name {
    font-size: 2rem;
    margin: 0;
}

.profile-username {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.profile-github {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.5rem 0;
}

.profile-github:hover {
    color: var(--color-primary);
}

.profile-edit-btn {
    margin-top: 0.5rem;
    align-self: flex-start;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.profile-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-group-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.2s;
}

.profile-group-card:hover {
    border-color: var(--color-primary);
}

.profile-group-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-group-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.profile-group-info {
    display: flex;
    flex-direction: column;
}

.profile-group-name {
    font-weight: 500;
}

.profile-group-role {
    font-size: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
}

.profile-empty {
    color: var(--color-text-muted);
}

.profile-date {
    color: var(--color-text-muted);
}

/* Settings page */
.settings-page {
    max-width: 600px;
    margin: 0 auto;
}

.settings-page h1 {
    margin-bottom: 2rem;
}

.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.avatar-upload input[type="file"] {
    display: none;
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.password-match-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

/* Toggle switch */
.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 1rem;
}

.toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toggle-text strong {
    font-weight: 500;
}

.toggle-text small {
    color: var(--color-text-muted);
}

.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--color-border);
    border-radius: 13px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-switch {
    background: var(--color-primary);
}

.toggle-input:checked + .toggle-switch::after {
    transform: translateX(22px);
}

.toggle-input:focus + .toggle-switch {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.settings-groups {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
}

.settings-group-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-group-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.settings-group-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.settings-group-name {
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
}

.settings-group-name:hover {
    color: var(--color-primary);
}

.settings-group-action {
    flex-shrink: 0;
}

.settings-empty {
    color: var(--color-text-muted);
}

/* Settings navigation */
.settings-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.settings-nav-item {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--color-text-muted);
    border-radius: var(--radius) var(--radius) 0 0;
    transition: color 0.2s, background-color 0.2s;
}

.settings-nav-item:hover {
    color: var(--color-text);
    background-color: var(--color-bg-secondary);
}

.settings-nav-item.active {
    color: var(--color-primary);
    font-weight: 500;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: -1px;
}

/* Form static display */
.form-static {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-static code {
    background: var(--color-bg-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-family: monospace;
}

/* Members list */
.members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.member-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.member-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.member-name {
    font-weight: 500;
}

.member-email {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.member-joined {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.member-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.role-form select {
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: white;
    font-size: 0.875rem;
}

/* Members responsive */
@media (max-width: 768px) {
    .member-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .member-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Group page */
.group-page {
    max-width: 900px;
    margin: 0 auto;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.group-header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.group-header-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.group-header-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.group-header-name {
    font-size: 2rem;
    margin: 0 0 0.25rem 0;
}

.group-header-organizers {
    color: var(--color-text-muted);
    margin: 0;
}

.group-header-organizers a {
    color: var(--color-text);
    text-decoration: none;
}

.group-header-organizers a:hover {
    color: var(--color-primary);
}

.group-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.group-section {
    margin-bottom: 2.5rem;
}

.group-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.events-grid-compact {
    gap: 0.75rem;
}

.event-card-past {
    opacity: 0.7;
}

.event-card-past:hover {
    opacity: 1;
}

.organizers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.organizer-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    transition: background-color 0.2s;
}

.organizer-card:hover {
    background: var(--color-border);
}

.organizer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.organizer-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.organizer-name {
    font-weight: 500;
}

/* Error page */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-icon {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.error-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.error-page p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Responsive group page */
@media (max-width: 768px) {
    .group-header {
        flex-direction: column;
        gap: 1rem;
    }

    .group-header-info {
        flex-direction: column;
        text-align: center;
    }

    .group-header-actions {
        width: 100%;
        flex-direction: column;
    }

    .group-header-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Help Out Page */
.help-out-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.help-out-page .page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.help-out-page .page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.help-out-page .page-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.help-out-form {
    background: var(--color-bg);
}

.form-section {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.type-option {
    cursor: pointer;
}

.type-option input[type="radio"] {
    display: none;
}

.type-card {
    padding: 1.25rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s;
}

.type-card:hover {
    border-color: var(--color-primary);
}

.type-option input[type="radio"]:checked + .type-card {
    border-color: var(--color-primary);
    background: rgba(79, 70, 229, 0.05);
}

.type-icon {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.type-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.type-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

.required {
    color: var(--color-error);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.venue-field-required .venue-required {
    display: inline;
}

.form-actions {
    text-align: center;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

/* Help out responsive */
@media (max-width: 768px) {
    .type-selector {
        grid-template-columns: 1fr;
    }

    .type-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    .type-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .type-card h3 {
        margin-bottom: 0.25rem;
    }
}

/* Start Group Page */
.start-group-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.start-group-page .page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.start-group-page .page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.start-group-page .page-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.start-group-form .form-section {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.start-group-form .form-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.input-with-suffix {
    display: flex;
    align-items: center;
}

.input-with-suffix input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-suffix {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-left: none;
    padding: 0.625rem 0.75rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.info-box {
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.info-box h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.info-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.info-box li:last-child {
    margin-bottom: 0;
}

/* Admin Page */
.admin-page {
    padding: 2rem 0;
}

.admin-page .page-header {
    margin-bottom: 2rem;
}

.admin-page .page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.admin-page .page-header p {
    color: var(--color-text-muted);
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.admin-card-title h3 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
}

.admin-card-slug {
    font-size: 0.9rem;
    color: var(--color-primary);
}

.admin-card-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.admin-card-body {
    margin-bottom: 1rem;
}

.admin-card-description {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.admin-card-requester {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.admin-card-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.inline-form {
    display: inline;
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-icon {
    color: var(--color-success);
    margin-bottom: 1rem;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--color-text-muted);
}

/* Event Form Page */
.event-form-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.event-form-page .page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.event-form .form-section {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.event-form .form-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: var(--color-primary);
}

.radio-option input[type="radio"] {
    margin-top: 0.25rem;
}

.radio-option input[type="radio"]:checked + .radio-label strong {
    color: var(--color-primary);
}

.radio-label {
    display: flex;
    flex-direction: column;
}

.radio-label strong {
    font-weight: 500;
}

.radio-label small {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.event-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Event Detail Page */
.event-detail-page {
    padding: 2rem 0;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.event-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.event-date-badge {
    flex-shrink: 0;
    width: 80px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    text-align: center;
    padding: 0.75rem;
}

.event-month {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
}

.event-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-header-info {
    flex: 1;
}

.event-header-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--color-text-muted);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-actions {
    flex-shrink: 0;
}

.event-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.event-main {
    min-width: 0;
}

.event-section {
    margin-bottom: 2rem;
}

.event-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.event-description {
    line-height: 1.7;
    white-space: pre-wrap;
}

.speakers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.speaker-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
}

.speaker-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.speaker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.speaker-info {
    display: flex;
    flex-direction: column;
}

.speaker-name {
    font-weight: 500;
}

.speaker-talk {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.venue-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
}

.venue-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius);
}

.venue-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.venue-address {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

.event-sidebar {
    position: sticky;
    top: 2rem;
}

.event-sidebar-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.event-sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.rsvp-count {
    text-align: center;
    margin-bottom: 1rem;
}

.rsvp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.rsvp-label {
    color: var(--color-text-muted);
}

.rsvp-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-success);
    font-weight: 500;
    margin-bottom: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.sponsors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sponsor-badge {
    padding: 0.5rem 0.75rem;
    background: var(--color-bg);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.sponsor-badge img {
    max-height: 32px;
    max-width: 100px;
}

/* Event List Page */
.event-list-page {
    padding: 2rem 0;
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.page-header-row .page-header {
    margin-bottom: 0;
}

.page-header-row .page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.page-header-row .page-header p {
    color: var(--color-text-muted);
    margin: 0;
}

.events-table-container {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
}

.events-table th,
.events-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.events-table th {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.events-table tbody tr:last-child td {
    border-bottom: none;
}

.events-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.event-title-link {
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
}

.event-title-link:hover {
    color: var(--color-primary);
}

.event-time-small {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-transform: uppercase;
}

.status-draft {
    background: var(--color-bg);
    color: var(--color-text-muted);
}

.status-published {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.actions-cell {
    white-space: nowrap;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
}

/* Event responsive */
@media (max-width: 768px) {
    .event-content {
        grid-template-columns: 1fr;
    }

    .event-sidebar {
        position: static;
    }

    .event-header {
        flex-direction: column;
    }

    .event-date-badge {
        width: auto;
        display: flex;
        gap: 0.5rem;
        align-items: baseline;
        padding: 0.5rem 1rem;
    }

    .event-day {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header-row {
        flex-direction: column;
        gap: 1rem;
    }

    .events-table-container {
        overflow-x: auto;
    }
}

/* Attendees Page */
.attendees-page {
    padding: 2rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--color-text-muted);
}

.attendees-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.attendees-list-container {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.attendees-table {
    width: 100%;
    border-collapse: collapse;
}

.attendees-table th,
.attendees-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.attendees-table th {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.attendees-table tbody tr:last-child td {
    border-bottom: none;
}

.attendees-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.attendee-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attendee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.attendee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attendee-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.attendee-details {
    display: flex;
    flex-direction: column;
}

.attendee-name {
    font-weight: 500;
}

.attendee-email {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.rsvp-time {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.status-badge svg {
    vertical-align: middle;
    margin-right: 0.25rem;
}

.text-muted {
    color: var(--color-text-muted);
}

/* Attendees responsive */
@media (max-width: 768px) {
    .attendees-stats {
        grid-template-columns: 1fr;
    }

    .attendees-list-container {
        overflow-x: auto;
    }

    .attendees-table {
        min-width: 600px;
    }
}

/* Raffle Page */
.raffle-page {
    padding: 2rem 0;
}

.raffle-page .page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.back-link:hover {
    text-decoration: underline;
}

.raffle-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.raffle-draw-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.raffle-draw-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.raffle-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.raffle-stat {
    text-align: center;
}

.raffle-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.raffle-stat .stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.raffle-form {
    max-width: 400px;
    margin: 0 auto;
}

.raffle-form .form-group {
    margin-bottom: 1.5rem;
}

.raffle-form .btn-lg {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.raffle-empty {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
}

.raffle-empty svg {
    opacity: 0.5;
    margin-bottom: 1rem;
}

.raffle-empty p {
    margin: 0.5rem 0;
}

.raffle-winners-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.raffle-winners-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-bg);
    border-radius: var(--radius);
}

.winner-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.winner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.winner-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.winner-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-prize {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-time {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.no-winners {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-muted);
}

/* Raffle responsive */
@media (max-width: 768px) {
    .raffle-layout {
        grid-template-columns: 1fr;
    }

    .raffle-stats {
        gap: 2rem;
    }

    .raffle-stat .stat-number {
        font-size: 2rem;
    }
}

/* Talk Proposals Page */
.proposals-page {
    padding: 2rem 0;
}

.proposals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.proposal-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.proposal-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-accepted {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.proposal-description {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.proposal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.proposal-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.proposal-event a {
    color: var(--color-primary);
    text-decoration: none;
}

.proposal-event a:hover {
    text-decoration: underline;
}

/* Proposal Form Page */
.proposal-form-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.proposal-form-page .page-header {
    margin-bottom: 2rem;
}

.proposal-form-page .page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.proposal-form-page .page-header p {
    color: var(--color-text-muted);
}

.proposal-form .form-section {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.proposal-form .form-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.proposal-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Proposals Manage Page (Organizer) */
.proposals-manage-page {
    padding: 2rem 0;
}

.proposals-manage-page .page-header {
    margin-bottom: 2rem;
}

.proposals-manage-page .page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.proposals-manage-page .page-header p {
    color: var(--color-text-muted);
}

.proposals-review-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.proposal-review-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.proposal-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1.5rem;
}

.proposal-review-title h3 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
}

.proposal-submitted {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.proposal-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 500;
}

.author-email {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.proposal-review-description {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.proposal-review-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.accept-form {
    flex: 1;
}

.accept-form-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.event-select {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
}

/* Proposals responsive */
@media (max-width: 768px) {
    .proposal-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .proposal-review-header {
        flex-direction: column;
    }

    .proposal-review-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .accept-form-row {
        flex-direction: column;
    }

    .accept-form-row .btn {
        width: 100%;
    }
}

/* Speaker Management Page */
.speakers-manage-page {
    padding: 2rem 0;
}

.speakers-manage-page .page-header {
    margin-bottom: 2rem;
}

.speakers-manage-page .page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.speakers-manage-page .page-header p {
    color: var(--color-text-muted);
    margin: 0;
}

.speakers-manage-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.speakers-manage-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.speakers-manage-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.add-speaker-form .form-group {
    margin-bottom: 1rem;
}

.add-speaker-form select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
}

.speakers-list-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.speakers-list-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.speakers-manage-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.speaker-manage-item {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 1rem;
}

.speaker-manage-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.speaker-manage-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.speaker-manage-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-manage-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.speaker-manage-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.speaker-manage-name {
    font-weight: 500;
}

.speaker-manage-talk {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speaker-manage-actions {
    display: flex;
    gap: 0.5rem;
}

.speaker-edit-form {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.speaker-edit-form .form-group {
    margin-bottom: 0.75rem;
}

.form-actions-inline {
    display: flex;
    gap: 0.5rem;
}

.no-speakers {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-muted);
}

/* Speaker management responsive */
@media (max-width: 768px) {
    .speakers-manage-layout {
        grid-template-columns: 1fr;
    }
}

/* Notification Bell in Header */
.notification-bell-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.notification-bell-link:hover {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
}

/* Notifications Page */
.notifications-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.notifications-page .page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.notifications-page .page-header p {
    color: var(--color-text-muted);
    margin: 0;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    transition: background-color 0.2s;
}

.notification-item:hover {
    background: var(--color-border);
}

.notification-unread {
    background: rgba(79, 70, 229, 0.05);
    border-left: 3px solid var(--color-primary);
}

.notification-unread:hover {
    background: rgba(79, 70, 229, 0.1);
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 50%;
}

.notification-icon .icon-success {
    color: var(--color-success);
}

.notification-icon .icon-muted {
    color: var(--color-text-muted);
}

.notification-icon .icon-primary {
    color: var(--color-primary);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Notifications responsive */
@media (max-width: 768px) {
    .notifications-page .page-header-row {
        flex-direction: column;
        gap: 1rem;
    }

    .notification-item {
        flex-wrap: wrap;
    }

    .notification-actions {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Character counter */
.char-counter {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: #f59e0b;
}

/* Form improvements */
.form-group {
    position: relative;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: #dc2626;
}

/* Focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Transitions for smoother interactions */
.card,
.event-card,
.group-card,
.admin-card,
.member-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover,
.event-card:hover,
.group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    form,
    .nav {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* Additional mobile fixes */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn-sm {
        width: auto;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .event-date {
        min-width: 50px;
    }

    .page-header {
        text-align: center;
    }
}
