/* ============================================
   UI Component Framework - BowlingCRM
   Reusable UI Components with Consistent Styling
   ============================================ */

/* ============================================
   TABS COMPONENT
   Clean, Subtle, Responsive Tab Navigation
   ============================================ */

.ui-tabs {
    width: 100%;
    position: relative;
}

/* Hide tabs on mobile (below 1024px) when bottom nav is used */
@media (max-width: 1023px) {
    .ui-tabs.mobile-hidden {
        display: none;
    }
}

/* Show tabs on desktop (1024px and up) */
@media (min-width: 1024px) {
    .ui-tabs {
        display: block;
    }
}

.ui-tabs-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: transparent;
}

/* Subtle fade overlays for scroll indication */
.ui-tabs-wrapper::before,
.ui-tabs-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ui-tabs-wrapper::before {
    left: 0;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.8) 30%,
        rgba(255, 255, 255, 0) 100%);
}

.ui-tabs-wrapper::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.8) 30%,
        rgba(255, 255, 255, 0) 100%);
}

.ui-tabs-wrapper.has-left-scroll::before {
    opacity: 1;
}

.ui-tabs-wrapper.has-right-scroll::after {
    opacity: 1;
}

.ui-tabs-header {
    display: flex;
    gap: 0;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    border-bottom: 2px solid #e2e8f0;
}

.ui-tabs-header::-webkit-scrollbar {
    display: none;
}

.ui-tabs-scroll-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    width: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    cursor: pointer;
    color: #a0aec0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 3;
    position: relative;
}

.ui-tabs-scroll-button:hover {
    background: rgba(66, 153, 225, 0.05);
    color: #4299e1;
}

.ui-tabs-scroll-button:active {
    background: rgba(66, 153, 225, 0.1);
    transform: scale(0.96);
}

.ui-tabs-scroll-button:focus-visible {
    outline: 2px solid #4299e1;
    outline-offset: -2px;
}

.ui-tabs-scroll-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ui-tabs-scroll-button.left {
    border-right: 1px solid #e2e8f0;
}

.ui-tabs-scroll-button.right {
    border-left: 1px solid #e2e8f0;
}

.ui-tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    min-height: 52px;
}

.ui-tab-button:hover {
    color: #4299e1;
    background: rgba(66, 153, 225, 0.04);
}

.ui-tab-button:focus-visible {
    outline: 2px solid #4299e1;
    outline-offset: -2px;
    z-index: 1;
}

.ui-tab-button.active {
    color: #4299e1;
    border-bottom-color: #4299e1;
    background: transparent;
}

.ui-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ui-tab-icon svg {
    width: 18px;
    height: 18px;
}

.ui-tab-label {
    font-weight: 600;
}

