/* Add this at the top of your style section, right after <style> */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');

:root {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Update specific font weights for better Geist usage */
.app-title {
    font-family: 'Geist', sans-serif;
    font-weight: 600;
}

.team-name {
    font-family: 'Geist', sans-serif;
    font-weight: 600;
}

.team-captain {
    font-family: 'Geist', sans-serif;
    font-weight: 400;
}

.available-players-title {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
}

.modal-title {
    font-family: 'Geist', sans-serif;
    font-weight: 600;
}

button {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
}

input,
textarea {
    font-family: 'Geist', sans-serif;
    font-weight: 400;
}

.instructions-title {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
}

.step-content {
    font-family: 'Geist', sans-serif;
    font-weight: 400;
}

.pick-number {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
}

body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: transparent;
}

.controls {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.team-setup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.teams-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-col {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    min-width: 240px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.team-col:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.team-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--team-color);
}

.team-header {
    padding: 20px;
    margin: -20px -20px 15px -20px;
    background: linear-gradient(to bottom, var(--team-color), transparent);
    background-size: 100% 140px;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    z-index: 1;
}

.team-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0) 60%);
    z-index: -1;
}

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

.team-name {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-captain {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.edit-button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    width: auto !important;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.edit-button::before {
    content: '✎';
    font-size: 0.7rem;
}

.edit-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .edit-button {
        padding: 2px 6px;
        font-size: 0.65rem;
    }

    .edit-button::before {
        font-size: 0.65rem;
    }
}

.team-players {
    display: grid;
    gap: 8px;
}

.team-player {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Add this new CSS rule for white team hover state */
.team-col[style*="--team-color: #ffffff"] .team-player:hover {
    background: #4CAF50; /* Use a green background for white teams */
    color: white;
    transform: translateX(4px);
}

/* Update existing hover state for other teams */
.team-player:hover {
    background: var(--team-color);
    color: white;
    transform: translateX(4px);
}

.team-player-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-player-name::before {
    content: '👤';
    opacity: 0.7;
}

.remove-player-btn {
    background: white;
    border: none;
    color: #64748b;  /* Neutral slate color */
    opacity: 0;
    cursor: pointer;
    padding: 4px;
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-player:hover .remove-player-btn {
    opacity: 1;
    background: white;
}

.remove-player-btn:hover {
    background: #f1f5f9 !important;  /* Light slate background */
    color: #475569;  /* Darker slate for contrast */
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Remove the red team specific styles since we now have a universal solution */
.team-col[style*="--team-color: #e53e3e"] .team-player:hover .remove-player-btn,
.team-col[style*="--team-color: #e53e3e"] .team-player:hover .remove-player-btn:hover {
    /* Remove these rules */
}

.player-count {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-count::before {
    content: '👥';
}

.player-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    justify-content: center;
}

input,
textarea,
button {
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.color-input-group {
    margin: 8px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 2px;
    margin: 0;
    flex-wrap: nowrap;
    max-width: 280px;
}

.color-option {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

.color-option[data-color="#ffffff"] {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-option.selected {
    border: 2px solid #000;
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    text-shadow: 0 0 2px white;
    font-size: 14px;
    pointer-events: none;
}

.color-option[data-color="#ffffff"].selected::after {
    text-shadow: none;
}

.custom-color {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    margin-left: 2px;
    flex-shrink: 0;
    width: fit-content;
}

.custom-color:hover {
    background: #eeeeee;
}

.custom-color span {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.color-picker {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.button-group button {
    flex: 1;
}

.primary-button {
    background-color: #4CAF50;
    color: white;
    font-weight: 500;
}

.danger-button {
    background-color: #f44336;
    color: white;
    font-weight: 500;
}

.secondary-button {
    background-color: #666;
    color: white;
    font-weight: 500;
}

.draft-controls {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.draft-order {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.draft-order-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.draft-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: move;
    transition: all 0.2s ease;
}

.draft-order-item:hover {
    background: #f0f1f2;
    transform: translateX(4px);
}

.draft-order-handle {
    cursor: move;
    color: #666;
    user-select: none;
}

.draft-order-buttons {
    display: none;
    gap: 4px;
}

.order-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    padding: 0;
}

.order-button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.order-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (hover: none) and (pointer: coarse) {
    .draft-order-item {
        cursor: default;
    }

    .draft-order-handle {
        display: none;
    }

    .draft-order-buttons {
        display: flex;
    }

    .draft-order-item[draggable] {
        -webkit-user-drag: none;
        user-drag: none;
    }
}

.draft-summary {
    display: none;
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.summary-table th,
.summary-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.summary-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.summary-table tr:last-child td {
    border-bottom: none;
}

.captain-tag {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 4px;
}

.draft-container {
    margin-top: 20px;
}

/* Team table styling */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-col {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Prevent overflow on small screens */
}

.team-header {
    padding: 10px;
    background: var(--team-color);
    border-radius: 8px 8px 0 0;
}

.team-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.team-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.team-captain {
    font-size: 0.8rem;
    opacity: 0.9;
}

.team-players {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-player {
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 15px;
        max-width: 330px;
    }

    .team-col {
        margin-bottom: 0;
    }

    .team-header {
        padding: 12px 15px;
    }

    .team-name {
        font-size: 1.1rem;
    }

    .team-player {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        max-width: 290px;
    }

    .team-col {
        width: 100%;
    }

    .team-header {
        padding: 10px 12px;
    }

    .team-name {
        font-size: 1rem;
    }

    .team-player {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .player-count {
        font-size: 0.8rem;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
}

/* Add smooth scrolling for mobile */
@media (hover: none) and (pointer: coarse) {
    .teams-grid {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

.team-header {
    background: var(--team-color);
    border-radius: 8px 8px 0 0;
}

.team-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.team-players {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.connected-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.connected-table th,
.connected-table td {
    padding: 15px;
    border: 1px solid #eee;
    text-align: left;
}

.connected-table th {
    background: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #eee;
}

.connected-table tr:hover {
    background: #f8f9fa;
}

.team-header-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.download-button {
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 1rem;
    margin: 0;
    width: auto;
    min-width: 160px;
    justify-content: center;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media print {
    .download-button {
        display: none;
    }
}

.available-players-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow: hidden;
}

.available-players-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.available-players-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.available-players-count {
    font-size: 0.8rem;
    color: #666;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.player-list::-webkit-scrollbar {
    width: 8px;
}

.player-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.player-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.player-list::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.available-player {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 20px;
    cursor: grab;
    transition: all 0.15s ease;
    user-select: none;
}

.available-player:active {
    cursor: grabbing;
}

.available-player:hover {
    background: #4CAF50;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 16px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

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

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    color: #666;
    width: auto;
}

.modal-form-group {
    margin-bottom: 20px;
}

.modal-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9rem;
}

.modal-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.modal .color-input-group {
    margin: 20px 0;
}

.modal .color-options {
    margin-bottom: 12px;
}

.modal .custom-color {
    margin-top: 8px;
}

.team-player-list {
    max-height: 200px;
    overflow-y: auto;
    margin: 20px 0;
    border: 1px solid #eee;
    border-radius: 12px;
}

.team-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    gap: 8px;
}

.team-player-item:last-child {
    border-bottom: none;
}

.modal .button-group {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.modal .button-group button {
    flex: 1;
    padding: 12px;
}

.current-turn-display {
    text-align: center;
    margin: 16px 0;
    border-width: px;
    background-color: #1a202c;
    display: flex;
    gap: 12px;
}

.turn-team-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: #333;
}

.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
}

.footer .heart {
    color: #e53e3e;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

.footer a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #388e3c;
    text-decoration: underline;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.footer span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-buttons {
    text-align: center;
    margin: 20px 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.team-player-name.captain {
    font-weight: 700;
}

.remove-player-button {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    opacity: 0.7;
}

.team-player-item:hover .remove-player-button {
    opacity: 1;
    background: rgba(220, 53, 69, 0.1);
}

.remove-player-button:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: scale(1.1);
}

.team-player-item span {
    flex: 1;
}

.quick-start {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 0 auto 20px;
    max-width: 400px;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.step-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.step-number {
    background: #4CAF50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.step-container h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    line-height: 24px;
}

.draft-instruction {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.step-content {
    font-size: 0.95rem;
    color: #444;
    flex: 1;
}

.draft-types {
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.draft-type {
    font-size: 0.85rem;
    color: #666;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.team-setup h3 {
    text-align: center;
    margin-bottom: 16px;
    color: #333;
    font-size: 1.2rem;
}

.team-setup h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #4CAF50;
    margin: 8px auto 0;
    border-radius: 2px;
}

.current-pick {
    background: white;
    padding: 24px;
    border-radius: 16px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.current-pick::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #4CAF50, #45a049);
}

.pick-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 600;
}

.pick-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8f9fa;
    padding: 12px 24px;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    justify-content: center;
}

.turn-number {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 100px;
    color: white;
    min-width: 100px;
    text-align: center;
    background: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.team-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
}

.turn-team-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-header .onboarding-trigger-link {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    background-color: #667eea;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.app-header .onboarding-trigger-link:hover {
    background-color: #764ba2;
    color: white;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.app-header .onboarding-trigger-link:active {
    background-color: #5568d3;
    transform: translateY(0);
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}

.app-title .icon {
    font-size: 1.8rem;
    animation: titleBounce 2s infinite;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.app-title .icon:hover {
    animation: titleFloat 2s infinite;
    transform: scale(1.1);
}

/* Remove the old soccer ball styles */
.soccer-ball {
    display: none;
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}

.app-title .text {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.app-title .text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #4CAF50, transparent);
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}

.app-title .text {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.app-title .text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #4CAF50, transparent);
}

@media (max-width: 768px) {
    .app-title {
        font-size: 1.6rem;
    }

    .app-title .icon {
        font-size: 1.4rem;
    }
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    animation: fadeIn 0.2s ease-out;
}

.custom-alert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1100;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease-out forwards;
}

@media (max-width: 480px) {
    .custom-alert {
        width: calc(100% - 32px);
        padding: 20px;
        max-width: 320px;
        margin: 0;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
    }

    .custom-alert-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .custom-alert-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .custom-alert-content {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .custom-alert-buttons {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .custom-alert-buttons button {
        width: 100%;
        min-width: unset;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.custom-alert.show {
    transform: translate(-50%, -50%) scale(1);
}

.custom-alert-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    color: #f44336;
}

.custom-alert-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.custom-alert-content {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.custom-alert-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-alert-buttons button {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    min-width: 120px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.custom-alert-confirm {
    background: #f44336;
    color: white;
}

.custom-alert-confirm:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

.custom-alert-cancel {
    background: #e2e8f0;
    color: #1a202c;
}

.custom-alert-cancel:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right .danger-button {
    background: #f44336;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    transition: all 0.2s ease;
    min-width: 120px;
    height: 36px;
    white-space: nowrap;
}

.header-right .danger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
    background: #d32f2f;
}

.header-right .danger-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

.action-buttons .danger-button {
    background: #f44336;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 1rem;
    margin: 0;
    width: auto;
    min-width: 160px;
    justify-content: center;
}

.action-buttons .danger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.instructions-panel {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 0 auto 24px;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.instructions-title {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.instructions-title:hover {
    color: #4CAF50;
}

.instructions-title .toggle-icon {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
    background: #f0f0f0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.instructions-title:hover .toggle-icon {
    opacity: 1;
    background: #e8e8e8;
}

.instructions-title.collapsed .toggle-icon {
    transform: rotate(-180deg);
}

.instructions-list {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    overflow: hidden;
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.instructions-list.collapsed {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
}

.step-content {
    font-size: 0.95rem;
    color: #444;
    flex: 1;
}

.draft-types {
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.draft-type {
    font-size: 0.85rem;
    color: #666;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .app-header {
        margin-bottom: 24px;
    }

    .app-title {
        font-size: 1.6rem;
        gap: 8px;
    }

    .app-title .icon {
        font-size: 1.4rem;
    }

    .controls {
        padding: 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .team-setup {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
        width: 100%;
    }

    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 10px;
        margin: 10px 0;
        width: auto;
    }

    .team-col {
        min-width: 290px;
        width: 100%;
        margin: 0;
    }

    .available-players-section {
        margin: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .player-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .available-player {
        width: auto;
        min-width: unset;
    }

    .instructions-panel {
        margin: 0 0 20px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .current-pick-indicator {
        width: 90%;
        min-width: unset;
        padding: 10px;
        box-sizing: border-box;
    }

    .modal-content {
        width: 90%;
        margin: 10px;
        padding: 15px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .app-header {
        margin-bottom: 20px;
    }

    .app-title {
        font-size: 1.3rem;
        gap: 6px;
    }

    .app-title .icon {
        font-size: 1.2rem;
    }

    .controls {
        padding: 12px;
    }

    .teams-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 8px;
    }

    .player-list {
        grid-template-columns: 1fr;
        padding: 8px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .action-buttons button {
        width: 100%;
        min-width: unset;
    }

    .download-button,
    .danger-button {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 896px) and (orientation: landscape) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .available-players-section {
        max-height: 40vh;
    }

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

/* Update draft order remove button styling */
.remove-team-button {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 1rem;
    opacity: 0;
    margin-left: 8px;
}

.draft-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: move;
    transition: all 0.2s ease;
}

.draft-order-item:hover {
    background: #f0f1f2;
    transform: translateX(4px);
}

.draft-order-item:hover .remove-team-button {
    opacity: 1;
    background: rgba(220, 53, 69, 0.1);
}

.remove-team-button:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    transform: scale(1.1);
    opacity: 1;
}

@media (max-width: 768px) {
    .remove-team-button {
        opacity: 1;
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}

/* Update current pick indicator styling */
@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.02);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

.current-pick-indicator {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--team-color, #4CAF50);
    padding: 12px 24px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    min-width: 300px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    text-align: center;
    padding-right: 40px;
    /* Make room for the close button */
    animation: pulse 2s infinite ease-in-out, glow 2s infinite ease-in-out;
}

.pick-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.pick-number {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pick-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-details .team-name {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stop-draft-btn {
    position: absolute;
    right: 8px;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.15);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    backdrop-filter: blur(4px);
    color: inherit;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stop-draft-btn:hover {
    background: rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.team-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: colorPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.team-color::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s linear infinite;
    transform: rotate(45deg);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, 0) scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: translate(-50%, 0) scale(1.02);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

    100% {
        transform: translate(-50%, 0) scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

@keyframes colorPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

.pick-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px 0;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pick-number {
    font-weight: 600;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pick-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.team-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.team-details .team-name {
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.action-buttons {
    text-align: center;
    margin: 20px 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.action-buttons button {
    min-width: 180px;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.action-buttons .danger-button {
    background: #f44336;
    color: white;
}

.action-buttons .download-button {
    background: #4CAF50;
    color: white;
}

.action-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Share button styling for draft interface */
.share-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
    min-width: 120px;
    height: 36px;
    white-space: nowrap;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.share-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

@media (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .action-buttons button {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        width: 100%;
        max-width: calc(100% - 32px);
        margin: 16px auto;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        top: 0;
        transform: none;
    }

    .modal {
        align-items: flex-start;
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
        margin: -20px -20px 20px -20px;
        padding: 20px;
    }
}

/* Add these new styles */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    pointer-events: none;
}

.celebration-message {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 50px;
    border-radius: 20px;
    text-align: center;
    animation: celebrateScale 0.5s ease forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.celebration-message h2 {
    font-size: 2rem;
    color: #2d3748;
    margin: 0 0 10px;
}

.celebration-message p {
    font-size: 1.2rem;
    color: #4a5568;
    margin: 0;
}

@keyframes celebrateScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Remove these style blocks */
.position-tag,
.position-tag.forward,
.position-tag.midfielder,
.position-tag.defender,
.position-tag.goalkeeper,
.position-selector,
.position-selector select,
.position-selector select:focus {
    display: none;
}

/* Soccer Ball Animation */
@keyframes titleBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(-8px) rotate(180deg);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes titleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-6px) rotate(5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-4px) rotate(-5deg);
    }
}

/* Goal Animation */
@keyframes goal {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(10deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.goal-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    display: none;
    text-align: center;
    pointer-events: none;
}

.goal-text {
    font-size: 5rem;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    animation: goal 1s ease-out forwards;
    display: inline-block;
}

.goal-subtext {
    font-size: 1.5rem;
    color: #666;
    margin-top: 20px;
    animation: fadeInOut 3s ease-out forwards;
}

/* Field Lines Animation */
@keyframes fieldLines {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

.field-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    background: radial-gradient(circle at center, rgba(76, 175, 80, 0.3) 0%, transparent 70%),
    linear-gradient(0deg, transparent 24%,
            rgba(76, 175, 80, 0.35) 25%,
            rgba(76, 175, 80, 0.35) 26%,
            transparent 27%, transparent 74%,
            rgba(76, 175, 80, 0.35) 75%,
            rgba(76, 175, 80, 0.35) 76%,
            transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%,
            rgba(76, 175, 80, 0.35) 25%,
            rgba(76, 175, 80, 0.35) 26%,
            transparent 27%, transparent 74%,
            rgba(76, 175, 80, 0.35) 75%,
            rgba(76, 175, 80, 0.35) 76%,
            transparent 77%, transparent);
    background-size: 100px 100px;
    animation: fieldLines 10s linear infinite;
}

/* Add this to your existing celebration-overlay class */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    pointer-events: none;
    background: radial-gradient(circle at center,
    rgba(76, 175, 80, 0.1) 0%,
    rgba(76, 175, 80, 0.05) 50%,
    transparent 70%);
}

/* Update your existing celebration-message class */
.celebration-message {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 50px;
    border-radius: 20px;
    text-align: center;
    animation: celebrateScale 0.5s ease forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.celebration-message::before {
    content: '⚽';
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 3rem;
    opacity: 0.1;
    transform: rotate(-45deg);
}

.celebration-message::after {
    content: '⚽';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 3rem;
    opacity: 0.1;
    transform: rotate(45deg);
}

/* Update the running text animation styles */
@keyframes slideInOut {
    0% {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }

    15% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    85% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
}

.pick-announcement {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    /* Center horizontally */
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center text horizontally */
    opacity: 0;
    /* Start hidden for animation */
    animation: slideInOut 2.5s ease-in-out forwards;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 280px;
    width: 90%;
}

.pick-announcement .team-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.pick-announcement .highlight {
    color: #4CAF50;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

@media (max-width: 768px) {
    .pick-announcement {
        bottom: 15px;
        font-size: 0.85rem;
        padding: 10px 20px;
        max-width: 250px;
        text-align: center;
    }
}

.available-players-count {
    font-size: 0.8rem;
    color: #666;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.available-players-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.available-players-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.header-left {
    display: flex;
    align-items: center;
}

.draft-order-instruction {
    font-size: 0.9rem;
    color: #666;
    margin: 15px 0 10px;
}

@media (max-width: 768px) {
    .draft-order-instruction {
        font-size: 1.1rem;
    }

    .draft-order-instruction::before {
        content: 'Use arrow up or down to order the draft';
    }

    .draft-order-instruction:not(::before) {
        display: none;
    }
}

.draft-order-heading {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

@media (max-width: 768px) {
    .draft-order-heading {
        font-size: 1.1rem;
    }

    .draft-order-heading::before {
        content: 'Use arrow up or down to rearrange the order';
    }

    .draft-order-heading:not(::before) {
        display: none;
    }
}

/* Modern Switch Styling */
.switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 8px 0;
    justify-content: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.draft-type-label {
    font-size: 0.95rem;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.draft-type-label .current-type {
    font-weight: 600;
    color: #333;
}

.draft-type-label .description {
    font-size: 0.8rem;
    color: #666;
}

/* Legal pages styles */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.legal-content h1 {
    color: var(--text-primary);
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}

.legal-content h2 {
    color: var(--text-primary);
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-content section {
    margin: 30px 0;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin: 8px 0;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.legal-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.back-button:hover {
    text-decoration: underline;
}

.legal-footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 20px;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.3rem;
    }
}

.footer-links {
    margin-top: 8px;
    font-size: 0.9rem;
}

.footer-divider {
    margin: 0 8px;
    color: var(--text-secondary);
}

/* Add these new CSS rules for red team hover state */
.team-col[style*="--team-color: #e53e3e"] .team-player:hover .remove-player-btn {
    opacity: 1;
    background: white;
    color: #e53e3e;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-col[style*="--team-color: #e53e3e"] .team-player:hover .remove-player-btn:hover {
    background: #ffebee !important;  /* Light red background on hover */
    color: #c62828;  /* Darker red for better contrast */
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Add these new styles for the enhanced player input */
.players-input-container {
    position: relative;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    min-height: 100px;
    margin: 5px 0;
}

.players-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.player-tag {
    background: #f0f9ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: tagAppear 0.2s ease-out;
    cursor: grab;
    transition: all 0.2s ease;
}

.player-tag:active {
    cursor: grabbing;
}

.player-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(147, 197, 253, 0.4);
}

.player-tag .remove-tag {
    color: #1e40af;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: all 0.2s;
}

.player-tag .remove-tag:hover {
    opacity: 1;
}

.players-input {
    border: none;
    outline: none;
    padding: 4px;
    font-size: 0.95rem;
    width: 100%;
    font-family: inherit;
}

.players-input:focus {
    border: none;
    outline: none;
}

.players-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

/* Drag and drop styles for captain inputs */
.captain-input {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.captain-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}


@keyframes tagAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Add a placeholder style */
.players-input-container.empty::before {
    content: 'Enter player names (press Enter or comma to add)';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0.8;
}

/* Add these new styles for the teams input interface */
.teams-input-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin: 10px 0;
    transition: background-color 0.2s ease, border 0.2s ease;
    min-height: 100px;
}

.teams-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.team-input-row.removing {
    animation: slideOut 0.3s ease-out forwards;
}

.team-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-input-group label {
    font-size: 0.8rem;
    color: #64748b;
}

.team-input-group input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.team-input-group input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.1);
    outline: none;
}

.team-color-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.team-color-input .color-options {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.team-color-input .color-option {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.team-color-input .color-option[data-color="#ffffff"] {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

.team-color-input .color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-color-input .color-option.selected {
    border: 2px solid #000;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.team-color-input .color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 16px;
}

.team-color-input .color-option[data-color="#ffffff"].selected::after {
    color: #000;
    text-shadow: none;
}

.team-color-picker {
    width: 100%;
    height: 36px;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.2s;
}

.team-color-picker:hover {
    border-color: #cbd5e0;
    background: #f1f5f9;
}

.team-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.team-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.team-color-picker::-moz-color-swatch {
    border: none;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .team-color-input {
        min-width: 100%;
    }
    
    .team-color-input .color-options {
        justify-content: center;
    }
    
    .team-color-input .color-option {
        width: 32px;
        height: 32px;
    }
}

.add-team-button {
    width: 100%;
    padding: 12px;
    background: #f8f9fa;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    transition: all 0.2s;
}

.add-team-button:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
    color: #475569;
}

.plus-icon {
    font-size: 1.2rem;
    font-weight: 500;
}

.remove-team-input {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fee2e2;
    border: none;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.2s;
    transform: scale(0.8);
}

.team-input-row:hover .remove-team-input {
    opacity: 1;
    transform: scale(1);
}

.remove-team-input:hover {
    background: #fecaca;
    transform: scale(1.1);
}

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

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

@media (max-width: 640px) {
    .team-input-row {
        grid-template-columns: 1fr;
    }
}

/* Onboarding Styles */
.onboarding-trigger-link {
    /* Styles are now in .app-header .onboarding-trigger-link */
}

@media (max-width: 768px) {
    .app-header .onboarding-trigger-link {
        position: static;
        margin-top: 8px;
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}

.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
}

.onboarding-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    pointer-events: all;
}

.onboarding-tooltip {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    min-width: 240px;
    max-width: 300px;
    z-index: 10001;
    pointer-events: all;
    animation: onboardingFadeIn 0.3s ease-out;
}

@keyframes onboardingFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
}

.onboarding-step-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #667eea;
}

.onboarding-step-indicator .step-number {
    font-size: 1rem;
}

.onboarding-step-indicator .step-total {
    color: #999;
    font-size: 0.8rem;
}

.onboarding-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.onboarding-close:hover {
    background: #f5f5f5;
    color: #333;
}

.onboarding-content {
    padding: 12px 14px;
}

.onboarding-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
}

.onboarding-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.onboarding-arrow {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 10002;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.onboarding-arrow svg {
    width: 100%;
    height: 100%;
    stroke: #333;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.onboarding-arrow.top {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    margin-bottom: 0px;
}

.onboarding-arrow.bottom {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0px;
}

.onboarding-arrow.left {
    right: 100%;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    margin-right: 0px;
}

.onboarding-arrow.right {
    left: 100%;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    margin-left: 0px;
}

.onboarding-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-top: 1px solid #eee;
    gap: 8px;
}

.onboarding-skip {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.onboarding-skip:hover {
    background: #f5f5f5;
    color: #666;
}

.onboarding-nav {
    display: flex;
    gap: 8px;
}

.onboarding-prev,
.onboarding-next,
.onboarding-finish {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.3);
}

.onboarding-prev:hover,
.onboarding-next:hover,
.onboarding-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.onboarding-prev {
    background: #f5f5f5;
    color: #666;
    box-shadow: none;
    padding: 6px 12px;
}

.onboarding-prev:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.onboarding-highlight {
    position: relative;
    z-index: 9999 !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5), 0 0 0 8px rgba(102, 126, 234, 0.3), 0 0 20px rgba(102, 126, 234, 0.5) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .onboarding-tooltip {
        min-width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        margin: 16px;
    }
    
    .onboarding-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .onboarding-skip {
        order: 2;
    }
    
    .onboarding-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .onboarding-prev,
    .onboarding-next,
    .onboarding-finish {
        flex: 1;
        padding: 8px 12px;
    }
}

/* Options Menu Styles */
.draft-options-container {
    position: relative;
    display: inline-block;
}

.options-menu-button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
}

.options-menu-button:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.options-menu-button:active {
    transform: scale(0.95);
}

.options-dots {
    font-size: 1.4rem;
    color: #666;
    line-height: 1;
    font-weight: bold;
    transform: rotate(90deg);
    display: inline-block;
}

.options-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    animation: menuSlideDown 0.2s ease-out;
}

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

.options-menu-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.2s ease;
    position: relative;
}

.options-menu-item:hover:not(.disabled) {
    background: #f8f9fa;
}

.options-menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #999;
}

.options-menu-item:active:not(.disabled) {
    background: #e9ecef;
}

.options-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.options-menu-item span:not(.options-icon):not(.options-shortcut) {
    flex: 1;
}

.options-shortcut {
    font-size: 0.75rem;
    color: #999;
    font-family: monospace;
    margin-left: auto;
}

.options-menu-divider {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

/* History Modal Styles */
.history-modal-content {
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.history-list {
    overflow-y: auto;
    max-height: calc(80vh - 120px);
    padding: 8px 0;
}

.history-item {
    padding: 12px 16px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.history-item.history-redo {
    border-left-color: #ffc107;
    opacity: 0.7;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-pick-number {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.history-badge {
    background: #ffc107;
    color: #333;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.history-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #666;
}

.history-team {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .draft-options-container {
        padding: 0 5px;
    }
    
    .options-menu {
        right: 5px;
        min-width: 180px;
    }
    
    .options-menu-item {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .options-shortcut {
        display: none;
    }
    
    .history-modal-content {
        max-width: 90%;
    }
}

/* Avatar container hover effect for remove button */
.avatar-container:hover .remove-image-btn {
  display: flex !important;
}

/* Toast notification animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

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