/**
 * Frontend CSS for Vinticards Events Planner
 * Professional Design System v1.0
 */

/* ===== DESIGN SYSTEM VARIABLES ===== */
:root {
    --vep-primary: #ffffff;
    --vep-primary-dark: #2980b9;
    --vep-secondary: #2c3e50;
    --vep-success: #27ae60;
    --vep-warning: #f39c12;
    --vep-danger: #e74c3c;
    --vep-light: #ecf0f1;
    --vep-dark: #2c3e50;
    --vep-gray: #95a5a6;
    --vep-gray-light: #bdc3c7;
    --vep-white: #ffffff;
    --vep-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --vep-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
    --vep-transition: all 0.3s ease;
	--fc-event-bg-color: #282D3B;
	--fc-event-border-color: #282D3B;
	
}

/* ===== VERIFICATION NOTICE (THEMED) ===== */
.vep-verification-notice {
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--vep-shadow);
    border-left: 4px solid;
}
.vep-verification-notice-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}
.vep-verification-notice-message {
    margin: 0 0 1rem 0;
    line-height: 1.5;
}
.vep-verification-notice-actions {
    margin: 0;
}
.vep-verification-notice-link {
    display: inline-block;
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--vep-transition);
}
.vep-verification-notice-link:hover {
    text-decoration: none;
}
.vep-verification-expired {
    background: #fff8f0;
    border-left-color: var(--vep-warning);
}
.vep-verification-expired .vep-verification-notice-title {
    color: #b45309;
}
.vep-verification-expired .vep-verification-notice-link {
    background: var(--vep-warning);
    color: #fff;
}
.vep-verification-expired .vep-verification-notice-link:hover {
    background: #e08e0d;
    color: #fff;
}
.vep-verification-expired .vep-verification-notice-link-secondary {
    background: transparent;
    color: var(--vep-secondary);
    border: 1px solid var(--vep-gray-light);
}
.vep-verification-expired .vep-verification-notice-link-secondary:hover {
    background: var(--vep-light);
    color: var(--vep-secondary);
}
.vep-verification-success {
    background: #f0fdf4;
    border-left-color: var(--vep-success);
}
.vep-verification-success .vep-verification-notice-title {
    color: #15803d;
}
.vep-verification-success .vep-verification-notice-link {
    background: var(--vep-success);
    color: #fff;
}
.vep-verification-success .vep-verification-notice-link:hover {
    background: #1e8b4a;
    color: #fff;
}
.vep-verification-success .vep-verification-notice-link-secondary {
    background: transparent;
    color: var(--vep-secondary);
    border: 1px solid var(--vep-gray-light);
}
.vep-verification-success .vep-verification-notice-link-secondary:hover {
    background: var(--vep-light);
    color: var(--vep-secondary);
}

/* ===== GLOBAL STYLES ===== */
.vep-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.vep-section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background-color: white;
    color: black;
    position: relative;
    overflow: hidden;
}

.vep-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.vep-section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vep-section-header p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

/* ===== EVENTS LIST ===== */
.vep-events-list {
    margin: 40px 0;
}

.vep-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--vep-white);
    box-shadow: var(--vep-shadow);
}

.vep-events-header h2 {
    color: var(--vep-secondary);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vep-events-header h2::before {
    content: '🎯';
    font-size: 1.2em;
}

.vep-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* ===== EVENT CARDS ===== */
.vep-event-card {
    background: var(--vep-white);
    border: 1px solid var(--vep-light);
    padding: 20px;
    box-shadow: var(--vep-shadow);
    transition: var(--vep-transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    border-left: 4px solid var(--vep-primary);
}

.vep-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--vep-primary) 0%, var(--vep-success) 50%, var(--vep-warning) 100%);
}

.vep-event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--vep-shadow-hover);
    border-color: var(--vep-primary);
}

.vep-event-card:hover::before {
    height: 5px;
}

/* Add subtle visual separation between columns */
.vep-event-details > p:not(:last-child) {
    position: relative;
}

.vep-event-details > p:nth-child(3n):not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--vep-light);
}