.ui-tabs-content {
    padding: 24px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ui-tab-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .ui-tabs-wrapper::before,
    .ui-tabs-wrapper::after {
        width: 36px;
    }

    .ui-tabs-scroll-button {
        min-width: 36px;
        width: 36px;
    }

    .ui-tabs-scroll-button svg {
        width: 16px;
        height: 16px;
    }

    .ui-tab-button {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 48px;
    }

    .ui-tab-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 640px) {
    .ui-tab-button {
        padding: 10px 14px;
        font-size: 13px;
        gap: 6px;
    }

    .ui-tabs-content {
        padding: 16px 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ui-tab-button.active {
        border-bottom-width: 4px;
    }

    .ui-tabs-scroll-button:hover {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ui-tabs-header {
        scroll-behavior: auto;
    }

    .ui-tab-button,
    .ui-tabs-scroll-button {
        transition: none;
    }

    .ui-tabs-wrapper::before,
    .ui-tabs-wrapper::after {
        transition: none;
    }
}

/* ============================================
   CARD COMPONENT
   ============================================ */

.ui-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ui-card:hover {
    transform: translateY(-4px);
}

.ui-card.no-hover:hover {
    transform: none;
}

.ui-card.default:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ui-card.no-hover.default:hover {
    box-shadow: none;
}

.ui-card.elevated:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.ui-card.no-hover.elevated:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ui-card.outlined:hover {
    border-color: #cbd5e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ui-card.no-hover.outlined:hover {
    border-color: #e2e8f0;
    box-shadow: none;
}

.ui-card.gradient:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.ui-card.no-hover.gradient:hover {
    box-shadow: none;
}

.ui-card.default {
    border: 1px solid #e2e8f0;
}

.ui-card.elevated {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.ui-card.outlined {
    border: 2px solid #e2e8f0;
}

.ui-card.gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.ui-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
}

.ui-card.gradient .ui-card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.ui-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.ui-card.gradient .ui-card-title {
    color: white;
}

.ui-card-body {
    padding: 24px;
}

.ui-card-body.no-padding {
    padding: 0;
}

.ui-card-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
}

.ui-card.gradient .ui-card-footer {
    background: rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   BADGE COMPONENT
   ============================================ */

.ui-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.ui-badge-lg {
    padding: 6px 14px;
    font-size: 13px;
}

.ui-badge-icon {
    display: flex;
    align-items: center;
}

.ui-badge-icon svg {
    width: 14px;
    height: 14px;
}

/* Badge Variants */
.ui-badge-default {
    background: #e2e8f0;
    color: #4a5568;
}

.ui-badge-primary {
    background: #bee3f8;
    color: #2c5282;
}

.ui-badge-success, .ui-badge-completed {
    background: #c6f6d5;
    color: #22543d;
}

.ui-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.ui-badge-danger, .ui-badge-cancelled {
    background: #fed7d7;
    color: #742a2a;
}

.ui-badge-info {
    background: #e6fffa;
    color: #234e52;
}

.ui-badge-active, .ui-badge-inprogress {
    background: #fef3c7;
    color: #92400e;
}

.ui-badge-registration {
    background: #bee3f8;
    color: #2c5282;
}

/* ============================================
   BUTTON COMPONENT
   ============================================ */

.ui-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.ui-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ui-button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ui-spin 0.6s linear infinite;
}

@keyframes ui-spin {
    to { transform: rotate(360deg); }
}

.ui-button-icon-left svg,
.ui-button-icon-right svg {
    width: 18px;
    height: 18px;
}

/* Button Sizes */
.ui-button-small {
    padding: 6px 14px;
    font-size: 13px;
}

.ui-button-large {
    padding: 14px 28px;
    font-size: 16px;
}

.ui-button-full {
    width: 100%;
}

/* Button Variants */
.ui-button-primary {
    background: #4299e1;
    color: white;
}

.ui-button-primary:hover:not(:disabled) {
    background: #3182ce;
}

.ui-button-secondary {
    background: #718096;
    color: white;
}

.ui-button-secondary:hover:not(:disabled) {
    background: #4a5568;
}

.ui-button-success {
    background: #48bb78;
    color: white;
}

.ui-button-success:hover:not(:disabled) {
    background: #38a169;
}

.ui-button-danger {
    background: #f56565;
    color: white;
}

.ui-button-danger:hover:not(:disabled) {
    background: #e53e3e;
}

.ui-button-ghost {
    background: transparent;
    color: #4299e1;
    border: 2px solid #4299e1;
}

.ui-button-ghost:hover:not(:disabled) {
    background: #4299e1;
    color: white;
}

.ui-button-link {
    background: transparent;
    color: #4299e1;
    padding: 0;
}

.ui-button-link:hover:not(:disabled) {
    color: #2b6cb0;
    text-decoration: underline;
}

/* ============================================
   EMPTY STATE COMPONENT
   ============================================ */

.ui-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e0;
    text-align: center;
}

.ui-empty-state-icon {
    margin-bottom: 16px;
    color: #a0aec0;
}

.ui-empty-state-icon svg {
    width: 64px;
    height: 64px;
}

.ui-empty-state-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.ui-empty-state-message {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #718096;
    max-width: 500px;
}

.ui-empty-state-action {
    margin-top: 8px;
}

/* ============================================
   LOADING STATE COMPONENT
   ============================================ */

.ui-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    gap: 20px;
}

.ui-loading-spinner {
    border: 4px solid #e2e8f0;
    border-top-color: #4299e1;
    border-radius: 50%;
    animation: ui-spin 1s linear infinite;
}

