/**
 * Pokemon Collection CSS
 * Styles for collection functionality and interface
 */

/* Collection Button Styles */
.poke-collection-button-wrapper {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.poke-collection-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    min-width: 160px;
    text-align: center;
}

.poke-collection-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.poke-collection-btn.in-collection {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.poke-collection-btn.in-collection:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.poke-collection-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.poke-collection-btn .loading-spinner {
    display: none;
    font-size: 12px;
}

.poke-collection-btn .button-text {
    display: inline-block;
}

/* Quantity Controls */
.poke-collection-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.poke-quantity-btn {
    background: #007cba;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.poke-quantity-btn:hover {
    background: #005a87;
}

.poke-quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.poke-quantity-display {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Collection Overview Styles */
.poke-collection-overview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.poke-collection-header {
    color: black;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.poke-collection-header h1 {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 300;
}

.poke-collection-stats-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
}

.refresh-prices-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.refresh-prices-btn:hover {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.refresh-prices-btn.loading {
    animation: spin 1s linear infinite;
}

.refresh-prices-btn.loading i {
    color: #28a745;
}

/* Charts Section */
.poke-collection-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin: 0 0 15px 0;
    color: #333;
    text-align: center;
    font-size: 18px;
}

.chart-container canvas {
    max-height: 200px;
}

/* Search and Filters */
.poke-collection-search-filters {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.poke-collection-search-filters h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Search section */
.search-section {
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.collection-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.collection-search-input:focus {
    outline: none;
    border-color: #007cba;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.collection-search-input::placeholder {
    color: #999;
    font-style: italic;
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: none;
}

.clear-search-btn:hover {
    background: #f0f0f0;
    color: #666;
}

.clear-search-btn.show {
    display: block;
}

.search-results-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.show-all-cards-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
}

.show-all-cards-btn:hover {
    background: #005a87;
}

/* Filters section */
.filters-section {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.poke-collection-filters h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.poke-filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}

.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.poke-filter-btn, .poke-reset-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.poke-filter-btn {
    background: #007cba;
    color: white;
}

.poke-filter-btn:hover {
    background: #005a87;
}

.poke-reset-btn {
    background: #6c757d;
    color: white;
}

.poke-reset-btn:hover {
    background: #545b62;
}

/* Collection Grid */
.poke-collection-grid-container {
    position: relative;
}

.poke-collection-loading {
    text-align: center;
    padding: 40px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
}

.poke-collection-loading .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.poke-collection-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.poke-collection-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}

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

.card-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poke-collection-card:hover .card-image img {
    transform: scale(1.05);
}

.card-info {
    padding: 12px;
}

.card-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.card-set, .card-type, .card-rarity {
    margin: 0 0 4px 0;
    font-size: 12px;
    color: #666;
}

.card-price {
    margin: 10px 0;
}

.card-price .price {
    font-size: 16px;
    font-weight: 600;
    color: #007cba;
}

.card-quantity {
    margin: 12px 0;
}

.card-quantity label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.remove-from-collection-btn, .view-card-btn {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.remove-from-collection-btn {
    background: #dc3545;
    color: white;
}

.remove-from-collection-btn:hover {
    background: #c82333;
}

.view-card-btn {
    background: #6c757d;
    color: white;
}

.view-card-btn:hover {
    background: #545b62;
}

/* Empty State */
.poke-collection-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
}

.poke-collection-empty p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.browse-cards-btn {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.browse-cards-btn:hover {
    background: #005a87;
    color: white;
}

/* Pagination */
.poke-collection-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
}

.pagination-link, .pagination-current {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.pagination-current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Sets Page Styles */
.poke-collection-sets {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.poke-sets-header {
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.poke-sets-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 300;
}

.poke-sets-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Sets Sections */
.sets-section {
    margin-bottom: 40px;
}

.sets-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
}

.sets-section-description {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 0.9rem;
}

.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.set-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.set-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.set-info {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.set-logo {
    width: 90px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.set-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.set-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.set-symbol {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.set-symbol img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 25px;
    max-height: 25px;
}

.set-completion {
    display: flex;
    align-items: center;
    gap: 10px;
}

.completion-bar {
    width: 60px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #28a745 100%);
    transition: width 0.3s ease;
}

.completion-text {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.set-stats {
    margin-bottom: 20px;
}

.set-stats .stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.set-stats .stat-label {
    color: #666;
    font-size: 14px;
}

.set-stats .stat-value {
    font-weight: 600;
    color: #333;
}

.set-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.view-missing-btn, .add-missing-to-cart-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.view-missing-btn {
    background: #17a2b8;
    color: white;
}

.view-missing-btn:hover {
    background: #138496;
}

.add-missing-to-cart-btn {
    background: #28a745;
    color: white;
}

.add-missing-to-cart-btn:hover {
    background: #218838;
}

.set-complete {
    display: block;
    text-align: center;
    padding: 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-weight: 600;
}

/* Modal Styles */
.poke-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.add-all-missing-btn, .modal-close-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.add-all-missing-btn {
    background: #28a745;
    color: white;
}

.add-all-missing-btn:hover {
    background: #218838;
}

.modal-close-btn {
    background: #6c757d;
    color: white;
}

.modal-close-btn:hover {
    background: #545b62;
}

/* Missing Cards Grid */
.missing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.missing-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.missing-card .card-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.missing-card h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.missing-card .card-set {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #666;
}

.missing-card .card-price {
    color: #28a745;
    font-weight: 600;
    margin: 5px 0;
    font-size: 12px;
}

.missing-card .card-stock {
    color: #dc3545;
    font-size: 12px;
    margin: 5px 0;
}

.missing-card .not-available {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
}

.missing-card .card-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.missing-card .add-to-cart-btn, .missing-card .view-card-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.missing-card .add-to-cart-btn {
    background: #007cba;
    color: white;
}

.missing-card .add-to-cart-btn:hover {
    background: #005a87;
}

.missing-card .view-card-btn {
    background: #6c757d;
    color: white;
}

.missing-card .view-card-btn:hover {
    background: #545b62;
}

/* Statistics Section */
.poke-sets-statistics {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.poke-sets-statistics h3 {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
}

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

.stat-card {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #007cba;
    margin-bottom: 5px;
}

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

/* Chart Section */
.poke-sets-chart {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.poke-sets-chart h3 {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
}

/* Notifications */
.poke-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.poke-notification.success {
    background: #28a745;
}

.poke-notification.error {
    background: #dc3545;
}

.poke-notification.info {
    background: #17a2b8;
}

/* Collection Checkbox in Cart */
.poke-collection-cart-checkbox {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.poke-collection-cart-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.poke-collection-cart-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Login Required Styling */
.poke-collection-login-required {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.poke-collection-login-required p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.poke-login-btn {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.poke-login-btn:hover {
    background: #005a87;
    color: white;
}

/* Disabled Collection Pages Styling */
.poke-collection-disabled {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.poke-collection-disabled p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .poke-collection-overview,
    .poke-collection-sets {
        padding: 15px;
    }
    
    .poke-collection-header,
    .poke-sets-header {
        padding: 20px;
    }
    
    .poke-collection-header h1,
    .poke-sets-header h1 {
        font-size: 24px;
    }
    
    .poke-collection-stats-summary {
        gap: 20px;
    }
    
    .poke-filters-form {
        grid-template-columns: 1fr;
    }
    
    .poke-collection-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .poke-collection-card {
        max-width: 180px;
    }
    
    .card-image img {
        height: 140px;
    }
    
    .sets-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .set-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .set-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .set-logo {
        width: 35px;
        height: 35px;
    }
    
    .set-logo img {
        max-width: 30px;
        max-height: 30px;
    }
    
    .set-symbol {
        width: 25px;
        height: 25px;
    }
    
    .set-symbol img {
        max-width: 20px;
        max-height: 20px;
    }
    
    .set-actions {
        flex-direction: column;
    }
    
    .poke-modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .missing-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .poke-collection-search-filters {
        padding: 20px;
    }
    
    .collection-search-input {
        font-size: 14px;
        padding: 10px 40px 10px 12px;
    }
    
    .poke-collection-button-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .poke-collection-quantity-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .poke-collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .poke-collection-card {
        max-width: 150px;
    }
    
    .card-image img {
        height: 120px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .poke-collection-search-filters {
        padding: 15px;
    }
    
    .collection-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 40px 12px 12px;
    }
    
    .poke-collection-stats-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .poke-modal {
        padding: 5px;
    }
    
    .modal-content {
        max-height: 98vh;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        flex-direction: column;
        padding: 15px;
    }
    
    .add-all-missing-btn,
    .modal-close-btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Chart fallback table styles */
.chart-fallback-table {
    margin: 20px 0;
}

.sets-completion-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sets-completion-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.sets-completion-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.sets-completion-table tr:hover {
    background-color: #f8f9fa;
}

.sets-completion-table tr.complete {
    background-color: #d4edda;
}

.sets-completion-table tr.complete:hover {
    background-color: #c3e6cb;
}

.sets-completion-table tr.partial {
    background-color: #fff3cd;
}

.sets-completion-table tr.partial:hover {
    background-color: #ffeaa7;
}

.sets-completion-table tr.low {
    background-color: #f8d7da;
}

.sets-completion-table tr.low:hover {
    background-color: #f5c6cb;
}

.sets-completion-table tr.complete td:first-child::before {
    content: "✅ ";
    color: #28a745;
}

.sets-completion-table tr.partial td:first-child::before {
    content: "⚠️ ";
    color: #ffc107;
}

.sets-completion-table tr.low td:first-child::before {
    content: "❌ ";
    color: #dc3545;
} 

/* Loading Animation Styles */
.modal-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-spinner p {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Button loading state */
.add-missing-to-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.add-missing-to-cart-btn.loading {
    position: relative;
}

.add-missing-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Detailed Cart Notification Styles */
.detailed-cart-notification {
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}

.detailed-cart-notification .notification-header {
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e5e9;
}

.detailed-cart-notification .added-cards-section,
.detailed-cart-notification .unavailable-cards-section {
    margin-bottom: 15px;
}

.detailed-cart-notification h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.detailed-cart-notification .added-cards-list,
.detailed-cart-notification .unavailable-cards-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
}

.detailed-cart-notification .added-cards-list li,
.detailed-cart-notification .unavailable-cards-list li {
    margin-bottom: 4px;
    color: #555;
}

.detailed-cart-notification .disclaimer {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #666;
    font-style: italic;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007cba;
}

.detailed-cart-notification .notification-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.detailed-cart-notification .notification-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Mobile responsive for detailed notifications */
@media (max-width: 768px) {
    .detailed-cart-notification {
        width: 95%;
        max-height: 70vh;
        padding: 15px;
    }
    
    .detailed-cart-notification .notification-header {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .detailed-cart-notification h4 {
        font-size: 13px;
    }
    
    .detailed-cart-notification .added-cards-list,
    .detailed-cart-notification .unavailable-cards-list {
        font-size: 12px;
    }
}