/* ============================================================
   Sponsor Dashboard (Redesigned)
   ============================================================ */
.ua-dashboard-container {
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #374151;
}
.ua-dashboard-login-notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #ffeeba;
    font-weight: 500;
}
.ua-dashboard-header {
    margin-bottom: 30px;
}
.ua-dashboard-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 5px 0;
}
.ua-dashboard-header p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}
.ua-dashboard-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}
.ua-dashboard-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.ua-dashboard-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #d1fae5;
}
.ua-dashboard-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fef3c7;
}
.ua-dashboard-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}
.ua-dashboard-empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
}
.ua-dashboard-empty h4 {
    margin: 0 0 10px 0;
    color: #374151;
}
.ua-dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ua-dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f3f4f6;
    overflow: hidden;
}
.ua-dashboard-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.ua-dashboard-list-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}
.ua-dashboard-list-details {
    display: flex;
    flex-direction: column;
}
.ua-dashboard-list-right {
    margin-left: 20px;
}
.ua-dashboard-card-logo.ua-dashboard-card-logo-empty {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ua-dashboard-card-header {
    background: #f9fafb;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
}
.ua-dashboard-card-title-group h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.ua-dashboard-event-name {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}
.ua-dashboard-card-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    flex-shrink: 0;
}
.ua-dashboard-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ua-dashboard-card-logo-placeholder {
    font-size: 40px;
    color: #d1d5db;
}
.ua-dashboard-card-body {
    padding: 20px 25px;
}
.ua-dashboard-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ua-badge-success {
    background: #d1fae5;
    color: #065f46;
}
.ua-badge-warning {
    background: #fef3c7;
    color: #92400e;
}
.ua-dashboard-form {
    padding: 25px;
}
.ua-dashboard-form-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}
.ua-dashboard-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.ua-dashboard-input,
.ua-dashboard-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.ua-dashboard-input:focus,
.ua-dashboard-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.ua-dashboard-field {
    margin-bottom: 20px;
}
.ua-dashboard-logo-upload {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.ua-dashboard-logo-preview {
    margin-bottom: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.ua-dashboard-logo-preview img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}
.ua-dashboard-logo-placeholder {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 10px;
}
.ua-dashboard-file-input input[type="file"] {
    max-width: 100%;
    font-size: 13px;
}
.ua-dashboard-file-input small {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
}
.ua-dashboard-form-actions {
    text-align: right;
    margin-top: 10px;
}
.ua-dashboard-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.ua-dashboard-btn:hover {
    background: #2563eb;
}
.ua-dashboard-btn-outline {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.ua-dashboard-btn-outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

@media (max-width: 768px) {
    .ua-dashboard-form-grid {
        grid-template-columns: 1fr;
    }
    .ua-dashboard-logo-upload {
        max-width: 300px;
        margin: 0 auto;
    }
    .ua-dashboard-form-actions {
        text-align: left;
    }
}

/* ============================================================
   Sponsorship Modal (Premium UI)
   ============================================================ */
#ua-sponsor-modal, .ua-dashboard-edit-modal { display: none; }
.ua-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
}
.ua-modal-content {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    z-index: 100000;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    animation: uaModalFadeIn 0.3s ease-out;
}
.ua-dashboard-edit-modal .ua-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes uaModalFadeIn {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
.ua-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}
.ua-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}
.ua-modal-close {
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.ua-modal-close:hover {
    color: #111827;
}
.ua-modal-body {
    padding: 30px;
}
.ua-modal-subtitle {
    margin-top: 0;
    margin-bottom: 25px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
}
.ua-modal-file-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background: #f9fafb;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}
.ua-modal-file-dropzone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.ua-modal-file-dropzone p {
    margin: 10px 0 0 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}
.ua-modal-file-icon {
    font-size: 32px;
}
.ua-modal-file-dropzone input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.ua-modal-footer {
    padding: 20px 30px;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ============================================================
   Sponsorship Carousel (Checkout & Shortcode)
   ============================================================ */
.ua-checkout-carousel-wrapper {
    margin: 30px 0;
    background: transparent;
}
.ua-checkout-carousel-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3338;
}
.ua-slider-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.ua-slider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #dcdcde;
}
.ua-slider-card img {
    border-radius: 8px;
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}
.ua-slider-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 10px;
    line-height: 1.3;
}
.ua-slider-card .ua-price {
    font-size: 1.1rem;
    color: #007cba;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}
.ua-slider-card .ua-slider-trigger {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}
.ua-slider-card .ua-slider-trigger:hover { background: #005a87; }
.ua-checkout-carousel-wrapper .swiper { padding-bottom: 40px; position: relative; }
.ua-checkout-carousel-wrapper .swiper-pagination-bullet-active { background: #007cba !important; }
.ua-single-sponsorship .swiper-wrapper { justify-content: flex-start; }

/* Swiper Navigation Arrows */
.ua-checkout-carousel-wrapper .swiper-button-next,
.ua-checkout-carousel-wrapper .swiper-button-prev {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #007cba;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -20px; /* Offset for pagination padding */
}
.ua-checkout-carousel-wrapper .swiper-button-next:hover,
.ua-checkout-carousel-wrapper .swiper-button-prev:hover {
    background: #007cba;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,124,186,0.25);
}
.ua-checkout-carousel-wrapper .swiper-button-next:after,
.ua-checkout-carousel-wrapper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}
.ua-single-sponsorship .swiper-slide { max-width: 350px; }
.ua-single-sponsorship .swiper-pagination { display: none !important; }
.ua-single-sponsorship { padding-bottom: 10px !important; }

/* ============================================================
   Sponsor Logo Marquee (Elementor widget)
   ============================================================ */
.ua-marquee-container {
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 20px 0;
    position: relative;
    display: flex;
    align-items: center;
}
.ua-marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ua_marquee var(--marquee-speed, 20s) linear infinite;
}
.ua-marquee-track:hover { animation-play-state: paused; }
.ua-marquee-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}
.ua-marquee-item img {
    max-width: none;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}
.ua-marquee-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
@keyframes ua_marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