.vep-event-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.vep-event-header h3 {
    margin: 0;
    color: var(--vep-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.vep-event-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.vep-event-details {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    flex: 1;
    align-items: start;
}

.vep-event-details > p:nth-child(1) {
    grid-column: 1;
}

.vep-event-details > p:nth-child(2) {
    grid-column: 2;
}

.vep-event-details > p:nth-child(3) {
    grid-column: 3;
}

.vep-event-details > p:nth-child(4) {
    grid-column: 1;
}

.vep-event-details > p:nth-child(5) {
    grid-column: 2;
}

.vep-event-details > p:nth-child(6) {
    grid-column: 3;
}

.vep-event-details p {
    margin: 0;
    color: var(--vep-gray);
    line-height: 1.4;
    font-size: 0.85rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vep-event-details strong {
    color: var(--vep-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.vep-event-details .vep-event-full,
.vep-event-details .vep-event-available {
    font-weight: 600;
    padding: 3px 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
    min-width: 60px;
}

.vep-event-actions {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--vep-light);
}

.vep-event-actions .button {
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vep-transition);
    background: #282D3B;
    color: var(--vep-white);
    border: 2px solid var(--vep-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.vep-event-actions .button:hover {
    background: white;
	color: white;
    transform: translateY(-2px);
}

.vep-event-actions .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vep-event-actions .button.button-primary {
    background: #282D3B;
    color: #ffffff;
}

.vep-event-actions .button.button-primary:hover {
    background: #f8f8f8;
	color: #000000;
}

/* ===== STATUS COLORS ===== */
.vep-event-full {
    background: var(--vep-danger);
    color: var(--vep-white);
}

.vep-event-available {
    background: var(--vep-success);
    color: white!important;
}

/* ===== FORM ROW LAYOUT ===== */
.vep-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.vep-form-row .vep-form-section {
    flex: 1;
}

/* ===== WIDER MODAL FORM LAYOUT ===== */
.vep-modal-body .vep-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.vep-modal-body .vep-form-section:not(.vep-form-row .vep-form-section) {
    margin-bottom: 20px;
}

/* Pokemon fields in a single row for wider modal */
.vep-modal-body #vep-pokemon-fields .vep-form-section {
    margin-bottom: 15px;
}

.vep-modal-body #vep-pokemon-fields .vep-form-section:last-child {
    margin-bottom: 0;
}

/* ===== TOOLTIP STYLING ===== */
.vep-tooltip {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #0073aa;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 5px;
    line-height: 16px;
}

.vep-tooltip:hover {
    background-color: #005a87;
}


.vep-tooltip .tooltip-content {
    display: none;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    white-space: normal;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    text-transform: none;
}

.vep-tooltip .tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.vep-tooltip:hover .tooltip-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

.vep-tooltip .tooltip-content a {
    color: #4fc3f7 !important;
    text-decoration: underline !important;
    display: block;
    margin-top: 5px;
    text-transform: none;
}


/* ===== BAN MANAGEMENT STYLING ===== */

/* Ban Type Indicators */
.vep-ban-type-temporary {
    background: #ffc107;
    color: #000;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vep-ban-type-permanent {
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Expired Status */
.vep-status-expired {
    background: #6c757d;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CALENDAR CONTAINER ===== */
.vep-calendar-container {
    margin: 40px 0;
    background: var(--vep-white);
    padding: 30px;
    box-shadow: var(--vep-shadow);
}

.vep-calendar-container h2 {
    color: var(--vep-secondary);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--vep-light);
    font-weight: 600;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vep-calendar-container h2::before {
    content: '📅';
    font-size: 1.2em;
}

#vep-frontend-calendar {
    background: var(--vep-white);
    padding: 20px;
    border: 1px solid var(--vep-light);
    min-height: 500px;
}

/* ===== FULLCALENDAR ENHANCEMENTS ===== */
.fc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.fc-header-toolbar {
    margin-bottom: 1.5rem !important;
}

.fc-button-primary {
    background-color: #282D3B !important;
    border-color: var(--vep-primary) !important;
    color: var(--vep-white) !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    transition: var(--vep-transition) !important;
}

.fc-button-primary:hover {
    background: var(--vep-primary-dark) !important;
    border-color: var(--vep-primary-dark) !important;
    transform: translateY(-1px) !important;
}

.fc-event {
    background: var(--vep-primary) !important;
    border-color: var(--vep-primary) !important;
    color: black !important;
    padding: 2px 4px !important;
    cursor: pointer !important;
    transition: var(--vep-transition) !important;
}

.fc-event:hover {
    background: var(--vep-primary-dark) !important;
    transform: scale(1.02) !important;
}

/* ===== TABS SYSTEM ===== */
.vep-tabs-container {
    margin: 40px 0;
}

.vep-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 30px;
    background: var(--vep-light);
    padding: 8px;
    box-shadow: var(--vep-shadow);
}

.vep-tab-button {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--vep-gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--vep-transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vep-tab-button:hover {
    color: var(--vep-secondary);
    background: rgba(52, 152, 219, 0.1);
}

.vep-tab-button.active {
    background-color: #282D3B;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.vep-tab-content {
    display: none;
}

.vep-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== MY REGISTRATIONS ===== */
.vep-my-registrations {
    margin: 40px 0;
    background: var(--vep-white);
    padding: 30px;
    box-shadow: var(--vep-shadow);
}

.vep-my-registrations h2 {
    color: var(--vep-secondary);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--vep-light);
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vep-my-registrations h2::before {
    content: '📋';
    font-size: 1.2em;
}

.vep-registrations-list {
    display: grid;
    gap: 24px;
}

.vep-registration-item {
    background: var(--vep-white);
    border: 1px solid var(--vep-light);
    padding: 20px;
    box-shadow: var(--vep-shadow);
    transition: var(--vep-transition);
    border-left: 4px solid var(--vep-success);
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

.vep-registration-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--vep-shadow-hover);
}

/* Registration header styling */
.vep-registration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.vep-registration-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vep-secondary);
    flex: 1;
}

.vep-registration-header .vep-event-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Registration details 3-column grid */
.vep-registration-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    flex: 1;
    align-items: start;
}

