/**
 * Frontend CSS - Material Design 3.0 Inspired
 */

/* Material Design 3.0 Colors - Dynamic Color System */
:root {
    --md-primary: #6750a4;
    --md-on-primary: #ffffff;
    --md-primary-container: #eaddff;
    --md-on-primary-container: #21005d;
    --md-secondary: #625b71;
    --md-on-secondary: #ffffff;
    --md-secondary-container: #e8def8;
    --md-on-secondary-container: #1e192b;
    --md-tertiary: #7d5260;
    --md-on-tertiary: #ffffff;
    --md-tertiary-container: #ffd8e4;
    --md-on-tertiary-container: #31111d;
    --md-error: #ba1a1a;
    --md-on-error: #ffffff;
    --md-error-container: #ffdad6;
    --md-on-error-container: #410002;
    --md-background: #fffbfe;
    --md-on-background: #1c1b1f;
    --md-surface: #fffbfe;
    --md-on-surface: #1c1b1f;
    --md-surface-variant: #e7e0ec;
    --md-on-surface-variant: #49454f;
    --md-outline: #79747e;
    --md-outline-variant: #cac4d0;
    --md-shadow: #000000;
    --md-scrim: #000000;
    --md-inverse-surface: #313033;
    --md-inverse-on-surface: #f4eff4;
    --md-inverse-primary: #d0bcff;
    
    /* Semantic colors */
    --md-success: #2e7d32;
    --md-warning: #ef6c00;
    --md-info: #1976d2;
    
    /* Elevation shadows */
    --md-elevation-1: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    --md-elevation-2: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    --md-elevation-3: 0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15);
    --md-elevation-4: 0px 2px 3px 0px rgba(0, 0, 0, 0.3), 0px 6px 10px 4px rgba(0, 0, 0, 0.15);
    --md-elevation-5: 0px 4px 4px 0px rgba(0, 0, 0, 0.3), 0px 8px 12px 6px rgba(0, 0, 0, 0.15);
    
    /* Typography scale */
    --md-display-large: 400 57px/64px 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-display-medium: 400 45px/52px 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-display-small: 400 36px/44px 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-headline-large: 400 32px/40px 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-headline-medium: 400 28px/36px 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-headline-small: 400 24px/32px 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-title-large: 400 22px/28px Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-title-medium: 500 16px/24px Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-title-small: 500 14px/20px Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-body-large: 400 16px/24px Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-body-medium: 400 14px/20px Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-body-small: 400 12px/16px Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-label-large: 500 14px/20px Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-label-medium: 500 12px/16px Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --md-label-small: 500 11px/16px Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* General Styles */
.uecrm-frontend {
    font: var(--md-body-large);
    color: var(--md-on-background);
    background-color: var(--md-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.uecrm-display-large { font: var(--md-display-large); color: var(--md-on-background); }
.uecrm-display-medium { font: var(--md-display-medium); color: var(--md-on-background); }
.uecrm-display-small { font: var(--md-display-small); color: var(--md-on-background); }
.uecrm-headline-large { font: var(--md-headline-large); color: var(--md-on-background); }
.uecrm-headline-medium { font: var(--md-headline-medium); color: var(--md-on-background); }
.uecrm-headline-small { font: var(--md-headline-small); color: var(--md-on-background); }
.uecrm-title-large { font: var(--md-title-large); color: var(--md-on-background); }
.uecrm-title-medium { font: var(--md-title-medium); color: var(--md-on-background); }
.uecrm-title-small { font: var(--md-title-small); color: var(--md-on-background); }
.uecrm-body-large { font: var(--md-body-large); color: var(--md-on-background); }
.uecrm-body-medium { font: var(--md-body-medium); color: var(--md-on-background); }
.uecrm-body-small { font: var(--md-body-small); color: var(--md-on-background); }
.uecrm-label-large { font: var(--md-label-large); color: var(--md-on-background); }
.uecrm-label-medium { font: var(--md-label-medium); color: var(--md-on-background); }
.uecrm-label-small { font: var(--md-label-small); color: var(--md-on-background); }

/* Calendar Styles */
.uecrm-calendar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 24px;
}

.fc {
    font-family: inherit;
}

.fc-toolbar {
    background: var(--md-primary);
    color: white;
    padding: 16px;
}

.fc-toolbar-title {
    font-size: 24px;
    font-weight: 500;
}

.fc-button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.fc-button:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.fc-button-primary:not(:disabled):active,
.fc-button-primary:not(:disabled).fc-button-active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
}