.ui-loading-spinner.small {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

.ui-loading-spinner.default {
    width: 50px;
    height: 50px;
}

.ui-loading-spinner.large {
    width: 70px;
    height: 70px;
    border-width: 5px;
}

.ui-loading-message {
    margin: 0;
    font-size: 18px;
    color: #718096;
    font-weight: 500;
}

/* ============================================
   ERROR MESSAGE COMPONENT
   ============================================ */

.ui-error-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid;
    position: relative;
}

.ui-error-message.error {
    background: #fed7d7;
    border-color: #fc8181;
    color: #742a2a;
}

.ui-error-message.warning {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.ui-error-message.info {
    background: #bee3f8;
    border-color: #63b3ed;
    color: #2c5282;
}

.ui-error-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.ui-error-message.error .ui-error-icon {
    color: #c53030;
}

.ui-error-message.warning .ui-error-icon {
    color: #d97706;
}

.ui-error-message.info .ui-error-icon {
    color: #3182ce;
}

.ui-error-content {
    flex: 1;
}

.ui-error-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
}

.ui-error-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.ui-error-action {
    margin-top: 12px;
}

.ui-error-dismiss {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    color: currentColor;
    opacity: 0.6;
}

.ui-error-dismiss:hover {
    background: rgba(0, 0, 0, 0.1);
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .ui-tabs-header {
        gap: 4px;
    }

    .ui-tab-button {
        padding: 10px 16px;
        font-size: 14px;
    }

    .ui-card-header,
    .ui-card-body,
    .ui-card-footer {
        padding: 16px;
    }

    .ui-empty-state {
        padding: 40px 20px;
    }

    .ui-empty-state-icon svg {
        width: 48px;
        height: 48px;
    }

    .ui-empty-state-title {
        font-size: 18px;
    }

    .ui-empty-state-message {
        font-size: 14px;
    }

    .ui-loading-state {
        padding: 40px 20px;
    }

    .ui-error-message {
        padding: 16px;
        gap: 12px;
    }
}

/* ============================================
   BREADCRUMB COMPONENT
   ============================================ */

.ui-breadcrumb {
    margin-bottom: 24px;
}

.ui-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ui-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ui-breadcrumb-link,
.ui-breadcrumb-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4299e1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.ui-breadcrumb-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.ui-breadcrumb-link:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

.ui-breadcrumb-text {
    color: #718096;
}

.ui-breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
}

.ui-breadcrumb-icon svg {
    width: 16px;
    height: 16px;
}

.ui-breadcrumb-separator {
    display: flex;
    align-items: center;
    color: #cbd5e0;
}

.ui-breadcrumb-separator svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   PROGRESS BAR COMPONENT
   ============================================ */

.ui-progress-bar-container {
    position: relative;
    width: 100%;
}

.ui-progress-bar {
    height: 16px;
    background: linear-gradient(to right, #f3f4f6, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.ui-progress-bar.small {
    height: 8px;
}

.ui-progress-bar.large {
    height: 24px;
}

.ui-progress-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ui-progress-bar.default .ui-progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: ui-progress-shimmer 3s ease infinite;
}