.vep-registration-details > p:nth-child(1) {
    grid-column: 1;
}

.vep-registration-details > p:nth-child(2) {
    grid-column: 2;
}

.vep-registration-details > p:nth-child(3) {
    grid-column: 3;
}

.vep-registration-details > p:nth-child(4) {
    grid-column: 1;
}

.vep-registration-details > p:nth-child(5) {
    grid-column: 2;
}

.vep-registration-details > p:nth-child(6) {
    grid-column: 3;
}

.vep-registration-details > p {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 40px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.vep-registration-details > p strong {
    color: var(--vep-secondary);
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Registration actions styling */
.vep-registration-actions {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--vep-light);
    margin-top: auto;
}

.vep-registration-actions .button {
    background: var(--vep-danger);
    color: var(--vep-white);
    border: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--vep-transition);
    text-decoration: none;
    display: inline-block;
}

.vep-registration-actions .button:hover {
    background: var(--vep-danger-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    color: #000;
}

.vep-registration-actions .vep-submit-deck {
    background: var(--vep-primary-dark);
    margin-right: 8px;
}

.vep-registration-actions .vep-submit-deck:hover:not(:disabled) {
    background: #1a5a8a;
}

.vep-registration-actions .vep-submit-deck:disabled {
    background: var(--vep-success);
    cursor: default;
    transform: none;
}

.vep-deck-upload-section {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 115, 170, 0.06);
    border: 1px solid var(--vep-light);
    border-radius: 6px;
}

.vep-deck-upload-section h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.vep-deck-upload-desc {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: var(--vep-gray);
}

.vep-deck-upload-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.vep-deck-upload-name {
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid var(--vep-light);
    border-radius: 4px;
}

.vep-deck-upload-file {
    padding: 4px 0;
}

.vep-deck-upload-message {
    margin-top: 10px;
    font-size: 0.9rem;
}

.vep-deck-upload-message.vep-upload-success {
    color: var(--vep-success);
}

.vep-deck-upload-message.vep-upload-error {
    color: var(--vep-danger);
}

.vep-deck-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.vep-deck-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--vep-light);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--vep-transition);
}

.vep-deck-item:hover {
    background: rgba(0, 115, 170, 0.05);
    border-color: var(--vep-primary-dark);
}

.vep-deck-item input {
    margin-right: 8px;
    width: 20px !important;
}

.vep-deck-loading, .vep-deck-error {
    color: var(--vep-gray);
    font-style: italic;
}

/* Registration status styling */
.vep-status-confirmed {
    color: var(--vep-success);
    font-weight: 600;
    padding: 3px 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(40, 167, 69, 0.1);
    display: inline-block;
    text-align: center;
    min-width: 60px;
}

.vep-pending-verification {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
    background-color: #ffc107;
    color: #000;
    border-radius: 4px;
    font-size: 0.95rem;
}
.vep-pending-verification .vep-pending-label {
    font-weight: 600;
}
.vep-pending-verification .vep-pending-message {
    font-size: 0.85rem;
    margin-top: 4px;
}

.vep-status-pending {
    color: var(--vep-warning);
    font-weight: 600;
    padding: 3px 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 193, 7, 0.1);
    display: inline-block;
    text-align: center;
    min-width: 60px;
}

.vep-status-cancelled {
    color: var(--vep-danger);
    font-weight: 600;
    padding: 3px 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(220, 53, 69, 0.1);
    display: inline-block;
    text-align: center;
    min-width: 60px;
}

/* ===== PROFESSIONAL MODAL STYLING ===== */
.vep-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vep-modal-content {
    background-color: var(--vep-white);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vep-modal-header {
    background: linear-gradient(135deg, var(--vep-primary) 0%, var(--vep-primary-dark) 100%);
    color: var(--vep-white);
    padding: 24px;
    position: relative;
}

.vep-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vep-modal-header h2::before {
    content: '🎯';
    font-size: 1.2em;
}

.vep-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--vep-white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--vep-transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.vep-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.vep-modal-body {
    padding: 24px;
}

/* ===== ENHANCED FORM STYLING ===== */
.vep-form-section {
    margin-bottom: 20px;
}

.vep-form-section label {
    display: block;
    font-weight: 600;
    color: var(--vep-secondary);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vep-form-section input,
.vep-form-section select,
.vep-form-section textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--vep-light);
    font-size: 1rem;
    transition: var(--vep-transition);
    background: var(--vep-white);
    font-family: inherit;
}

