:root {
            --primary-color: #B71C1C;
            --primary-dark: #8B0000;
            --gold-color: #FFD700;
            --gold-dark: #FF8C00;
            --top-bar-bg: #424242;
            --footer-bg: #ffffff;
            --footer-text: #757575;
            --footer-active: #B71C1C;
            --content-bg: #f5f5f5;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Roboto', sans-serif;
            height: 100vh;
            overflow: hidden;
            background-color: var(--content-bg);
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        /* Allow text selection for specific elements */
        input, textarea, [contenteditable="true"], .selectable {
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }
        
        #vueapp01 {
            height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        /* App Container */
        .app-container {
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        
        /* Login Screen Styles */
        .login-screen {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #1a1a1a, #333333);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 20px;
        }
        
        .login-container {
            background: white;
            border-radius: 16px;
            padding: 40px 30px;
            max-width: 400px;
            width: 100%;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            text-align: center;
        }
        
        .login-logo {
            margin-bottom: 20px;
        }
        
        .login-title {
            font-size: 24px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }
        
        .login-subtitle {
            font-size: 14px;
            color: #666;
            margin-bottom: 32px;
            line-height: 1.5;
        }
        
        .login-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 24px;
        }
        
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .btn-primary {
            background: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover:not(:disabled) {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(183, 28, 28, 0.4);
        }
        
        .btn-secondary {
            background: white;
            color: #333;
            border: 2px solid #ddd;
        }
        
        .btn-secondary:hover:not(:disabled) {
            background: #f5f5f5;
            border-color: #bbb;
        }
        
        .btn-login {
            font-size: 18px;
            padding: 14px 24px;
        }
        
        .btn-skip {
            font-size: 14px;
        }
        
        .btn-logout {
            margin-top: 16px;
            width: 100%;
        }
        
        .login-info {
            text-align: left;
            background: #f8f9fa;
            padding: 16px;
            border-radius: 8px;
            font-size: 13px;
            color: #666;
        }
        
        .login-info p {
            margin: 0 0 8px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .login-info ul {
            list-style: none;
            margin: 8px 0 0 0;
            padding: 0;
        }
        
        .login-info li {
            margin: 6px 0;
            padding-left: 20px;
            position: relative;
        }
        
        .login-info li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: var(--primary-color);
            font-weight: bold;
        }
        
        /* Not Logged In Screen */
        .not-logged-in {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 400px;
        }
        
        .login-prompt {
            text-align: center;
            padding: 40px;
        }
        
        .login-prompt h2 {
            font-size: 24px;
            font-weight: 500;
            color: #333;
            margin: 20px 0 12px 0;
        }
        
        .login-prompt p {
            font-size: 16px;
            color: #666;
            line-height: 1.5;
        }
        
        /* Loading Container */
        .loading-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 400px;
            gap: 16px;
        }
        
        .loading-container p {
            font-size: 16px;
            color: #666;
        }
        
        /* Error Container */
        .error-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 400px;
            gap: 16px;
            text-align: center;
        }
        
        .error-container p {
            font-size: 16px;
            color: #666;
            margin-bottom: 16px;
        }
        
        /* No Tickets */
        .no-tickets,
        .no-competitions {
            text-align: center;
            padding: 40px;
            color: #999;
        }
        
        .no-tickets p,
        .no-competitions p {
            margin-top: 12px;
        }
        
        .no-competitions i {
            color: #ddd;
            margin-bottom: 20px;
        }
        
        .profile-email {
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
        }
        
        /* Top Bar */
        .top-bar {
            background-color: var(--top-bar-bg);
            color: white;
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            flex-shrink: 0;
        }
        
        .top-bar-left,
        .top-bar-right {
            width: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .top-bar-center {
            flex: 1;
            text-align: center;
            overflow: hidden;
        }
        
        .event-name-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .event-name {
            font-size: 18px;
            font-weight: 500;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .location-icon-btn {
            background: none;
            border: none;
            color: white;
            font-size: 16px;
            padding: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.8;
            transition: all 0.3s ease;
        }

        .location-icon-btn:hover {
            opacity: 1;
            transform: scale(1.1);
        }

        .location-icon-btn.nearby {
            color: #080;
            font-weight: bold;
            opacity: 1;
        }

        .event-subtitle {
            font-size: 12px;
            font-weight: 400;
            opacity: 0.8;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .icon-btn {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.2s;
        }
        
        .icon-btn:hover {
            background-color: rgba(255,255,255,0.1);
        }

        /* Remove dropdown toggle caret/triangle */
        .dropdown-toggle::after {
            display: none !important;
        }
        
        /* Main Content */
        .main-content {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            background-color: var(--content-bg);
        }
        
        .content-section {
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.12);
            position: relative;
        }
        
        .content-section h2 {
            font-size: 24px;
            font-weight: 500;
            margin-bottom: 12px;
            color: #212121;
        }
        
        .content-section p {
            color: #757575;
            line-height: 1.5;
        }
        
        /* Ticket Banner - Golden Gradient */
        .ticket-banner {
            position: sticky;
            top: -20px;
            margin: -20px -20px 20px -20px;
            background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
            color: #333;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
            border-radius: 8px 8px 0 0;
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .ticket-banner:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
        }
        
        .ticket-banner:active {
            transform: translateY(0);
        }
        
        .ticket-text {
            font-size: 16px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        
        .ticket-icon {
            font-size: 24px;
            animation: pulse-icon 2s ease-in-out infinite;
        }
        
        @keyframes pulse-icon {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }
        
        /* Get Ticket Banner - Call to Action (Blue/Primary) */
        .get-ticket-banner {
            position: sticky;
            top: -20px;
            margin: -20px -20px 20px -20px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: white;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(183, 28, 28, 0.4);
            border-radius: 8px 8px 0 0;
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .get-ticket-banner:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(183, 28, 28, 0.6);
        }
        
        .get-ticket-banner:active {
            transform: translateY(0);
        }
        
        /* News Feed Styles */
        .news-feed {
            margin-top: 20px;
        }
        
        .news-item {
            padding: 15px;
            margin-bottom: 12px;
            background: #f8f9fa;
            border-left: 4px solid var(--primary-color);
            border-radius: 4px;
            transition: all 0.2s;
        }
        
        .news-item:hover {
            background: #e9ecef;
            transform: translateX(4px);
        }
        
        .news-item-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }
        
        .news-item-icon {
            width: 32px;
            height: 32px;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }
        
        .news-item-time {
            font-size: 12px;
            color: #999;
            margin-left: auto;
        }
        
        .news-item-title {
            font-weight: 500;
            color: #333;
            font-size: 15px;
        }
        
        .news-item-content {
            font-size: 14px;
            color: #666;
            line-height: 1.4;
        }
        
        /* Schedule Page Styles */
        .schedule-container {
            position: relative;
        }
        
        .schedule-controls {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            gap: 8px;
            z-index: 10;
        }
        
        .zoom-btn {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid #ddd;
            width: 36px;
            height: 36px;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: #333;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: all 0.2s;
        }
        
        .zoom-btn:hover {
            background: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        
        .zoom-btn:active {
            transform: scale(0.95);
        }
        
        .schedule-image-wrapper {
            position: relative;
            overflow: auto;
            max-height: 70vh;
            border: 1px solid #ddd;
            border-radius: 4px;
            background: #fafafa;
        }
        
        .schedule-image {
            width: 100%;
            display: block;
            transition: transform 0.3s ease;
            cursor: zoom-in;
        }
        
        .schedule-image.zoomed {
            cursor: zoom-out;
        }
        
        /* Profile Page Styles */
        .profile-header {
            text-align: center;
            padding: 20px;
            background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
            border-radius: 8px;
            margin-bottom: 20px;
        }
        
        .profile-picture {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 4px solid white;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            margin: 0 auto 15px;
            object-fit: cover;
        }
        
        .profile-name {
            font-size: 24px;
            font-weight: 500;
            color: #333;
            margin-bottom: 8px;
        }
        
        .profile-wsdc {
            font-size: 14px;
            color: #666;
            margin-bottom: 4px;
        }
        
        .profile-division {
            display: inline-block;
            padding: 6px 16px;
            background: var(--primary-color);
            color: white;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            margin-top: 8px;
        }
        
        .profile-points {
            display: flex;
            justify-content: space-around;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #ddd;
        }
        
        .profile-stat {
            text-align: center;
        }
        
        .profile-stat-value {
            font-size: 28px;
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .profile-stat-label {
            font-size: 12px;
            color: #999;
            margin-top: 4px;
        }
        
        .role-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 20px;
        }
        
        .role-card {
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            text-align: center;
        }
        
        .role-card-title {
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
        }
        
        .role-card-division {
            font-size: 16px;
            font-weight: 500;
            color: var(--primary-color);
            margin-bottom: 4px;
        }
        
        .role-card-points {
            font-size: 14px;
            color: #999;
        }
        
        .tickets-section {
            margin-top: 20px;
        }
        
        .tickets-section h3 {
            font-size: 18px;
            font-weight: 500;
            color: #333;
            margin-bottom: 12px;
        }
        
        .ticket-card {
            padding: 15px;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            margin-bottom: 12px;
            transition: all 0.2s;
        }
        
        .ticket-card:hover {
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        
        .ticket-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .ticket-card-event {
            font-weight: 500;
            color: #333;
            font-size: 16px;
        }
        
        .ticket-card-status {
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .ticket-status-active {
            background: #d4edda;
            color: #155724;
        }
        
        .ticket-status-past {
            background: #f8f9fa;
            color: #6c757d;
        }
        
        .ticket-card-details {
            font-size: 14px;
            color: #666;
        }
        
        /* More Page Button Styles */
        .more-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-top: 20px;
        }
        
        .more-btn {
            padding: 20px;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            color: #333;
        }
        
        .more-btn:hover {
            background: #f8f9fa;
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .more-btn i {
            font-size: 32px;
            color: var(--primary-color);
        }
        
        .more-btn span {
            font-size: 14px;
            font-weight: 500;
            text-align: center;
        }
        
        /* Iframe Container */
        .iframe-container {
                position: relative;
                width: 100%;
                height: calc(100vh - 200px); /* Adjust based on your header/footer height */
                min-height: 600px;
                overflow: auto;
                -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
            }

            .iframe-container iframe {
                width: 100%;
                height: 100%;
                border: none;
                display: block;
            }



        
        /* Ticket Page Styles */
        .ticket-container {
            margin-top: 20px;
        }
        
        .ticket-info {
            padding: 20px;
            background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
            border-radius: 8px;
            margin-bottom: 20px;
        }
        
        .ticket-info h3 {
            color: var(--primary-color);
            font-size: 20px;
            font-weight: 500;
            margin-bottom: 12px;
        }
        
        .ticket-location,
        .ticket-venue {
            color: #424242;
            margin: 8px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .qr-code-container {
            display: flex;
            justify-content: center;
            margin: 30px 0;
        }
        
        .qr-code-placeholder {
            width: 200px;
            height: 200px;
            background: white;
            border: 2px dashed #ccc;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #999;
        }
        
        .qr-code-placeholder i {
            font-size: 48px;
            margin-bottom: 10px;
        }
        
        .qr-code-placeholder p {
            font-size: 12px;
            text-align: center;
            margin: 0;
        }
        
        .ticket-details {
            padding: 15px;
            background: #f9f9f9;
            border-radius: 8px;
            border-left: 4px solid var(--primary-color);
        }
        
        .ticket-details p {
            margin: 8px 0;
        }
        
        .ticket-note {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #666;
            font-size: 14px;
            margin-top: 12px;
        }
        
        .no-ticket {
            text-align: center;
            padding: 40px 20px;
            color: #999;
        }
        
        .no-ticket i {
            font-size: 64px;
            margin-bottom: 20px;
            opacity: 0.3;
        }
        
        /* Footer Menu - Material Design */
        .footer-menu {
            background-color: var(--footer-bg);
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: space-around;
            box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
            flex-shrink: 0;
            border-top: 1px solid #e0e0e0;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }
        
        .menu-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 6px 12px;
            transition: all 0.2s ease;
            color: var(--footer-text);
            min-width: 64px;
        }
        
        .menu-item i {
            font-size: 20px;
            margin-bottom: 4px;
            transition: all 0.2s ease;
        }
        
        .menu-item span {
            font-size: 11px;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        .menu-item.active {
            color: var(--footer-active);
        }
        
        .menu-item.active i {
            font-size: 24px;
            transform: scale(1.1);
        }
        
        .menu-item:active {
            transform: scale(0.95);
        }
        
        /* Loading Screen */
        .loading-screen {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background: linear-gradient(135deg, #222, #555);
        }
        
        .loading-screen img {
            width: 10vw;
            animation: pulse 1.5s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(0.95); }
        }
        
        /* Responsive adjustments */
        @media (max-width: 360px) {
            .menu-item {
                min-width: 56px;
                padding: 6px 8px;
            }
            
            .menu-item span {
                font-size: 10px;
            }
            
            .more-buttons {
                grid-template-columns: 1fr;
            }
        }

/* Ticket Status Styling - Color-coded left borders */
.ticket-card {
    position: relative;
    border-left-width: 5px !important;
    border-left-style: solid !important;
}

/* Status: Accepted/Confirmed - Green */
.ticket-status-accepted {
    border-left-color: #28a745 !important;
    background: #f8fff9 !important;
}

.ticket-status-accepted:hover {
    background: #eeffef !important;
}

.ticket-status-accepted .status-badge {
    background: #28a745;
    color: white;
}

/* Status: Checked In - Blue */
.ticket-status-checkedin {
    border-left-color: #007bff !important;
    background: #f7fbff !important;
}

.ticket-status-checkedin:hover {
    background: #e7f3ff !important;
}

.ticket-status-checkedin .status-badge {
    background: #007bff;
    color: white;
}

/* Status: Waitlist - Yellow */
.ticket-status-waitlist {
    border-left-color: #ffc107 !important;
    background: #fffcf5 !important;
}

.ticket-status-waitlist:hover {
    background: #fff8e5 !important;
}

.ticket-status-waitlist .status-badge {
    background: #ffc107;
    color: #333;
}

/* Status: Wait Partner - Orange */
.ticket-status-waitpartner {
    border-left-color: #ff9800 !important;
    background: #fffaf5 !important;
}

.ticket-status-waitpartner:hover {
    background: #fff3e5 !important;
}

.ticket-status-waitpartner .status-badge {
    background: #ff9800;
    color: white;
}

/* Status: Cancelled/Revoked - Red */
.ticket-status-cancelled,
.ticket-status-revoked {
    border-left-color: #dc3545 !important;
    background: #fff5f5 !important;
    opacity: 0.85;
}

.ticket-status-cancelled:hover,
.ticket-status-revoked:hover {
    background: #ffe5e5 !important;
}

.ticket-status-cancelled .status-badge,
.ticket-status-revoked .status-badge {
    background: #dc3545;
    color: white;
}

/* Status: Created - Gray */
.ticket-status-created {
    border-left-color: #6c757d !important;
    background: #f8f9fa !important;
}

.ticket-status-created:hover {
    background: #e9ecef !important;
}

.ticket-status-created .status-badge {
    background: #6c757d;
    color: white;
}

/* Status: Transferred - Purple */
.ticket-status-transfered {
    border-left-color: #6f42c1 !important;
    background: #faf8ff !important;
}

.ticket-status-transfered:hover {
    background: #f0ebff !important;
}

.ticket-status-transfered .status-badge {
    background: #6f42c1;
    color: white;
}

/* Status: Past - Medium gray */
.ticket-status-past {
    border-left-color: #adb5bd !important;
    background: #f8f9fa !important;
}

.ticket-status-past:hover {
    background: #e9ecef !important;
}

.ticket-status-past .status-badge,
.status-badge.status-past {
    background: #6c757d;
    color: white;
}

/* Status Badge Styling */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Ticket Card Status Actions */
.ticket-card-status-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Bootstrap Dropdown customization for tickets */
.ticket-card .dropdown-menu {
    min-width: 180px;
    font-size: 14px;
}

.ticket-card .dropdown-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-card .dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--primary-color);
}

.ticket-card .dropdown-item:hover i {
    color: white;
}