.ui-progress-bar.success .ui-progress-fill {
    background: linear-gradient(90deg, #48bb78, #38a169);
}

.ui-progress-bar.warning .ui-progress-fill {
    background: linear-gradient(90deg, #ed8936, #dd6b20);
}

.ui-progress-bar.danger .ui-progress-fill {
    background: linear-gradient(90deg, #f56565, #e53e3e);
}

.ui-progress-bar.gradient .ui-progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

@keyframes ui-progress-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.ui-progress-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: ui-progress-shine 2s infinite;
}

@keyframes ui-progress-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.ui-progress-label {
    margin-top: 8px;
    text-align: right;
    font-size: 14px;
    color: #4a5568;
    font-weight: 600;
}

.ui-progress-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    position: relative;
}

.ui-milestone {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    position: absolute;
    transform: translateX(-50%);
}

/* ============================================
   NAVIGATOR COMPONENT
   ============================================ */

.ui-navigator {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.ui-navigator.gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.ui-navigator.outlined {
    background: transparent;
    border: 2px solid #e2e8f0;
}

.ui-navigator.sticky {
    position: sticky;
    top: 80px;
    z-index: 100;
}

.ui-navigator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ui-navigator.gradient .ui-navigator-header {
    color: white;
}

.ui-navigator-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

.ui-navigator.gradient .ui-navigator-title {
    color: white;
}

.ui-navigator-title-icon {
    display: flex;
    align-items: center;
}

.ui-navigator-title-icon svg {
    width: 24px;
    height: 24px;
}

.ui-navigator-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: inherit;
}

.ui-navigator.gradient .ui-navigator-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.ui-navigator-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.ui-navigator.gradient .ui-navigator-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ui-navigator-content {
    margin-top: 1rem;
}

/* ============================================
   STATS GRID & STAT BOX COMPONENTS
   ============================================ */

.ui-stats-grid {
    display: grid;
    gap: 1rem;
}

.ui-stats-grid.responsive {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ui-stats-grid.fixed-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ui-stats-grid.fixed-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ui-stats-grid.fixed-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ui-stats-grid.bar {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: #f3f4f6;
}

.ui-stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.ui-stats-grid.bar .ui-stat-box {
    border-radius: 0;
}

.ui-stat-box:hover {
    background: #f9fafb;
}

.ui-stat-box.primary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.ui-stat-box.success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.ui-stat-box.warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.ui-stat-box.danger {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.ui-stat-box.info {
    background: linear-gradient(135deg, #4299e1, #2b6cb0);
    color: white;
}

.ui-stat-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-stat-icon svg {
    width: 28px;
    height: 28px;
    stroke: #667eea;
}

.ui-stat-box.primary .ui-stat-icon svg,
.ui-stat-box.success .ui-stat-icon svg,
.ui-stat-box.warning .ui-stat-icon svg,
.ui-stat-box.danger .ui-stat-icon svg,
.ui-stat-box.info .ui-stat-icon svg {
    stroke: white;
}

.ui-stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.ui-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.ui-stat-box.primary .ui-stat-value,
.ui-stat-box.success .ui-stat-value,
.ui-stat-box.warning .ui-stat-value,
.ui-stat-box.danger .ui-stat-value,
.ui-stat-box.info .ui-stat-value {
    color: white;
}

.ui-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ui-stat-box.primary .ui-stat-label,
.ui-stat-box.success .ui-stat-label,
.ui-stat-box.warning .ui-stat-label,
.ui-stat-box.danger .ui-stat-label,
.ui-stat-box.info .ui-stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.ui-stat-action {
    flex-shrink: 0;
}

/* ============================================
   GRID COMPONENT
   ============================================ */

.ui-grid {
    display: grid;
    width: 100%;
}

.ui-grid.auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ui-grid.auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ui-grid.cols-1 {
    grid-template-columns: 1fr;
}

.ui-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ui-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ui-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ui-grid.tight {
    gap: 12px;
}

.ui-grid.default {
    gap: 24px;
}

.ui-grid.loose {
    gap: 36px;
}

/* Responsive grid variants */
@media (min-width: 1024px) {
    .ui-grid.cols-2-lg {
        grid-template-columns: repeat(2, 1fr);
    }

    .ui-grid.cols-3-lg {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   ADDITIONAL RESPONSIVE RULES
   ============================================ */

@media (max-width: 768px) {
    .ui-stats-grid.fixed-2,
    .ui-stats-grid.fixed-3,
    .ui-stats-grid.fixed-4 {
        grid-template-columns: 1fr;
    }

    .ui-stat-box {
        padding: 1rem;
    }

    .ui-breadcrumb-list {
        font-size: 13px;
    }

    .ui-grid.cols-2,
    .ui-grid.cols-3,
    .ui-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .ui-navigator {
        padding: 1rem;
    }
}

/* ============================================
   LIST CARD COMPONENT
   ============================================ */

.ui-list-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Animated top border */
.ui-list-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.ui-list-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 20px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

.ui-list-card:hover::before {
    transform: scaleX(1);
}

.ui-list-card.no-hover {
    cursor: default;
}

.ui-list-card.no-hover:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.ui-list-card.no-hover::before {
    display: none;
}

/* Header */
.ui-list-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ui-list-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.3;
}

/* Description */
.ui-list-card-description {
    color: #4a5568;
    margin: 0 0 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta items */
.ui-list-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.ui-list-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-size: 14px;
}

.ui-list-card-meta-item svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Footer */
.ui-list-card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-list-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.15s ease;
}

.ui-list-card:hover .ui-list-card-action {
    gap: 12px;
}

.ui-list-card-action svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .ui-list-card {
        padding: 20px;
    }

    .ui-list-card-title {
        font-size: 18px;
    }

    .ui-list-card-meta {
        gap: 12px;
    }
}

/* ============================================
   HERO COMPONENT
   ============================================ */

.ui-hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.ui-hero-logo-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ui-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 64px 24px;
    border-radius: 24px;
    margin-bottom: 64px;
    overflow: hidden;
}

.ui-hero-banner {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.ui-hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
}

.ui-hero.full-width {
    margin: 0;
    border-radius: 0;
}

/* Animated pattern background */
.ui-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    animation: ui-hero-pattern 20s linear infinite;
    z-index: 1;
}

@keyframes ui-hero-pattern {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.ui-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.ui-hero-title {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.ui-hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    opacity: 0.95;
}

.ui-hero-description {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 32px;
}

.ui-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.ui-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 9999px;
    font-weight: 500;
}

.ui-hero-meta-item svg {
    width: 20px;
    height: 20px;
}

.ui-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .ui-hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .ui-hero {
        padding: 48px 24px;
    }

    .ui-hero-title {
        font-size: 32px;
    }

    .ui-hero-subtitle {
        font-size: 18px;
    }
}