.fc-event {
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 12px;
    padding: 2px 6px;
}

.fc-daygrid-event {
    margin-bottom: 2px;
}

/* Events Grid */
.uecrm-events-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.uecrm-events-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.uecrm-events-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.uecrm-events-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.uecrm-events-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.uecrm-event-card {
    background: var(--md-surface);
    color: var(--md-on-surface);
    border-radius: 12px;
    box-shadow: var(--md-elevation-1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 1px solid var(--md-outline-variant);
    position: relative;
}

.uecrm-event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--md-elevation-3);
    border-color: var(--md-outline);
}

.uecrm-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--md-primary), var(--md-tertiary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uecrm-event-card:hover::before {
    opacity: 1;
}

.uecrm-event-card .event-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.uecrm-event-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.uecrm-event-card:hover .event-image img {
    transform: scale(1.05);
}

.uecrm-event-card .event-content {
    padding: 20px;
}

.uecrm-event-card .event-title {
    margin: 0 0 16px 0;
    font: var(--md-headline-small);
    color: var(--md-on-surface);
    line-height: 1.3;
}

.uecrm-event-card .event-title a {
    color: var(--md-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.uecrm-event-card .event-title a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--md-primary);
    transition: width 0.3s ease;
}

.uecrm-event-card .event-title a:hover::after {
    width: 100%;
}

.uecrm-event-card .event-title a:hover {
    color: var(--md-primary);
    transform: translateY(-1px);
}

.uecrm-event-card .event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.uecrm-event-card .event-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--md-secondary);
}

.uecrm-event-card .event-meta i {
    font-size: 18px;
    color: var(--md-primary);
}

.uecrm-event-card .event-excerpt {
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.uecrm-event-card .event-actions {
    display: flex;
    gap: 12px;
}

/* Events List */
.uecrm-events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uecrm-event-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: box-shadow 0.2s ease;
}

.uecrm-event-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.uecrm-event-item .event-date-box {
    background: var(--md-primary-container);
    color: var(--md-primary);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    min-width: 80px;
}

.uecrm-event-item .event-day {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.uecrm-event-item .event-month {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.uecrm-event-item .event-details {
    flex: 1;
}

.uecrm-event-item .event-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
}

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

.uecrm-event-item .event-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.uecrm-event-item .event-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--md-secondary);
}

.uecrm-event-item .event-meta i {
    font-size: 16px;
    color: var(--md-primary);
}

.uecrm-event-item .event-excerpt {
    color: #666;
    font-size: 14px;
}

.uecrm-event-item .event-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Buttons - Material Design 3.0 */
.uecrm-register-btn {
    background: var(--md-primary);
    color: var(--md-on-primary);
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font: var(--md-label-large);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);\n    box-shadow: var(--md-elevation-1);\n    position: relative;\n    overflow: hidden;\n    min-height: 40px;\n}\n\n.uecrm-register-btn::before {\n    content: '';\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    width: 0;\n    height: 0;\n    background: rgba(255, 255, 255, 0.1);\n    border-radius: 50%;\n    transform: translate(-50%, -50%);\n    transition: width 0.6s, height 0.6s;\n}\n\n.uecrm-register-btn:active::before {\n    width: 300px;\n    height: 300px;\n}"}

