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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

header h1 {
    font-size: 28px;
    color: #667eea;
    font-weight: 700;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    animation: pulse 2s infinite;
}

.status-dot.active {
    background: #4ade80;
}

.status-dot.error {
    background: #ef4444;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#last-update {
    color: #999;
    font-size: 12px;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.filter-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

/* Pokemon Button List */
.pokemon-button-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

.pokemon-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pokemon-filter-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pokemon-filter-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.pokemon-filter-btn.active:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.pokemon-filter-btn .btn-image {
    flex-shrink: 0;
    vertical-align: middle;
}

.pokemon-filter-btn .btn-text {
    white-space: nowrap;
}

.filter-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.location-input-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.location-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.location-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: monospace;
}

.location-input:focus {
    outline: none;
    border-color: #667eea;
}

.current-location-info {
    font-size: 12px;
    margin-top: 8px;
    padding: 5px 0;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

.pokemon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pokemon-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    user-select: none;      /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  
    pointer-events: auto;   /* Allow clicks */
}

.pokemon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.pokemon-card.copied {
    background: #a2a2a2;
}

.pokemon-minimal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.minimal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.minimal-row:last-child {
    border-bottom: none;
}

.minimal-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.minimal-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 2px;
}

.location-copy {
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: monospace;
    background: #f5f5f5;
}

.location-copy:hover {
    background: #667eea;
    color: white;
}

.location-copy.copied {
    background: #4ade80;
    color: white;
}

.expire-time {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.expire-time.warning {
    background: #fef3c7;
    color: #92400e;
}

.expire-time.danger {
    background: #fee2e2;
    color: #991b1b;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: white;
    font-size: 18px;
}

.error {
    grid-column: 1 / -1;
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: #ef4444;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.empty {
    grid-column: 1 / -1;
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    color: #666;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pokemon-list {
        grid-template-columns: 1fr;
    }
}