/* ============================================
   PAGE HEADER COMPONENT
   ============================================ */

.ui-page-header {
    text-align: center;
    margin-bottom: 48px;
    animation: ui-fade-in-up 0.6s ease-out;
}

.ui-page-header-title {
    font-size: 48px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ui-page-header-subtitle {
    font-size: 20px;
    color: #4a5568;
    margin: 0;
}

@keyframes ui-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ui-page-header-title {
        font-size: 28px;
    }

    .ui-page-header-subtitle {
        font-size: 16px;
    }
}


/* ============================================
   BREADCRUMB COMPONENT
   ============================================ */

.ui-breadcrumb {
    display: block;
    padding: 0;
    margin: 0;
}

.ui-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ui-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ui-breadcrumb-link,
.ui-breadcrumb-link button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.ui-breadcrumb-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.ui-breadcrumb-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

.ui-breadcrumb-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
}

.ui-breadcrumb-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.ui-breadcrumb-icon svg {
    width: 16px;
    height: 16px;
}

.ui-breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: #cbd5e0;
    flex-shrink: 0;
}

.ui-breadcrumb-separator svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 767px) {
    .ui-breadcrumb-list {
        font-size: 13px;
    }

    .ui-breadcrumb-link,
    .ui-breadcrumb-text,
    .ui-breadcrumb-current {
        font-size: 13px;
    }
}

/* ============================================
   MATCH CARD COMPONENT
   ============================================ */

.ui-match-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ui-match-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.ui-match-card.completed {
    border-top: 3px solid #48bb78;
}

.ui-match-card-header {
    display: flex;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.ui-match-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ui-match-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.ui-match-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.ui-match-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ui-match-number {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
}

.ui-match-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #718096;
}

.ui-match-meta svg {
    width: 16px;
    height: 16px;
    color: #4299e1;
    flex-shrink: 0;
}