.uecrm-register-btn:hover {
    box-shadow: var(--md-elevation-2);
    background: color-mix(in srgb, var(--md-primary) 92%, black);
    color: var(--md-on-primary);
    text-decoration: none;
}

.uecrm-register-btn:focus {
    outline: none;
    box-shadow: var(--md-elevation-1), 0 0 0 3px var(--md-primary-container);
}

.uecrm-register-btn.disabled {
    background: var(--md-on-surface);
    color: var(--md-surface);
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
}

/* Secondary Button */
.uecrm-btn-secondary {
    background: var(--md-secondary);
    color: var(--md-on-secondary);
}

.uecrm-btn-secondary:hover {
    background: color-mix(in srgb, var(--md-secondary) 92%, black);
    box-shadow: var(--md-elevation-2);
}

/* Outlined Button */
.uecrm-btn-outlined {
    background: transparent;
    color: var(--md-primary);
    border: 1px solid var(--md-outline);
    box-shadow: none;
}

.uecrm-btn-outlined:hover {
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
    border-color: var(--md-outline);
    box-shadow: var(--md-elevation-1);
}

/* Text Button */
.uecrm-btn-text {
    background: transparent;
    color: var(--md-primary);
    border: none;
    box-shadow: none;
    padding: 10px 12px;
}

.uecrm-btn-text:hover {
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
}

/* Floating Action Button */
.uecrm-fab {
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
    border: none;
    border-radius: 16px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--md-elevation-3);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.uecrm-fab:hover {
    box-shadow: var(--md-elevation-4);
    transform: scale(1.05);
}

/* Registration Form */
.uecrm-registration-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.uecrm-registration-form h2 {
    color: var(--md-primary);
    margin: 0 0 24px 0;
    font-weight: 500;
}

.uecrm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.uecrm-form-group {
    display: flex;
    flex-direction: column;
}

.uecrm-form-label {
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--md-secondary);
}

.uecrm-form-label.required::after {
    content: ' *';
    color: var(--md-error);
}

.uecrm-form-input,
.uecrm-form-select,
.uecrm-form-textarea {
    padding: 10px 12px;
    border: 1px solid var(--md-outline);
    border-radius: 4px;
    font: var(--md-body-large);
    color: var(--md-on-surface);
    background: var(--md-surface);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
}

/* Specific styling for select elements */
.uecrm-form-select {
    min-height: 42px;
    line-height: 1.4;
    vertical-align: middle;
    cursor: pointer;
}

/* Material Design Filled Text Field Style */
.uecrm-form-field {
    position: relative;
    margin-bottom: 24px;
}

.uecrm-form-field.filled .uecrm-form-input,
.uecrm-form-field.filled .uecrm-form-select,
.uecrm-form-field.filled .uecrm-form-textarea {
    background: var(--md-surface-variant);
    border: none;
    border-bottom: 2px solid var(--md-outline);
    border-radius: 4px 4px 0 0;
    padding: 24px 16px 8px 16px;
}

.uecrm-form-field.filled .uecrm-form-label {
    position: absolute;
    left: 16px;
    top: 8px;
    font: var(--md-body-small);
    color: var(--md-on-surface-variant);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.uecrm-form-input:focus,
.uecrm-form-select:focus,
.uecrm-form-textarea:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 0 0 1px var(--md-primary);
}

.uecrm-form-field.filled .uecrm-form-input:focus,
.uecrm-form-field.filled .uecrm-form-select:focus,
.uecrm-form-field.filled .uecrm-form-textarea:focus {
    border-bottom-color: var(--md-primary);
    box-shadow: none;
}

.uecrm-form-field.filled .uecrm-form-input:focus + .uecrm-form-label,
.uecrm-form-field.filled .uecrm-form-select:focus + .uecrm-form-label,
.uecrm-form-field.filled .uecrm-form-textarea:focus + .uecrm-form-label {
    color: var(--md-primary);
}