.vep-form-section input:focus,
.vep-form-section select:focus,
.vep-form-section textarea:focus {
    outline: none;
    border-color: var(--vep-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.vep-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--vep-light);
}

.vep-modal-actions .button {
    padding: 12px 24px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vep-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.vep-modal-actions .button-primary {
    background: var(--vep-primary);
    color: var(--vep-white);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.vep-modal-actions .button-primary:hover {
    background: var(--vep-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.4);
}

.vep-modal-actions .vep-modal-cancel {
    background: var(--vep-light);
    color: var(--vep-gray);
}

.vep-modal-actions .vep-modal-cancel:hover {
    background: var(--vep-gray-light);
    color: var(--vep-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vep-registration-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.vep-registration-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
    flex: 1;
}

.vep-registration-details {
    margin-bottom: 20px;
}

.vep-registration-details p {
    margin: 8px 0;
    color: #666;
    line-height: 1.4;
}

.vep-registration-details strong {
    color: #333;
    font-weight: 600;
}

.vep-registration-actions {
    text-align: center;
}

/* Professional Modal Styles */
.vep-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.vep-modal-content {
    background: #ffffff;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vep-modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.vep-modal-header h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.vep-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vep-modal-close:hover {
    color: #1a1a1a;
    background: #f3f4f6;
    transform: scale(1.05);
}

.vep-modal-body {
    padding: 20px;
}

.vep-modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95em;
    letter-spacing: 0.01em;
}

.vep-modal-body input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    font-size: 15px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1a1a1a;
    box-sizing: border-box;
}

.vep-modal-body input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    outline: none;
    background: #ffffff;
}

.vep-modal-body .button {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    border: none;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.01em;
    min-width: 120px;
}

.vep-modal-body .button-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.vep-modal-body .button-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}

.vep-modal-body .button:not(.button-primary) {
    background: #f8f9fa;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.vep-modal-body .button:not(.button-primary):hover {
    background: #f1f3f4;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* Professional Event Info in Modals */
.vep-event-info,
.vep-cancellation-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vep-event-info h3,
.vep-cancellation-info h3 {
    margin: 0 0 12px 0;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.vep-event-info p,
.vep-cancellation-info p {
    margin: 6px 0;
    color: #6b7280;
    line-height: 1.4;
    font-size: 12px;
}

/* Professional Event Detail Modal */
.vep-event-detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e8e8e8;
    z-index: 1001;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

.vep-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

.vep-event-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0073aa;
}

.vep-event-detail-header .vep-event-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    flex-shrink: 0;
}

.vep-event-detail-header h3 {
    margin: 0;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex: 1;
}

.vep-event-detail-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vep-event-detail-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vep-event-detail-info p {
    margin: 0;
    color: #6b7280;
    line-height: 1.4;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vep-event-detail-info p::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #0073aa;
    flex-shrink: 0;
}

.vep-event-detail-info strong {
    color: #1a1a1a;
    font-weight: 600;
    min-width: 80px;
}

.vep-event-detail-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.vep-event-detail-actions .button {
    min-width: 120px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.01em;
}

/* Professional Modal Layout Enhancements */
.vep-form-section {
    margin-bottom: 16px;
}

.vep-form-section label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    letter-spacing: 0.01em;
}

.vep-form-section input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    font-size: 12px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1a1a1a;
    box-sizing: border-box;
}

.vep-form-section input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    outline: none;
    background: #ffffff;
}

.vep-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.vep-modal-actions .button {
    min-width: 120px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.01em;
}

.vep-event-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.vep-event-meta p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vep-event-meta p::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #0073aa;
    flex-shrink: 0;
}

/* Modal Event Header with Icon */
.vep-event-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.vep-event-header .vep-event-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    flex-shrink: 0;
}

.vep-event-header h3 {
    margin: 0;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex: 1;
}

/* FullCalendar Customization */
.fc-event {
    cursor: pointer;
    padding: 2px 4px;
    margin: 1px 0;
    font-size: 12px;
    line-height: 1.2;
    color: black !important;
}

.fc-event:hover {
    opacity: 0.8;
}