.ui-match-teams {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Match Team Component */
.ui-match-team {
    padding: 14px;
    background: #f7fafc;
    border-radius: 10px;
    transition: all 0.2s;
}

.ui-match-team:hover {
    background: #edf2f7;
}

.ui-match-team.winner {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    border: 2px solid #48bb78;
    padding: 12px;
}

.ui-match-team-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   BOTTOM NAVIGATION COMPONENT
   Mobile App Style Bottom Navigation
   ============================================ */

.ui-bottom-nav-layout {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* On desktop, remove the layout constraints */
@media (min-width: 1024px) {
    .ui-bottom-nav-layout {
        display: block;
        min-height: auto;
    }
}

.ui-bottom-nav-content {
    flex: 1;
    padding-bottom: 80px; /* Space for fixed bottom nav on mobile */
    overflow-y: auto;
}

.ui-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    display: block; /* Show on mobile by default */
}

/* Hide bottom nav on desktop (1024px and up) */
@media (min-width: 1024px) {
    .ui-bottom-nav {
        display: none;
    }

    .ui-bottom-nav-content {
        padding-bottom: 0; /* Remove bottom padding on desktop */
    }

    .ui-bottom-nav-layout {
        display: block;
        min-height: auto;
    }
}

/* Unified content wrapper for responsive navigation */
.ui-responsive-content {
    padding-top: 24px;
}

/* On mobile, add bottom padding for fixed bottom nav */
@media (max-width: 1023px) {
    .ui-responsive-content {
        padding-bottom: 80px;
    }
}

/* On desktop, add standard bottom padding */
@media (min-width: 1024px) {
    .ui-responsive-content {
        padding-bottom: 24px;
    }
}

.ui-bottom-nav-items {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.ui-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    background: transparent;
    border: none;
    flex: 1; /* Items grow to fill available space */
    cursor: pointer;
    transition: all 0.2s ease;
    color: #718096;
    min-height: 64px;
    position: relative;
}

.ui-bottom-nav-item:hover {
    background: rgba(66, 153, 225, 0.05);
    color: #4299e1;
}

.ui-bottom-nav-item:active {
    background: rgba(66, 153, 225, 0.1);
    transform: scale(0.96);
}

.ui-bottom-nav-item.active {
    color: #2b6cb0;
}

.ui-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: #4299e1;
    border-radius: 0 0 3px 3px;
}

.ui-bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: calc(100% - 12px);
    background: rgba(66, 153, 225, 0.12);
    border-radius: 12px;
    z-index: -1;
}

.ui-bottom-nav-item:focus-visible {
    outline: 2px solid #4299e1;
    outline-offset: -2px;
    z-index: 1;
}

.ui-bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ui-bottom-nav-item.active .ui-bottom-nav-icon {
    transform: scale(1.15);
    color: #2b6cb0;
}