.uecrm-form-field.error .uecrm-form-input,
.uecrm-form-field.error .uecrm-form-select,
.uecrm-form-field.error .uecrm-form-textarea {
    border-color: var(--md-error);
}

.uecrm-form-field.error .uecrm-form-label {
    color: var(--md-error);
}

.uecrm-form-supporting-text {
    font: var(--md-body-small);
    color: var(--md-on-surface-variant);
    margin-top: 4px;
    padding-left: 16px;
}

.uecrm-form-field.error .uecrm-form-supporting-text {
    color: var(--md-error);
}"}

.uecrm-form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.uecrm-form-submit {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--md-outline-variant);
}

/* Event Details */
.uecrm-event-details {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 24px;
}

.uecrm-event-details .event-header {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, var(--md-primary), var(--md-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.uecrm-event-details .event-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.uecrm-event-details .event-header-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 0 20px;
}

.uecrm-event-details .event-title {
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.uecrm-event-details .event-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

.uecrm-event-details .event-body {
    padding: 32px;
}

.uecrm-event-details .event-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.uecrm-event-details .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uecrm-event-details .info-item i {
    color: var(--md-primary);
    font-size: 24px;
}

.uecrm-event-details .info-item-content h4 {
    margin: 0 0 4px 0;
    font-weight: 500;
    color: var(--md-secondary);
}

.uecrm-event-details .info-item-content p {
    margin: 0;
    font-weight: 600;
    color: var(--md-primary);
}

.uecrm-event-details .event-description {
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .uecrm-events-grid {
        grid-template-columns: 1fr !important;
    }
    
    .uecrm-event-item {
        flex-direction: column;
        text-align: center;
    }
    
    .uecrm-event-item .event-date-box {
        align-self: stretch;
    }
    
    .uecrm-event-item .event-meta {
        justify-content: center;
    }
    
    .uecrm-form-row {
        grid-template-columns: 1fr;
    }
    
    .uecrm-registration-form {
        padding: 24px 20px;
        margin: 0 12px;
        border-radius: 8px;
        box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    }
    
    .uecrm-event-details .event-title {
        font-size: 28px;
    }
    
    .uecrm-event-details .event-body {
        padding: 20px;
    }
    
    .uecrm-event-details .event-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
    .uecrm-registration-form {
        padding: 20px 16px;
        margin: 0 8px;
        border-radius: 6px;
    }
    
    .uecrm-registration-form h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .uecrm-form-field {
        margin-bottom: 20px;
    }
    
    .uecrm-form-row {
        gap: 12px;
        margin-bottom: 12px;
    }
}

/* Loading States */
.uecrm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--md-secondary);
}