/* Event with title styling */
.vep-event-with-title {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.vep-event-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Calendar-specific icon sizing */
.fc .vep-event-logo {
    width: 20px!important;
    height: 20px!important;
}

.vep-event-dot {
    width: 40px;
    height: 40px;
    background-color: #0073aa;
    flex-shrink: 0;
}

/* Calendar-specific dot sizing */
.fc .vep-event-dot {
    width: 20px;
    height: 20px;
}

.vep-event-title-text {
    font-size: 10px;
    line-height: 1.0;
    max-width: calc(100% - 42px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    color: black !important;
}

/* Calendar-specific title text spacing */
.fc .vep-event-title-text {
    max-width: calc(100% - 22px);
}

/* Calendar day sizing */
.fc-daygrid-day {
    min-height: 20px;
    position: relative;
}

.fc-daygrid-day-events {
    min-height: 15px;
}

/* Ensure day cells can contain absolute positioned elements */
.fc-daygrid-day-frame {
    position: relative;
}

/* Calendar and events list wrapper */
.vep-calendar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

/* Calendar container width */
.vep-calendar-container {
    width: 100%;
    margin: 0;
}

/* Day logo styles */
.vep-day-logo-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
}

.vep-day-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.vep-day-logo:hover {
    transform: scale(1.05);
}

/* Day events list styles */
.vep-day-events-list {
    display: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 0;
    align-self: stretch;
}

.vep-day-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
}

.vep-day-events-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.vep-close-events-list {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.vep-close-events-list:hover {
    background-color: #e9ecef;
    color: #333;
}

.vep-day-events-content {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.vep-day-event-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    min-height: 60px;
}

.vep-day-event-item:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
    transform: translateY(-2px);
}

.vep-day-event-item .vep-event-logo {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vep-day-event-item .vep-event-dot {
    width: 32px;
    height: 32px;
    background-color: #0073aa;
    border-radius: 50%;
    flex-shrink: 0;
}

.vep-event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vep-event-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.2;
    margin: 0;
}

.vep-event-time {
    color: #666;
    font-size: 12px;
    margin: 0;
}

.vep-event-participants {
    font-size: 11px;
    margin: 0;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.vep-event-participants.vep-capacity-green,
.vep-capacity-badge.vep-capacity-green {
    background-color: #d4edda;
    color: #155724;
}

.vep-event-participants.vep-capacity-orange,
.vep-capacity-badge.vep-capacity-orange {
    background-color: #fff3cd;
    color: #856404;
}

.vep-event-participants.vep-capacity-red,
.vep-capacity-badge.vep-capacity-red {
    background-color: #f8d7da;
    color: #721c24;
}

.vep-capacity-badge {
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    font-weight: 500;
}

.vep-event-registration-status {
    font-size: 11px;
    font-weight: 500;
    margin: 0;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    align-self: flex-start;
}

.vep-status-registered {
    background-color: #d4edda;
    color: #155724;
}

.vep-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.vep-status-not-registered {
    background-color: #f8d7da;
    color: #721c24;
}

.vep-status-not-logged-in {
    background-color: #e2e3e5;
    color: #383d41;
}

.vep-status-external {
    background-color: #ff8c00;
    color: white;
}

/* Pokemon Player Forms */
.vep-players-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.vep-players-header h4 {
    margin: 0;
    color: #0073aa;
    font-size: 18px;
}

#vep-add-player {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#vep-add-player:hover {
    background-color: #005a87;
}

.vep-player-form {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    position: relative;
    transition: all 0.3s ease;
}

.vep-player-form.has-error {
    border-color: #dc3232;
    background-color: #fef7f7;
}

.vep-player-form h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vep-player-delete {
    background: none;
    border: none;
    color: #dc3232;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    margin-left: 10px;
    text-decoration: underline;
    transition: color 0.3s;
}

.vep-player-delete:hover {
    color: #a00;
}

