/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.logo h1 {
    color: #4a5568;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.logo p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.error-message {
    color: #e53e3e;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(229, 62, 62, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(229, 62, 62, 0.3);
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f7fafc;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 0;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #667eea;
}

.nav-link.active {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    border-left-color: #667eea;
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    padding: 30px;
    background: #f7fafc;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    color: #2d3748;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: #718096;
    font-size: 1.1rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-header i {
    color: #667eea;
    font-size: 1.5rem;
}

.card-body p {
    color: #718096;
    line-height: 1.6;
}

/* Placeholder Sections */
.placeholder-section {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.placeholder-section i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.placeholder-section h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.placeholder-section p {
    color: #718096;
    font-size: 1.1rem;
}

/* Trading Cards Specific Styles */
.overview-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.overview-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.value-display {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    color: #718096;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

.tab-btn i {
    margin-right: 8px;
}

.category-section {
    display: none;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.section-header h2 {
    color: #2d3748;
    font-size: 1.75rem;
    font-weight: 600;
}

.set-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.set-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.set-selector label {
    color: #4a5568;
    font-weight: 500;
}

.set-selector select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    font-size: 14px;
}

.missing-cards-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.set-progress {
    margin-bottom: 25px;
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #4a5568;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.set-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.set-stat {
    text-align: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.set-stat h4 {
    color: #718096;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.set-stat span {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
}

.inventory-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
}

.inventory-table th {
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.inventory-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.inventory-table tr:hover {
    background: #f7fafc;
}

.card-row {
    background: white;
}

.card-row.has-inventory {
    background: #f0fff4;
}

.inventory-details {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
}

.grade-type-section {
    margin-bottom: 15px;
}

.grade-type-section:last-child {
    margin-bottom: 0;
}

.grade-type-header {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 15px;
}

.service-group {
    margin-bottom: 12px;
    margin-left: 15px;
}

.service-header {
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 6px;
    font-size: 14px;
}

.print-group {
    margin-bottom: 8px;
    margin-left: 15px;
}

.print-type {
    font-weight: 500;
    color: #3498db;
    margin-bottom: 4px;
    font-size: 13px;
}

.condition-group,
.grade-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    margin: 2px 0;
    margin-left: 15px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #27ae60;
}

.grade-group {
    border-left-color: #f39c12;
}

.condition,
.grade {
    flex: 1;
    color: #2c3e50;
    font-size: 12px;
}

.quantity {
    color: #7f8c8d;
    font-weight: 500;
    margin: 0 10px;
    font-size: 12px;
}

.price {
    color: #27ae60;
    font-weight: 600;
    font-size: 12px;
}

.add-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background-color: white;
    margin: 0 auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-dark);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: #999;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal form {
    padding: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
    }
    
    .sidebar-header {
        padding: 20px;
    }
    
    .nav-menu {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    
    .nav-menu li {
        min-width: max-content;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-left: none;
        border-bottom: 4px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-left: none;
        border-bottom-color: #667eea;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .overview-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .set-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .inventory-table-container {
        overflow-x: scroll;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .category-section {
        padding: 20px;
    }
    
    .set-overview {
        grid-template-columns: 1fr;
    }
    
    .value-display {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Grade Toggle Styles */
.grade-toggle {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    align-items: center;
}

.grade-toggle input[type="radio"] {
    margin: 0;
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.grade-toggle label {
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    background: white;
    color: #495057;
    min-width: fit-content;
}

.grade-toggle label:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.grade-toggle input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.grading-details {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.grading-details .form-group {
    margin-bottom: 15px;
}

.grading-details .form-group:last-child {
    margin-bottom: 0;
}

/* Card Item Styling */
.card-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e4e7;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.card-number {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.rarity-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rarity-holo-rare {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #8b4513;
}

.rarity-rare {
    background: #e74c3c;
    color: white;
}

.rarity-uncommon {
    background: #95a5a6;
    color: white;
}

.rarity-common {
    background: #34495e;
    color: white;
}

.add-card-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.add-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.add-card-btn:active {
    transform: translateY(0);
}

.add-card-btn i {
    font-size: 0.8rem;
}

.no-inventory {
    color: #6c757d;
    font-style: italic;
    margin: 10px 0;
}

.inventory-details {
    margin-top: 15px;
}

.print-type-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.print-type-header {
    color: #495057;
    font-size: 1rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.condition-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
}

.condition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.condition-name {
    font-weight: 600;
    color: #495057;
}

.inventory-actions {
    display: flex;
    gap: 5px;
}

.edit-btn, .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.edit-btn {
    color: #007bff;
}

.edit-btn:hover {
    background: #e3f2fd;
}

.delete-btn {
    color: #dc3545;
}

.delete-btn:hover {
    background: #ffebee;
}

.condition-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.quantity, .price, .total-value {
    color: #6c757d;
}

.inventory-summary {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 6px;
    padding: 10px;
    margin-top: 15px;
    text-align: center;
    color: #155724;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.inventory-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Missing Cards Modal Styles */
.missing-cards-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.missing-cards-summary h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.missing-cards-summary p {
    color: #6c757d;
    margin: 5px 0;
}

.missing-cards-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.missing-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    transition: background-color 0.2s ease;
}

.missing-card-item:last-child {
    border-bottom: none;
}

.missing-card-item:hover {
    background: #f8f9fa;
}

.missing-card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.missing-card-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.missing-card-details {
    font-size: 0.9rem;
    color: #6c757d;
}

.missing-card-number {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 12px;
}

.missing-rarity-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.missing-rarity-holo-rare {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #8b4513;
}

.missing-rarity-rare {
    background: #e74c3c;
    color: white;
}

.missing-rarity-uncommon {
    background: #95a5a6;
    color: white;
}

.missing-rarity-common {
    background: #34495e;
    color: white;
}

.no-missing-cards {
    text-align: center;
    padding: 40px 20px;
    color: #28a745;
}

.no-missing-cards i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #28a745;
}

.no-missing-cards h4 {
    color: #28a745;
    margin-bottom: 8px;
}

.no-missing-cards p {
    color: #6c757d;
}

/* Pokemon Overview Styles */
.overview-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.overview-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.overview-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.set-overview-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e4e7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.set-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.set-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.set-card-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.set-value {
    color: #27ae60;
    font-weight: 700;
    font-size: 1.1rem;
}

.set-progress-section {
    margin-bottom: 20px;
}

.set-progress-section .progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.set-progress-section .progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.set-progress-section .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.set-actions {
    display: flex;
    gap: 10px;
}

.set-actions .btn-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.set-actions .btn-secondary i {
    font-size: 0.8rem;
}

/* Series section styling */
.series-section {
    margin-bottom: 40px;
}

.series-header {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.series-header h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.set-overview-card .set-card-header h5 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Responsive design for overview */
@media (max-width: 768px) {
    .sets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .set-actions {
        flex-direction: column;
    }
    
    .set-actions .btn-secondary {
        flex: none;
    }
    
    .series-section {
        margin-bottom: 30px;
    }
    
    .series-header {
        padding: 12px 16px;
    }
    
    .series-header h4 {
        font-size: 1.1rem;
    }
}

/* Upload & Download Control Buttons */
.control-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.control-buttons .btn-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.control-buttons .btn-secondary i {
    font-size: 0.8rem;
}

/* Upload Modal Styles */
.upload-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.upload-section {
    padding: 20px;
}

.upload-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.upload-instructions h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.upload-instructions h5 {
    margin: 15px 0 8px 0;
    color: #34495e;
}

.csv-format {
    background: #e9ecef;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.format-examples {
    margin: 15px 0;
}

.format-examples code {
    display: block;
    background: #e9ecef;
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
    font-size: 0.85rem;
    overflow-x: auto;
}

.format-notes ul {
    margin: 10px 0;
    padding-left: 20px;
}

.format-notes li {
    margin: 5px 0;
    font-size: 0.9rem;
}

.upload-behavior-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.upload-behavior-section h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.upload-behavior-section p {
    margin: 0 0 15px 0;
    color: #856404;
}

.upload-behavior-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.behavior-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.behavior-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.behavior-option input[type="radio"] {
    margin: 4px 0 0 0;
    cursor: pointer;
}

.behavior-option input[type="radio"]:checked + .option-content {
    color: #0056b3;
}

.behavior-option:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background: #e3f2fd;
}

.option-content {
    flex: 1;
}

.option-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.option-content p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #495057;
}

.option-content small {
    color: #6c757d;
    font-style: italic;
}

.file-upload-area {
    margin: 25px 0;
}

.upload-dropzone {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.upload-dropzone:hover {
    border-color: #0056b3;
    background: #e9f4ff;
}

.upload-dropzone i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
    display: block;
}

.upload-dropzone p {
    margin: 10px 0;
    color: #495057;
}

.file-info {
    font-size: 0.85rem;
    color: #6c757d;
}

.upload-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.upload-preview h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

#preview-content {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.upload-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.upload-progress {
    margin: 20px 0;
}

.upload-progress .progress-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.upload-progress .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    transition: width 0.3s ease;
}

#upload-status {
    text-align: center;
    color: #495057;
    font-weight: 500;
}

.upload-results {
    margin: 20px 0;
}

#upload-summary {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

#upload-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

#upload-errors:empty {
    display: none;
}

/* Responsive upload modal */
@media (max-width: 768px) {
    .upload-modal {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .control-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .control-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .upload-actions {
        flex-direction: column;
    }
    
    .upload-actions .btn-primary,
    .upload-actions .btn-secondary {
        width: 100%;
    }
    
    .upload-behavior-options {
        gap: 10px;
    }
    
    .behavior-option {
        padding: 12px;
    }
    
    .option-content strong {
        font-size: 0.9rem;
    }
    
    .option-content p {
        font-size: 0.8rem;
    }
    
         .option-content small {
         font-size: 0.75rem;
     }
 }

/* Template Download Modal Styles */
.template-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.template-section {
    padding: 20px;
}

.template-instructions {
    text-align: center;
    margin-bottom: 30px;
}

.template-instructions h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.template-instructions p {
    margin: 0;
    color: #495057;
}

.template-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.template-option {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.template-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.template-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.template-content {
    flex: 1;
}

.template-content h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.template-content p {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 0.9rem;
}

.template-content ul {
    margin: 0;
    padding-left: 20px;
}

.template-content li {
    margin: 4px 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.template-notes {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.template-notes h5 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 0.9rem;
}

.template-notes p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Responsive template modal */
@media (max-width: 768px) {
    .template-modal {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .template-options {
        gap: 15px;
    }
    
    .template-option {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .template-icon {
        align-self: center;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ====================
   SET TRACKING STYLES
   ==================== */

/* Tracking Toggle Styles */
.tracking-toggle-container {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.tracking-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

.tracking-label-text {
    color: #495057;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #007bff;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.tracking-status-text {
    font-weight: 600;
    color: #495057;
}

input:checked + .toggle-slider + .tracking-status-text {
    color: #007bff;
}

/* Overview Tracking Indicators */
.set-overview-card.tracked {
    border-left: 4px solid #28a745;
}

.tracking-indicator {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 600;
}

.tracking-badge {
    background: #e8f5e8;
    color: #28a745;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Untracked Sets Modal */
.series-group {
    margin-bottom: 20px;
}

.series-group h4 {
    color: #495057;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
}

.sets-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
}

.set-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.set-checkbox-label:hover {
    background-color: #f8f9fa;
}

.set-checkbox-label input[type="checkbox"] {
    margin: 0;
}

/* Button styles for stop tracking */
.btn-warning {
    background: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
    transform: translateY(-1px);
}

/* Updated overview stats labels styling */
.set-stat h4:contains("Tracked Sets Value") {
    color: #007bff;
}

.set-stat h4:contains("Number of Tracked Sets") {
    color: #28a745;
}

.set-stat h4:contains("Membership Tier") {
    color: #6f42c1;
}

/* Untracked sets section styling */
.untracked-sets-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.untracked-sets-section .series-header {
    background: transparent;
    padding: 0;
    margin-bottom: 15px;
}

.untracked-sets-section .series-header h4 {
    color: #495057;
    margin-bottom: 10px;
}

/* Responsive tracking styles */
@media (max-width: 768px) {
    .tracking-toggle-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tracking-toggle-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sets-checklist {
        grid-template-columns: 1fr;
    }
    
    .set-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .set-actions .btn-secondary,
    .set-actions .btn-warning {
        width: 100%;
    }
} 