* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d5016;
    --primary-dark: #1f3a0f;
    --secondary-color: #4a7c2c;
    --accent-cyan: #06b6d4;
    --dark: #000000;
    --dark-lighter: #1f2937;
    --gray: #6b7280;
    --gray-light: #d1d5db;
    --gray-lighter: #f3f4f6;
    --white: #ffffff;
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f3ff 0%, #e0f2fe 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 0;
    color: var(--dark);
    margin: 0;
}

/* Navigation Bar Styles */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25em;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.7;
}

.nav-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-cyan) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
}

.nav-title {
    color: var(--dark);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 48px;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    padding: 8px 0;
    margin: 0 20px;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 2px solid transparent;
}

#myBattlesLink,
#myRobotsLink {
    display: none;
}

.nav-link:hover {
    background: transparent;
    color: var(--primary-color);
    transform: none;
}

.nav-link.active {
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.nav-social-link:hover {
    color: var(--primary-color);
    background-color: rgba(45, 80, 22, 0.08);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-menu-wrapper {
    position: relative;
}

.user-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
}

.user-menu-btn:hover {
    border-color: var(--primary-color);
}

.user-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-initial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 700;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    margin-top: 8px;
    z-index: 1001;
}

.user-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-lighter);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9em;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.user-menu-item {
    display: block;
    padding: 12px 16px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}

.user-menu-item:hover {
    background: var(--gray-lighter);
    color: var(--primary-color);
}

.user-menu-item.logout-btn {
    border-top: 1px solid var(--gray-lighter);
    color: var(--danger-color);
}

.user-menu-item.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.user-name {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95em;
}

.nav-logout-btn {
    padding: 8px 18px;
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.nav-logout-btn:hover {
    border-color: var(--gray);
    background: var(--gray-lighter);
}

.nav-signin-btn {
    padding: 8px 18px;
    background: var(--white);
    color: var(--dark);
    text-decoration: none;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.nav-signin-btn:hover {
    border-color: var(--gray);
    background: var(--gray-lighter);
}

.nav-login {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-signup-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.3);
}

.nav-signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.4);
}

.nav-login-text-btn {
    background: transparent;
    color: var(--dark);
    border: none;
    padding: 8px 16px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-login-text-btn:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 60px;
    }

    .nav-brand {
        font-size: 1.1em;
    }

    .nav-logo {
        width: 28px;
        height: 28px;
        font-size: 1em;
    }

    .nav-links {
        gap: 4px;
        margin-left: 16px;
    }

    .nav-link {
        font-size: 0.9em;
        padding: 6px 12px;
    }

    .user-name {
        display: none;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0px;
    background: transparent;
}

.content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    max-width: 1280px;
    margin: 40px auto 0;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--white);
    border-bottom: 1px solid var(--gray-lighter);
}

th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--gray);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tbody tr {
    border-bottom: 1px solid var(--gray-lighter);
    transition: all 0.15s ease;
}

tbody tr:hover {
    background-color: var(--gray-lighter);
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 18px 20px;
    color: var(--dark-lighter);
    font-size: 0.95em;
}

.robot-name {
    font-weight: 600;
    color: var(--dark);
}