/* Pokemon Player ID validation messages */
.vep-error-red {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.vep-error-green {
    color: #46b450;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.vep-player-form:last-child {
    margin-bottom: 0;
}

.vep-player-error {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.vep-player-error.show {
    display: block;
}

/* Login prompt modal styles */
.vep-login-prompt-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.vep-login-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.vep-login-prompt-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.vep-close-login-prompt {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.vep-close-login-prompt:hover {
    background-color: #e9ecef;
    color: #333;
}

.vep-login-prompt-content {
    padding: 0 20px 20px 20px;
}

.vep-login-prompt-content p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.vep-login-prompt-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.vep-login-button {
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.vep-login-button:hover {
    background-color: #005a87;
    color: white;
    text-decoration: none;
}

.vep-login-prompt-cancel {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.vep-login-prompt-cancel:hover {
    background-color: #545b62;
}

.vep-login-prompt-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* QR code modal styles */
.vep-qr-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.vep-qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.vep-qr-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.vep-close-qr-modal {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.vep-close-qr-modal:hover {
    background-color: #e9ecef;
    color: #333;
}

.vep-qr-modal-content {
    padding: 0 20px 20px 20px;
    text-align: center;
}

.vep-qr-modal-content p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.vep-qr-code-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.vep-qr-code-container canvas {
    border: 1px solid #ddd;
    border-radius: 4px;
}

#vep-qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

#vep-qr-code-container img {
    max-width: 100%;
    height: auto;
}

.vep-qr-url {
    font-family: monospace;
    font-size: 12px;
    color: #666;
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    word-break: break-all;
    margin: 15px 0;
}

.vep-qr-modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.vep-qr-modal-close {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.vep-qr-modal-close:hover {
    background-color: #545b62;
}

.vep-qr-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .vep-calendar-wrapper {
        gap: 15px;
    }
    
    .vep-day-events-list {
        width: 100%;
        margin-top: 15px;
    }
    
    .vep-calendar-container {
        min-width: auto;
    }
    
    .vep-day-events-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .vep-day-event-item {
        min-height: 50px;
        padding: 10px;
    }
}

#vep-frontend-calendar {
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Force FullCalendar to be smaller */
.fc {
    font-size: 12px !important;
}

.fc .fc-toolbar {
    font-size: 12px !important;
}

.fc .fc-button {
    font-size: 11px !important;
    padding: 4px 8px !important;
}

.fc .fc-daygrid-day-frame {
    min-height: 25px !important;
    height: auto !important;
}

.fc .fc-daygrid-day-events {
    min-height: 20px !important;
    height: auto !important;
}

.fc .fc-daygrid-day {
    min-height: 25px !important;
    height: auto !important;
}

.fc .fc-daygrid-day-frame .fc-daygrid-day-events {
    min-height: 20px !important;
    height: auto !important;
    max-height: none !important;
}

.fc .fc-daygrid-day-frame .fc-daygrid-day-events .fc-daygrid-event-harness {
    height: auto !important;
    max-height: none !important;
    margin-bottom: 2px !important;
}

.fc .fc-daygrid-day-frame .fc-daygrid-day-events .fc-daygrid-event-harness .fc-event {
    height: auto !important;
    max-height: none !important;
    line-height: 12px !important;
    margin-bottom: 1px !important;
}

/* Multiple events styling */

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .vep-container {
        padding: 0 16px;
    }
    
    .vep-section-header {
        padding: 30px 20px;
    }
    
    .vep-section-header h1 {
        font-size: 2rem;
    }
    
    .vep-events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vep-event-card {
        min-height: auto;
        padding: 20px;
    }
    
    .vep-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .vep-event-logo {
        width: 40px;
        height: 40px;
    }
    
    .vep-event-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .vep-event-details > p:nth-child(n) {
        grid-column: 1;
    }
    
    .vep-registration-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .vep-registration-details > p:nth-child(n) {
        grid-column: 1;
    }
    
    .vep-event-actions {
        margin-top: 20px;
    }
    
    .vep-tabs {
        flex-direction: column;
        gap: 2px;
    }
    
    .vep-tab-button {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .vep-modal-content {
        width: 95%;
        margin: 5% auto;
        max-width: 95%;
    }
    
    .vep-modal-body .vep-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vep-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vep-calendar-container {
        padding: 20px;
    }
    
    .vep-my-registrations {
        padding: 20px;
    }

    .vep-deck-upload-form {
        flex-direction: column;
        align-items: stretch;
    }

    .vep-deck-upload-name {
        min-width: 0;
        min-height: 44px;
        font-size: 16px;
    }

    .vep-deck-upload-file {
        min-height: 44px;
    }

    .vep-deck-upload-form #vep-deck-upload-btn {
        min-height: 44px;
    }

    .vep-deck-list .vep-deck-item {
        padding: 12px;
    }

    .vep-deck-list .vep-deck-item input {
        min-width: 20px;
        min-height: 20px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .vep-event-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .vep-event-details > p:nth-child(3) {
        grid-column: 1;
    }
    
    .vep-event-details > p:nth-child(4) {
        grid-column: 2;
    }
    
    .vep-event-details > p:nth-child(5) {
        grid-column: 1;
    }
    
    .vep-event-details > p:nth-child(6) {
        grid-column: 2;
    }
    
    .vep-registration-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .vep-registration-details > p:nth-child(3) {
        grid-column: 1;
    }
    
    .vep-registration-details > p:nth-child(4) {
        grid-column: 2;
    }
    
    .vep-registration-details > p:nth-child(5) {
        grid-column: 1;
    }
    
    .vep-registration-details > p:nth-child(6) {
        grid-column: 2;
    }
}

@media (max-width: 480px) {
    .vep-section-header h1 {
        font-size: 1.75rem;
    }
    
    .vep-events-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .vep-event-card {
        padding: 16px;
    }
    
    .vep-event-actions .button {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
.vep-event-card:focus-within {
    outline: 2px solid var(--vep-primary);
    outline-offset: 2px;
}

.vep-tab-button:focus {
    outline: 2px solid var(--vep-primary);
    outline-offset: 2px;
}

.vep-modal-close:focus {
    outline: 2px solid var(--vep-white);
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.vep-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--vep-gray);
}

.vep-loading::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--vep-light);
    border-top: 3px solid var(--vep-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

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

/* ===== UTILITY CLASSES ===== */
.vep-text-center { text-align: center; }
.vep-text-left { text-align: left; }
.vep-text-right { text-align: right; }
.vep-mb-0 { margin-bottom: 0; }
.vep-mb-1 { margin-bottom: 0.5rem; }
.vep-mb-2 { margin-bottom: 1rem; }
.vep-mb-3 { margin-bottom: 1.5rem; }
.vep-mb-4 { margin-bottom: 2rem; }
.vep-mt-0 { margin-top: 0; }
.vep-mt-1 { margin-top: 0.5rem; }
.vep-mt-2 { margin-top: 1rem; }
.vep-mt-3 { margin-top: 1.5rem; }
.vep-mt-4 { margin-top: 2rem; }

/* ===== COMPACT LAYOUT ENHANCEMENTS ===== */
.vep-event-card.compact {
    min-height: 140px;
    padding: 16px;
}

.vep-event-card.compact .vep-event-header {
    margin-bottom: 10px;
}

.vep-event-card.compact .vep-event-details {
    margin-bottom: 12px;
    gap: 12px;
}

.vep-event-card.compact .vep-event-actions {
    padding-top: 10px;
}

/* Ensure grid items are properly aligned */
.vep-event-details > p {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 40px;
}

/* Compact registration layout enhancements */
.vep-registration-item.compact {
    min-height: 140px;
    padding: 16px;
}

.vep-registration-item.compact .vep-registration-header {
    margin-bottom: 10px;
}

.vep-registration-item.compact .vep-registration-details {
    margin-bottom: 12px;
    gap: 12px;
}

.vep-registration-item.compact .vep-registration-actions {
    padding-top: 10px;
}

/* Add subtle visual separation between registration columns */
.vep-registration-details > p:not(:last-child) {
    position: relative;
}

.vep-registration-details > p:nth-child(3n):not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--vep-light);
}
.vep-multiple-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vep-stacked-event {
    margin-bottom: 2px;
}

/* Tooltip styling */
.vep-event-logo:hover,
.vep-event-dot:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Tabbed Interface */
.vep-tabs-container {
    margin: 30px 0;
}

.vep-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.vep-tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.5px;
}

.vep-tab-button:hover {
    color: #000!important;
    background: #f8f8f8;
}

.vep-tab-button.active {
    color: #ffffff;
    border-bottom-color: #000;
    font-weight: 600;
}

.vep-tab-content {
    display: none;
}

.vep-tab-content.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vep-events-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 18px;
    }
    
    .vep-event-card {
        padding: 18px;
    }
    
    .vep-event-details {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .vep-event-details p {
        font-size: 12px;
    }
    
    .vep-event-details strong {
        font-size: 12px;
    }
}
@media (max-width: 768px) {
    .vep-events-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vep-event-card {
        padding: 15px;
        min-height: auto;
    }
    
    .vep-event-details {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .vep-event-details p {
        font-size: 13px;
        margin: 4px 0;
    }
    
    .vep-event-details strong {
        font-size: 13px;
    }
    
    .vep-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .vep-event-header h3 {
        margin-bottom: 5px;
        font-size: 16px;
    }
    
    .vep-event-logo {
        margin-left: 0;
        width: 35px;
        height: 35px;
    }
    
    .vep-event-actions .button {
        padding: 10px 20px;
        font-size: 12px;
        width: 100%;
    }
    
    .vep-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .vep-modal-header,
    .vep-modal-body {
        padding: 15px;
    }
    
    .vep-modal-body input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (max-width: 480px) {
    .vep-events-grid {
        gap: 12px;
    }
    
    .vep-event-card {
        padding: 12px;
    }
    
    .vep-event-header h3 {
        font-size: 15px;
    }
    
    .vep-event-details p {
        font-size: 12px;
        margin: 3px 0;
    }
    
    .vep-event-details strong {
        font-size: 12px;
    }
    
    .vep-event-logo {
        width: 30px;
        height: 30px;
    }
    
    .vep-event-actions .button {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .vep-modal-content {
        width: 98%;
        margin: 5px;
        max-width: 98%;
    }
    
    .vep-modal-body .vep-form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .vep-modal-header h2 {
        font-size: 1.1em;
    }
    
    .vep-modal-body .button {
        width: 100%;
        margin: 5px 0;
    }
}

/* Loading States */
.vep-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.vep-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: vep-spin 1s linear infinite;
}

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

/* Notices */
.vep-notice {
    padding: 10px 15px;
    margin: 10px 0;
    border-left: 4px solid;
}

.vep-notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.vep-notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.vep-notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.vep-notice-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Menu Item */
.vep-menu-item a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.vep-menu-item a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Accessibility */
.vep-modal:focus {
    outline: none;
}

.vep-modal-content:focus {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .vep-event-card {
        border: 2px solid #000;
    }
    
    .vep-modal-content {
        border: 2px solid #000;
    }
    
    .vep-event-full {
        color: #000;
    }
    
    .vep-event-available {
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .vep-event-card {
        transition: none;
    }
    
    .vep-loading::after {
        animation: none;
    }
}

/* Collapsible Events */
.vep-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dadada;
}

.vep-events-header h2 {
    margin: 0;
    color: #1a1a1a;
    font-weight: 300;
    font-size: 1.2em;
    letter-spacing: 1px;
}

.vep-toggle-events {
    background: #74808b;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.vep-toggle-events:hover {
    background: #282D3B;
    transform: translateY(-1px);
}

.vep-toggle-events:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.vep-toggle-events[aria-expanded="true"] .vep-toggle-icon {
    transform: rotate(180deg);
}

.vep-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.vep-events-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.vep-events-content.show {
    display: block !important;
}

/* Animation for smooth expand/collapse */
.vep-events-content {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.vep-events-content.show {
    max-height: 2000px;
    opacity: 1;
}

/* Responsive design for collapsible */
@media (max-width: 768px) {
    .vep-events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .vep-toggle-events {
        align-self: flex-end;
    }
}

/* ===== EVENT HIGHLIGHTING ===== */
.vep-event-highlighted {
    animation: vep-pulse-highlight 2s ease-in-out;
    border: 2px solid var(--vep-primary) !important;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5) !important;
}

@keyframes vep-pulse-highlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

/* ===== EVENT DETAIL MODAL - TWO COLUMN LAYOUT ===== */
.vep-event-detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vep-event-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.vep-event-detail-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.vep-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.vep-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.vep-event-detail-content {
    display: flex;
    flex: 1;
    min-height: 0;
}

.vep-event-detail-left {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.vep-event-detail-right {
    flex: 1;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-left: 1px solid #e5e7eb;
}

.vep-event-detail-info {
    margin-bottom: 20px;
}

.vep-event-detail-info p {
    margin: 12px 0;
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
}

.vep-event-detail-info strong {
    color: #1f2937;
    font-weight: 600;
}

.vep-event-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vep-event-detail-actions .button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.vep-event-detail-actions .button-primary {
    background: #3b82f6;
    color: white;
}

.vep-event-detail-actions .button-primary:hover {
    background: #2563eb;
}

.vep-event-detail-actions .vep-submit-deck {
    background: #3b82f6;
    color: white;
}

.vep-event-detail-actions .vep-submit-deck:hover {
    background: #2563eb;
}

.vep-event-detail-actions .vep-modal-cancel {
    background: #6b7280;
    color: white;
}

.vep-event-detail-actions .vep-modal-cancel:hover {
    background: #4b5563;
}

.vep-event-detail-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.vep-event-large-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vep-event-placeholder-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive design for event detail modal */
@media (max-width: 768px) {
    .vep-event-detail-modal {
        width: 95%;
        max-height: 95vh;
        flex-direction: column;
    }
    
    .vep-event-detail-content {
        flex-direction: column;
    }
    
    .vep-event-detail-right {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding: 20px;
    }
    
    .vep-event-detail-left {
        padding: 20px;
    }
    
    .vep-event-detail-header {
        padding: 15px 20px;
    }
    
    .vep-event-detail-header h3 {
        font-size: 1.25rem;
    }
    
    .vep-event-large-image {
        max-height: 250px;
    }
    
    .vep-event-placeholder-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .vep-event-detail-modal {
        width: 98%;
        max-height: 98vh;
    }
    
    .vep-event-detail-header {
        padding: 12px 15px;
    }
    
    .vep-event-detail-left,
    .vep-event-detail-right {
        padding: 15px;
    }
    
    .vep-event-detail-actions {
        gap: 8px;
    }
    
    .vep-event-detail-actions .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== REGISTRATION FORM - 3 COLUMN GRID ===== */
.vep-event-info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.vep-event-info-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vep-event-info-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px;
}

.vep-event-info-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vep-modal-body .vep-event-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vep-event-info-center h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.vep-modal-body .vep-event-meta {
    margin-bottom: 0;
}

.vep-modal-body .vep-event-meta p {
    margin: 8px 0;
    color: #6b7280;
    font-size: 1rem;
}

/* Capacity Circle Indicator */
.vep-capacity-circle {
    display: flex;
    justify-content: center;
}

.vep-capacity-indicator {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vep-free-places {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.vep-free-label {
    font-size: 0.7rem;
    color: white;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    margin-top: 2px;
}

.vep-free-places.vep-capacity-full {
    font-size: 0.85rem;
    line-height: 1.1;
    text-align: center;
}

/* Responsive design for registration form */
@media (max-width: 768px) {
    .vep-event-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .vep-modal-body .vep-event-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .vep-modal-body .vep-event-logo {
        width: 100px;
        height: 100px;
    }
}