.ui-bottom-nav-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.ui-bottom-nav-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ui-bottom-nav-item.active .ui-bottom-nav-label {
    font-weight: 700;
    color: #2b6cb0;
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .ui-bottom-nav-item {
        padding: 8px 8px;
    }

    .ui-bottom-nav-label {
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .ui-bottom-nav-content {
        padding-bottom: 88px;
    }

    .ui-bottom-nav-item {
        min-height: 72px;
        padding: 10px 8px;
        gap: 6px;
    }

    .ui-bottom-nav-icon svg {
        width: 26px;
        height: 26px;
    }

    .ui-bottom-nav-label {
        font-size: 13px;
    }
}

/* Large screens - consider switching to side nav or tabs */
@media (min-width: 1024px) {
    /* Bottom nav is hidden on large screens */
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .ui-bottom-nav {
        border-top-width: 2px;
    }

    .ui-bottom-nav-item.active::before {
        height: 4px;
    }

    .ui-bottom-nav-item.active::after {
        background: rgba(66, 153, 225, 0.18);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ui-bottom-nav-item,
    .ui-bottom-nav-icon {
        transition: none;
    }

    .ui-bottom-nav-item:active {
        transform: none;
    }
}

.ui-match-team-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ui-match-team-name {
    font-size: 16px;
    color: #2d3748;
    margin: 0;
    font-weight: 700;
    flex: 1;
}

.ui-match-winner-icon {
    width: 20px;
    height: 20px;
    color: #38a169;
    flex-shrink: 0;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.ui-match-team-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ui-match-team-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 8px;
    transition: all 0.2s;
}

.ui-match-team.winner .ui-match-team-stat {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #48bb78;
}

.ui-match-team-stat:hover {
    background: #edf2f7;
}

.ui-match-team.winner .ui-match-team-stat:hover {
    background: rgba(255, 255, 255, 1);
}

.ui-match-team-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ui-match-team-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    font-family: 'Courier New', monospace;
    line-height: 1;
}

/* Compact Match Card */
.ui-match-card.compact {
    padding: 14px;
    gap: 10px;
}

.ui-match-card.compact .ui-match-icon {
    width: 36px;
    height: 36px;
}

.ui-match-card.compact .ui-match-icon svg {
    width: 18px;
    height: 18px;
}

.ui-match-card.compact .ui-match-number {
    font-size: 14px;
}

.ui-match-card.compact .ui-match-team {
    padding: 10px;
}

.ui-match-card.compact .ui-match-team-name {
    font-size: 14px;
}

.ui-match-card.compact .ui-match-team-stat {
    padding: 6px;
}

.ui-match-card.compact .ui-match-team-stat-value {
    font-size: 16px;
}

.ui-match-card.compact .ui-match-team-stat-label {
    font-size: 9px;
}

.ui-match-card.compact .ui-match-winner-icon {
    width: 16px;
    height: 16px;
}

.ui-match-card.compact .versus-divider span {
    padding: 3px 10px;
    font-size: 10px;
}

/* Table Row Match Card */
.ui-match-card.table-row {
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
    border-radius: 8px;
}

.ui-match-card.table-row .ui-match-card-header {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
    flex: 0 0 auto;
}

.ui-match-card.table-row .ui-match-icon-wrapper {
    gap: 8px;
}

.ui-match-card.table-row .ui-match-icon {
    width: 32px;
    height: 32px;
}

.ui-match-card.table-row .ui-match-icon svg {
    width: 16px;
    height: 16px;
}

.ui-match-card.table-row .ui-match-number {
    font-size: 13px;
}

.ui-match-card.table-row .ui-match-meta {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 12px;
    font-size: 12px;
}

.ui-match-card.table-row .ui-match-teams {
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.ui-match-card.table-row .ui-match-team {
    flex: 1;
    padding: 8px 12px;
}

.ui-match-card.table-row .ui-match-team-info {
    margin-bottom: 0;
}

.ui-match-card.table-row .ui-match-team-name {
    font-size: 14px;
}

.ui-match-card.table-row .ui-match-team-stats {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.ui-match-card.table-row .ui-match-team-stat {
    padding: 4px 8px;
    flex-direction: row;
    gap: 6px;
    align-items: center;
}

.ui-match-card.table-row .ui-match-team-stat-label {
    margin-bottom: 0;
    font-size: 9px;
}

.ui-match-card.table-row .ui-match-team-stat-value {
    font-size: 14px;
}

.ui-match-card.table-row .ui-match-winner-icon {
    width: 14px;
    height: 14px;
}

.ui-match-card.table-row .versus-divider {
    padding: 0;
}

.ui-match-card.table-row .versus-divider span {
    padding: 2px 8px;
    font-size: 9px;
}

/* Bye Match Styles */
.ui-match-card.bye-match {
    border: 2px dashed #cbd5e0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.ui-match-card.bye-match .ui-match-icon {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
}

.bye-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 10px;
    color: #718096;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
}

.bye-message svg {
    width: 20px;
    height: 20px;
    color: #a0aec0;
}

.ui-match-card.compact .bye-message {
    padding: 10px;
    font-size: 12px;
}

.ui-match-card.compact .bye-message svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 767px) {
    .ui-match-card {
        padding: 16px;
    }

    .ui-match-icon {
        width: 40px;
        height: 40px;
    }

    .ui-match-icon svg {
        width: 20px;
        height: 20px;
    }

    .ui-match-number {
        font-size: 14px;
    }

    .ui-match-team-name {
        font-size: 15px;
    }

    .ui-match-team-stat-value {
        font-size: 18px;
    }

    .ui-match-card.table-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ui-match-card.table-row .ui-match-teams {
        flex-direction: column;
    }
}

/* ============================================
   VIEW MODE SELECTOR COMPONENT
   ============================================ */

.ui-view-mode-selector {
    display: inline-flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.ui-view-mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border: none;
    border-right: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    color: #718096;
    font-size: 13px;
    font-weight: 500;
}

.ui-view-mode-btn:last-child {
    border-right: none;
}

.ui-view-mode-btn svg {
    width: 18px;
    height: 18px;
}

.ui-view-mode-btn:hover {
    background: #f7fafc;
    color: #4299e1;
}

.ui-view-mode-btn.active {
    background: #4299e1;
    color: white;
}

.ui-view-mode-btn.active:hover {
    background: #3182ce;
}

@media (max-width: 767px) {
    .ui-view-mode-btn span {
        display: none;
    }

    .ui-view-mode-btn {
        padding: 8px;
    }
}