.home-robot-row {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.home-robot-row:hover {
    background-color: rgba(45, 80, 22, 0.05);
}

.robot-row {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.robot-row:hover {
    background-color: rgba(45, 80, 22, 0.05);
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status.completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status.in-progress {
    background-color: #dbeafe;
    color: #1e40af;
}

.status.timeout {
    background-color: #fed7aa;
    color: #9a3412;
}

.status.failed {
    background-color: #fecaca;
    color: #991b1b;
}

.status.error {
    background-color: #fecaca;
    color: #991b1b;
}

.download-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background: linear-gradient(135deg, #1f3a0f 0%, #3a5f21 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.3);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn.disabled {
    background: rgba(45, 80, 22, 0.3);
    color: rgba(0, 0, 0, 0.4);
    cursor: not-allowed;
}

.download-btn.disabled:hover {
    transform: none;
    background: rgba(45, 80, 22, 0.3);
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-state h2 {
    color: var(--dark);
    font-size: 1.8em;
    margin-bottom: 12px;
    font-weight: 700;
}

.empty-state p {
    color: var(--gray);
    font-size: 1.05em;
}

footer {
    text-align: center;
    color: var(--dark-lighter);
    margin-top: 60px;
    padding-bottom: 40px;
    font-size: 0.9em;
}

.refresh-info {
    text-align: center;
    color: var(--dark-lighter);
    margin-top: 30px;
    font-size: 0.9em;
}

.submit-robot-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    font-family: inherit;
}

.submit-robot-btn:hover {
    background: linear-gradient(135deg, #1f3a0f 0%, #3a5f21 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

.submit-robot-btn:active {
    transform: translateY(0);
}

.submit-robot-btn:disabled {
    background: rgba(45, 80, 22, 0.4);
    color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sample-video-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sample-video-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.sample-video-container:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.sample-video {
    display: block;
    background: #000;
    height: auto;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.sample-video-container.darkened .sample-video {
    filter: brightness(0.7);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.sample-video-container.darkened .video-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.video-buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.video-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.button-divider {
    color: white;
    font-size: 0.95em;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-buttons .submit-robot-btn {
    padding: 18px 48px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
    white-space: nowrap;
    font-size: 1.1em;
    box-shadow: 0 8px 24px rgba(45, 80, 22, 0.5);
}

.video-buttons .submit-robot-btn:hover {
    background: linear-gradient(135deg, #1f3a0f 0%, #3a5f21 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(45, 80, 22, 0.6);
}

.watch-full-button {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9em;
    transition: opacity 0.3s ease, transform 0.2s ease, color 0.2s ease, background 0.2s ease;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
    white-space: nowrap;
}

.watch-full-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: none;
}

.video-buttons.show .submit-robot-btn,
.video-buttons.show .watch-full-button,
.video-buttons.show .button-divider {
    opacity: 1;
    pointer-events: auto;
}

.compilation-result {
    padding: 20px 24px;
    margin: 0 auto 28px;
    border-radius: 12px;
    font-weight: 600;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    max-width: 1280px;
}

.compilation-result.success {
    background-color: rgba(209, 250, 229, 0.9);
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.compilation-result.error {
    background-color: rgba(254, 226, 226, 0.9);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

/* Login Modal Styles */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.login-modal-content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 48px;
    max-width: 440px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: modalSlideIn 0.2s ease;
}

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

.login-modal-content h2 {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 1.5em;
    font-weight: 700;
}

.login-modal-content p {
    color: var(--gray);
    margin-bottom: 32px;
    font-size: 0.95em;
    line-height: 1.5;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.95em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    gap: 12px;
}

.google-login-btn:hover {
    background: var(--gray-lighter);
    border-color: var(--gray);
}

.google-login-btn:active {
    transform: scale(0.98);
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.close-login-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.close-login-modal:hover {
    background: var(--gray-lighter);
    color: var(--dark);
}

.username-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    font-size: 0.95em;
    font-family: inherit;
    transition: all 0.2s ease;
}

.username-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.battles-section {
    display: block;
    padding: 0 16px;
}

.battles-header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 0;
}

.battles-header-top {
    text-align: center;
}

.battles-header-top h1 {
    font-size: 3.5em;
    font-weight: 900;
    line-height: 1.1;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.battles-header-top p {
    font-size: 1.1em;
    color: var(--gray);
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.battles-header-middle {
    display: flex;
    justify-content: center;
    padding: 0;
}

.battles-header-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.battles-header-bottom .submit-robot-btn {
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .battles-header-content {
        gap: 20px;
        padding: 20px 0;
    }

    .battles-header-top h1 {
        font-size: 2.5em;
    }

    .battles-header-top p {
        font-size: 1em;
    }
}

.settings-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-lighter);
}

.settings-header h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.settings-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    font-size: 0.95em;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-group input:disabled {
    background-color: var(--gray-lighter);
    color: var(--gray);
    cursor: not-allowed;
}

.form-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(209, 250, 229, 0.9);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background-color: rgba(254, 226, 226, 0.9);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.account-info {
    padding: 24px;
    border-top: 1px solid var(--gray-lighter);
    background-color: var(--gray-lighter);
    border-radius: 6px;
    margin-top: 32px;
}

.account-info h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.account-info p {
    color: var(--dark-lighter);
    font-size: 0.95em;
    margin: 8px 0;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-tab:hover {
    color: var(--primary-color);
}

.auth-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95em;
    transition: border-color 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.auth-error {
    color: #991b1b;
    font-size: 0.85em;
    margin-top: 8px;
    display: none;
}

/* Home Page Cards */
.home-cards-container {
    max-width: 1400px;
    margin: 3rem auto 2rem;
    padding: 0 1rem;
}

.home-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.home-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.home-card-header {
    padding: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.home-card-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.home-card-empty {
    padding: 3rem 2rem;
    text-align: center;
}

.home-card-empty p {
    color: #6b7280;
    margin: 0;
}

.home-card-content {
    overflow-x: auto;
}

.home-card-footer {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.home-card-link {
    color: #2d5016;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.home-card-link:hover {
    background: rgba(45, 80, 22, 0.1);
    color: #1f3a0f;
    transform: translateX(2px);
}

.home-card-table {
    width: 100%;
    border-collapse: collapse;
}

.home-card-table thead tr {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.home-card-table th {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-card-table th.text-center {
    text-align: center;
}

.home-card-table th.text-left {
    text-align: left;
}

.home-card-table th.col-rank {
    width: 80px;
}

.home-card-table th.col-elo {
    width: 120px;
}

.home-card-table th.col-wl {
    width: 100px;
}

.home-card-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.home-card-table tbody tr:hover {
    background-color: #f9fafb;
}

.home-card-table td {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    color: #111827;
}

.home-card-table td.text-center {
    text-align: center;
}

.home-card-table td.text-left {
    text-align: left;
}

.rank-medal {
    font-size: 1.75rem;
    display: inline-block;
}

.rank-number {
    font-weight: 500;
    color: #6b7280;
}

.robot-name-display {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}

.owner-name {
    color: #6b7280;
    font-size: 0.95rem;
}

.elo-rating-badge {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2d5016;
    background: #e8f5e0;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    display: inline-block;
}

.wl-record {
    color: #6b7280;
    font-size: 0.95rem;
}

.battle-robot-winner {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
}

.battle-robot-loser {
    font-weight: 400;
    color: #6b7280;
    font-size: 1rem;
}

.battle-robot-link {
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    color: inherit;
    transition: opacity 0.2s ease;
}

.battle-robot-link:hover {
    opacity: 0.7;
    text-decoration: none;
}

.version-badge {
    background: #f3f4f6;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #6b7280;
}

.replay-button {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.replay-button-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .home-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Battles Page Styling */
.battles-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-filter {
    padding: 6px 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.checkbox-filter:hover {
    border-color: #2d5016;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2d5016;
    border-radius: 4px;
}

.checkbox-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    user-select: none;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-label svg {
    opacity: 0.7;
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.filter-select:hover {
    border-color: #2d5016;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: #2d5016;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.15);
}

.filter-input {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    background: white;
    cursor: text;
    min-width: 200px;
    transition: all 0.2s ease;
}

.filter-input:hover {
    border-color: #2d5016;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.filter-input:focus {
    outline: none;
    border-color: #2d5016;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.15);
}

.filter-input::placeholder {
    color: #9ca3af;
}

.battles-count {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.battles-count span {
    font-weight: 700;
    color: #2d5016;
}

/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-top: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-info {
    font-size: 0.95rem;
    color: #111827;
    font-weight: 600;
}

.pagination-info-light {
    color: #6b7280;
    font-weight: 400;
    margin: 0 4px;
}

.pagination-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
}

.pagination-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.pagination-btn svg {
    width: 18px;
    height: 18px;
}

.pagination-btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.pagination-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.pagination-page-info {
    padding: 0 12px;
    font-size: 0.95rem;
    color: #6b7280;
}

.pagination-page-info strong {
    color: #111827;
    font-weight: 700;
}

/* Enhanced Table Styling for Battles */
.table-wrapper table {
    background: white;
}

.table-wrapper thead {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 2px solid #e5e7eb;
}

.table-wrapper thead th {
    font-weight: 700;
    color: #374151;
    padding: 18px 24px;
    font-size: 0.85rem;
}

.table-wrapper tbody td {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.table-wrapper tbody tr {
    transition: background-color 0.15s ease;
}

.table-wrapper tbody tr:hover {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

@media (max-width: 768px) {
    .battles-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* Leaderboard Page Styling */
.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.leaderboard-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.leaderboard-empty {
    padding: 4rem 2rem;
}

.leaderboard-table-wrapper {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead tr {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.leaderboard-table th {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaderboard-table th.text-center {
    text-align: center;
}

.leaderboard-table th.text-left {
    text-align: left;
}

.leaderboard-table th.col-rank {
    width: 80px;
}

.leaderboard-table th.col-version {
    width: 80px;
}

.leaderboard-table th.col-rating {
    width: 120px;
}

.leaderboard-table th.col-battles {
    width: 80px;
}

.leaderboard-table th.col-wl {
    width: 100px;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.leaderboard-table tbody tr:hover {
    background-color: #f9fafb;
}

.leaderboard-table td {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    color: #111827;
}

.leaderboard-table td.text-center {
    text-align: center;
}

.leaderboard-table td.text-left {
    text-align: left;
}

.leaderboard-table td.text-secondary {
    color: #6b7280;
    font-size: 0.95rem;
}

.leaderboard-rank-medal {
    font-size: 1.75rem;
    display: inline-block;
}

.leaderboard-rank-number {
    font-weight: 500;
    color: #6b7280;
}

.leaderboard-robot-name {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}

.leaderboard-row {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.leaderboard-row:hover {
    background-color: rgba(45, 80, 22, 0.05);
}

.leaderboard-version-badge {
    background: #f3f4f6;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-weight: 500;
}

.leaderboard-rating {
    font-weight: 700;
    font-size: 1.25rem;
    color: #2d5016;
    background: #e8f5e0;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    display: inline-block;
}

.leaderboard-footer {
    margin-top: 3rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Submit Robot Modal Styles */
.submit-modal-content {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 48px;
    max-width: 720px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: modalSlideIn 0.2s ease;
}

.submit-modal-content h2 {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 2em;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.submit-modal-content > p {
    color: var(--gray);
    font-size: 1.05em;
    line-height: 1.6;
}

.submit-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.submit-option {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.submit-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05) 0%, rgba(74, 124, 44, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-option:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px -8px rgba(45, 80, 22, 0.3);
}

.submit-option:hover::before {
    opacity: 1;
}

.submit-option:active {
    transform: translateY(-2px);
}

.submit-option-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 16px -4px rgba(45, 80, 22, 0.4);
}

.submit-option h3 {
    color: var(--dark);
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.submit-option p {
    color: var(--gray);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.submit-option-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.submit-option-badge.beginner {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

@media (max-width: 768px) {
    .submit-modal-content {
        padding: 32px 24px;
        max-width: 95%;
    }

    .submit-modal-content h2 {
        font-size: 1.5em;
    }

    .submit-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .submit-option {
        padding: 24px 20px;
    }

    .submit-option-icon {
        width: 56px;
        height: 56px;
    }
}

/* Getting Started Modal Styles */
.getting-started-modal-content {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 48px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.2s ease;
}

.getting-started-modal-content h2 {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 2em;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.getting-started-modal-content > p {
    color: var(--gray);
    font-size: 1.05em;
    line-height: 1.6;
    text-align: center;
}

.getting-started-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.1);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--dark);
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--gray);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 12px;
}

.step-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

.step-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

.step-link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

.step-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.step-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 80, 22, 0.4);
}

.step-button:active {
    transform: translateY(0);
}

.code-example {
    margin-top: 12px;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
}

.code-example summary {
    padding: 12px 16px;
    background: #334155;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.code-example summary:hover {
    background: #475569;
}

.code-example pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
}

.code-example code {
    color: #e2e8f0;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.6;
}

.help-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.help-link:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05) 0%, rgba(74, 124, 44, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.2);
}

@media (max-width: 768px) {
    .getting-started-modal-content {
        padding: 32px 24px;
        max-width: 95%;
    }

    .getting-started-modal-content h2 {
        font-size: 1.5em;
    }

    .step {
        flex-direction: column;
        padding: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }

    .code-example code {
        font-size: 0.75em;
    }

    .help-link {
        font-size: 0.85em;
        padding: 8px 16px;
    }
}

/* Robots Page Styles */
.robots-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.robots-card .table-wrapper {
    margin: 0;
}

.robots-card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
}

.submit-robot-btn-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.submit-robot-btn-page:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 80, 22, 0.4);
}

.submit-robot-btn-page:active {
    transform: translateY(0);
}

.empty-state {
    text-align: center;
    padding: 80px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
}

.empty-state-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(45, 80, 22, 0.3);
}

.empty-state h2 {
    font-size: 2em;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 1.1em;
    color: var(--gray);
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .robots-card-footer {
        padding: 20px 16px;
    }

    .submit-robot-btn-page {
        width: 100%;
    }

    .empty-state {
        padding: 60px 24px;
    }

    .empty-state h2 {
        font-size: 1.5em;
    }

    .empty-state p {
        font-size: 1em;
    }
}

/* Robot Details Page Styles */
.robot-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
}

.robot-details-back {
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-4px);
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-2px);
}

.robot-details-header {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e7eb;
}

.robot-details-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.robot-details-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.robot-details-version {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.robot-details-meta {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.robot-details-owner,
.robot-details-submitted {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.owner-label,
.submitted-label {
    color: var(--gray);
    font-weight: 500;
}

.owner-name,
.submitted-date {
    color: var(--dark);
    font-weight: 600;
}

.robot-header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    padding-top: 24px;
    border-top: 2px solid #f3f4f6;
}

.header-stat-item {
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-stat-item:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.header-stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.header-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}


.robot-battles-section {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #e5e7eb;
    overflow: hidden;
}

.robot-battles-section .battles-filter-bar {
    border-radius: 0;
}

.robot-battles-section .table-wrapper {
    border-radius: 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .robot-details-container {
        padding: 24px 16px;
    }

    .robot-details-header {
        padding: 24px;
    }

    .robot-details-name {
        font-size: 1.75rem;
    }

    .robot-header-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .header-stat-item {
        padding: 12px;
    }

    .header-stat-value {
        font-size: 1.5rem;
    }

    .robot-battles-section {
        padding: 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
