/* ConfX Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700&display=swap');

:root {
    --color-bg: #0B0F19;
    --color-bg-surface: #131A2A;
    --color-text: #F8FAFC; 
    --color-text-muted: #94A3B8; 
    --color-primary: #3B82F6;
    --color-primary-glow: rgba(59, 130, 246, 0.4);
    --color-secondary: #06B6D4;
    --glass-bg: rgba(19, 26, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --shadow-soft: 0 4px 6px -1px rgba(0,0,0,0.1), 0 20px 40px -10px rgba(0,0,0,0.5);
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 40%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.12), transparent 40%);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px var(--color-primary-glow);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px var(--color-primary-glow);
    border-color: rgba(255,255,255,0.3);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-glass:hover {
    background: hsla(240, 10%, 30%, 0.4);
}

/* --- Premium Action Buttons --- */
.btn-action-premium {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    line-height: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}

.btn-action-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4) !important;
    filter: brightness(0.95);
}

.btn-action-premium:active {
    transform: translateY(0);
}

.btn-view-premium { background: #17a2b8 !important; color: white !important; }
.btn-edit-premium { background: #ffc107 !important; color: #1e293b !important; }
.btn-delete-premium { background: #dc3545 !important; color: white !important; }
.btn-success-premium { background: #28a745 !important; color: white !important; }
.btn-secondary-premium { 
    background: #E2E8F0 !important; 
    color: #475569 !important; 
    border-color: #CBD5E1 !important;
}

/* Scoped refinement removed - now global */

.btn-action-premium svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.btn-action-premium:hover svg {
    transform: scale(1.1);
}

.btn-premium {
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4) !important;
    filter: brightness(0.95);
}

.btn-premium:active {
    transform: translateY(0);
}

.btn-dashboard-quick {
    background: rgba(59, 130, 246, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: var(--color-primary) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    flex: 1;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1), 0 1px 3px rgba(0,0,0,0.1) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 600 !important;
}

.btn-dashboard-quick:hover {
    background: rgba(59, 130, 186, 0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    color: #1e293b !important;
}

.btn-dashboard-quick:active {
    transform: translateY(0);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover { border-color: rgba(255, 255, 255, 0.2); }

/* Layout */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s;
}

header.scrolled {
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--color-primary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--hue-primary), 100, 50, 0.1);
}

/* Grid for Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.event-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
}

.hidden {
    display: none !important;
}

/* Loader */
.loader {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--color-primary);
    color: white;
}

/* Event View Specifics */
.event-view h1,
.event-view h3 {
    color: white;
}

.event-view p {
    font-size: 1.05rem;
}

/* Responsive 70/30 Grid for Event Details */
.event-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .event-details-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    }
}

.badge-registered {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #28a745;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-pending {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ffc107;
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-registered {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #28a745;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Modal Styling */
.glass-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}
/* --- Premium Web-Wizard Notifications --- */
.premium-notification-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.premium-notification { background: rgba(20, 20, 25, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 16px 24px; border-radius: 12px; font-family: 'Inter', system-ui, sans-serif; display: flex; align-items: center; gap: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; transform-origin: right center; }
.premium-notification.error { border-left: 4px solid #ef4444; }
.premium-notification.success { border-left: 4px solid #10b981; }
.premium-notification.fade-out { animation: slideOut 0.3s ease-in forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateX(100%) scale(0.9); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes slideOut { from { opacity: 1; transform: translateX(0) scale(1); } to { opacity: 0; transform: translateX(100%) scale(0.9); } }
.premium-notification-close { background: transparent; border: none; color: #999; cursor: pointer; font-size: 20px; line-height: 1; padding: 0; margin-left: auto; transition: color 0.2s; }
.premium-notification-close:hover { color: #fff; }
.notif-icon { display: flex; align-items: center; justify-content: center; }
.notif-content { font-size: 14px; font-weight: 500; letter-spacing: 0.3px; }