.uecrm-spinner {
    border: 3px solid var(--md-outline-variant);
    border-top: 3px solid var(--md-primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.uecrm-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    max-width: 400px;
    border-left: 4px solid var(--md-info);
}

.uecrm-notification-success {
    border-left-color: var(--md-success);
}

.uecrm-notification-error {
    border-left-color: var(--md-error);
}

.uecrm-notification-warning {
    border-left-color: var(--md-warning);
}

.uecrm-notification .close-notification {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 0;
    margin-left: auto;
}

.uecrm-notification .close-notification:hover {
    color: #666;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Reveal Animations */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger reveal animations */
.reveal-element:nth-child(1) { transition-delay: 0.1s; }
.reveal-element:nth-child(2) { transition-delay: 0.2s; }
.reveal-element:nth-child(3) { transition-delay: 0.3s; }
.reveal-element:nth-child(4) { transition-delay: 0.4s; }
.reveal-element:nth-child(5) { transition-delay: 0.5s; }

/* Skip Link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--md-primary);
    color: var(--md-on-primary);
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font: var(--md-label-large);
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--md-surface-variant);
}

::-webkit-scrollbar-thumb {
    background: var(--md-outline);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--md-on-surface-variant);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .uecrm-event-card {
        border: 2px solid var(--md-outline);
    }
    
    .uecrm-register-btn {
        border: 2px solid var(--md-outline);
    }
}

/* Trial Ticket Styling */
.trial-badge {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
    display: inline-block;
    margin-top: 8px;
}

.ticket-trial-badge {
    text-align: center;
    margin-top: 8px;
}

.trial-date-section {
    background: linear-gradient(135deg, #f8f9ff, #fff4e6);
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.trial-date-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ffc107);
}

.trial-date-section .uecrm-form-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.trial-date-section .uecrm-form-label::before {
    content: '📅';
    margin-right: 8px;
    font-size: 18px;
}

.trial-date-picker-container {
    position: relative;
}

.trial-date-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    font-style: italic;
    color: #666;
}

.trial-date-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

#trial-date-select {
    background: white;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #2c3e50;
    width: 100%;
    transition: all 0.3s ease;
    min-height: 44px;
    line-height: 1.4;
    vertical-align: middle;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

#trial-date-select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

#trial-date-select option {
    padding: 12px 16px;
    background: white;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
    min-height: 40px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced ticket card styling for trial tickets */
.ticket-option input[data-is-trial="1"] + .ticket-card {
    position: relative;
    border-left-width: 4px;
    background: linear-gradient(135deg, #fff 0%, #fff8f0 100%);
}

.ticket-option input[data-is-trial="1"] + .ticket-card::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

/* Enhanced Popup for Trial Tickets */
.quantity-popup-simple.trial-ticket {
    min-width: 420px;
}

.popup-trial-date-section {
    background: linear-gradient(135deg, #f8f9ff, #fff4e6);
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}

.popup-trial-date-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ffc107);
}

.popup-trial-date-section .trial-date-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.popup-trial-date-section .trial-date-label::before {
    content: '📅';
    margin-right: 8px;
    font-size: 16px;
}

.popup-trial-date-container {
    position: relative;
}

.popup-trial-date-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    font-style: italic;
    color: #666;
    font-size: 13px;
}

.popup-trial-date-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

#popup-trial-date-select {
    background: white;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #2c3e50;
    width: 100%;
    transition: all 0.3s ease;
    min-height: 44px;
    line-height: 1.4;
    vertical-align: middle;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

#popup-trial-date-select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

#popup-trial-date-select option {
    padding: 12px 16px;
    background: white;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
    min-height: 40px;
}

.popup-trial-error {
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 8px;
    padding: 12px;
    color: #c62828;
    font-size: 13px;
    text-align: center;
}

/* Enhanced Continue Button for Trial Tickets */
.btn-continue.trial-ticket {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-continue.trial-ticket::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-continue.trial-ticket:hover::before {
    left: 100%;
}

.btn-continue.trial-ticket:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transform: translateY(-1px);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal-element {
        opacity: 1;
        transform: none;
    }
    
    .trial-date-loading::before,
    .popup-trial-date-loading::before {
        animation: none;
    }
}.uecrm-single-event-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.uecrm-single-event {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.uecrm-single-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: -1;
}


.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3 {
    color: var(--md-primary);
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-wrapper p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.content-wrapper li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.event-fallback {
    padding: 40px;
    text-align: center;
}

.event-fallback .event-header {
    margin-bottom: 30px;
}

.event-fallback .event-title {
    font-size: 32px;
    color: var(--md-primary);
    margin-bottom: 20px;
}

.event-fallback .event-thumbnail {
    margin-bottom: 30px;
}

.event-fallback .event-thumbnail img {
    max-width: 500px;
    border-radius: 8px;
}

.event-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .uecrm-single-event-container {
        padding: 10px;
    }
    
    
    .event-fallback {
        padding: 20px;
    }
    
    .event-fallback .event-title {
        font-size: 24px;
    }
}

/* Material Design Variables */
:root {
    --md-primary: #1976d2;
    --md-primary-container: #e3f2fd;
    --md-surface-variant: #f5f5f5;
}
