/* Reviews Management Styles - Enhanced for Testimonials & Reviews */

:root {
    --admin-primary: #2C5282;
    --admin-secondary: #FFAB02;
    --admin-success: #48BB78;
    --admin-warning: #ED8936;
    --admin-error: #E53E3E;
    --admin-bg: #F7FAFC;
    --admin-card: #FFFFFF;
    --admin-border: #E2E8F0;
    --admin-text: #2D3748;
    --admin-text-light: #718096;
    --admin-shadow: rgba(0, 0, 0, 0.1);
    --admin-shadow-hover: rgba(0, 0, 0, 0.15);
    
    /* Reviews-specific colors */
    --reviews-accent: #F6AD55;
    --reviews-gradient: linear-gradient(135deg, var(--admin-primary), var(--reviews-accent));
    --star-gold: #FFD700;
    --star-empty: #C0C0C0;
    --featured-glow: rgba(255, 215, 0, 0.3);
}

/* Base Styles */
body {
    background: var(--admin-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* Navigation - ensure proper sizing (copied from blog styles) */
.nav {
    background: var(--admin-card);
    border-bottom: 1px solid var(--admin-border);
    box-shadow: 0 2px 10px var(--admin-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-title {
    color: var(--admin-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--admin-text);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--admin-border);
    color: var(--admin-primary);
}

.nav-link.active {
    background: var(--admin-primary);
    color: white;
}

.back-to-site {
    background: var(--admin-secondary);
    color: white !important;
    font-weight: 600;
}

.back-to-site:hover {
    background: #E69500;
}

.auth-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--admin-error);
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.auth-nav-link:hover {
    background: rgba(229, 62, 62, 0.1);
}

/* Mobile Toggle - Hidden by default, shown on mobile or with 5+ features */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Show hamburger when customer has 5+ features (even on desktop) */
.nav-container.has-many-features .mobile-toggle {
    display: flex;
}

/* Show hamburger when customer has 5+ features, hide some nav links on desktop */
.nav-container.has-many-features .nav-links {
    display: flex;
}

@media (min-width: 769px) {
    .nav-container.has-many-features .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--admin-card);
        border-top: 1px solid var(--admin-border);
        box-shadow: 0 2px 10px var(--admin-shadow);
        flex-direction: column;
        padding: 1rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-container.has-many-features .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-container.has-many-features .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 0;
    }
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: var(--admin-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Reviews Main Container */
.reviews-main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--admin-border);
    border-top: 4px solid var(--admin-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* No Access State */
.no-access-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.access-prompt {
    text-align: center;
    background: var(--admin-card);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--admin-shadow);
    max-width: 600px;
}

.access-prompt h2 {
    color: var(--admin-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.feature-benefits {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--admin-bg);
    border-radius: 12px;
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit h4 {
    margin: 0 0 0.5rem 0;
    color: var(--admin-primary);
}

.benefit p {
    margin: 0;
    color: var(--admin-text-light);
}

.upgrade-btn {
    background: var(--reviews-gradient);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 173, 85, 0.3);
}

/* Reviews Panel */
.reviews-panel {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reviews Header */
.reviews-header {
    background: var(--admin-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--admin-shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content h1 {
    color: var(--admin-primary);
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.header-content p {
    color: var(--admin-text-light);
    margin: 0;
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.primary-btn {
    background: var(--reviews-gradient);
    color: white;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 173, 85, 0.3);
}

.secondary-btn {
    background: white;
    color: var(--admin-primary);
    border: 2px solid var(--admin-border);
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    border-color: var(--admin-primary);
    background: rgba(44, 82, 130, 0.05);
    transform: translateY(-1px);
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: var(--admin-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--admin-shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--admin-shadow-hover);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--admin-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--admin-text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Search and Filter Bar */
.search-filter-bar {
    background: var(--admin-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--admin-shadow);
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--admin-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-text-light);
    font-size: 1.2rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--admin-border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.clear-filters {
    background: var(--admin-error);
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: #C53030;
}

/* Reviews Container */
.reviews-container {
    min-height: 400px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Review Card */
.review-card {
    background: var(--admin-card);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--admin-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--admin-shadow-hover);
}

.review-card.featured {
    border: 2px solid var(--star-gold);
    box-shadow: 0 4px 20px var(--featured-glow);
}



.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem;
    border-bottom: 1px solid var(--admin-border);
}

.review-info {
    flex: 1;
}

.rating-display {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    font-family: monospace;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--admin-text);
    font-size: 1rem;
}

.review-source {
    font-size: 0.875rem;
    color: var(--admin-text-light);
    background: var(--admin-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

.review-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.edit-btn {
    background: rgba(72, 187, 120, 0.1);
    color: var(--admin-success);
}

.edit-btn:hover {
    background: var(--admin-success);
    color: white;
}

.duplicate-btn {
    background: rgba(66, 153, 225, 0.1);
    color: #4299E1;
}

.duplicate-btn:hover {
    background: #4299E1;
    color: white;
}

.delete-btn {
    background: rgba(229, 62, 62, 0.1);
    color: var(--admin-error);
}

.delete-btn:hover {
    background: var(--admin-error);
    color: white;
}

.review-content {
    padding: 1.25rem;
}

.book-title {
    font-weight: 600;
    color: var(--admin-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.review-text {
    color: var(--admin-text);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.review-date {
    color: var(--admin-text-light);
}

.featured-badge {
    background: linear-gradient(135deg, var(--star-gold), #FFA500);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
}

.private-badge {
    background: rgba(229, 62, 62, 0.1);
    color: var(--admin-error);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
}

.review-link {
    color: var(--admin-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.review-link:hover {
    color: var(--reviews-accent);
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(246, 173, 85, 0.1);
    color: var(--reviews-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--admin-card);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--admin-shadow);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state h3 {
    color: var(--admin-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--admin-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--admin-card);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.review-modal {
    max-width: 900px;
    width: 90vw;
}

.import-modal {
    max-width: 800px;
    width: 90vw;
}

.delete-modal {
    max-width: 500px;
    width: 90vw;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--admin-primary);
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--admin-text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--admin-border);
    color: var(--admin-text);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Form Styles */
.review-form {
    max-width: none;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--admin-border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h4 {
    color: var(--admin-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--admin-text);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--admin-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
    color: var(--admin-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
    background: white;
}

.form-group small {
    color: var(--admin-text-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Star Rating Input */
.rating-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    font-size: 2rem;
    cursor: pointer;
    font-family: monospace;
}

.star {
    color: var(--star-empty);
    transition: all 0.3s ease;
    user-select: none;
    cursor: pointer;
}

.star:hover {
    color: var(--star-gold);
    transform: scale(1.1);
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--admin-border);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Display Options Section */
.display-section {
    background: rgba(246, 173, 85, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(246, 173, 85, 0.2);
}

/* Import Modal Styles */
.import-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.import-method {
    border: 2px solid var(--admin-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.import-method:hover {
    border-color: var(--admin-primary);
}

.import-method.active {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.method-header {
    padding: 1.5rem;
    background: var(--admin-bg);
    border-bottom: 1px solid var(--admin-border);
}

.import-method.active .method-header {
    background: rgba(44, 82, 130, 0.05);
}

.method-header h4 {
    margin: 0 0 0.5rem 0;
    color: var(--admin-primary);
    font-size: 1.25rem;
}

.method-header p {
    margin: 0;
    color: var(--admin-text-light);
}

.method-content {
    padding: 1.5rem;
    display: none;
}

.import-method.active .method-content {
    display: block;
}

/* URL Preview Styles */
.url-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--admin-bg);
    border-radius: 12px;
    border: 1px solid var(--admin-border);
}

.url-preview h4 {
    margin: 0 0 1rem 0;
    color: var(--admin-primary);
}

/* Bulk Preview Styles */
.bulk-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--admin-bg);
    border-radius: 12px;
    border: 1px solid var(--admin-border);
}

.bulk-preview h4 {
    margin: 0 0 1rem 0;
    color: var(--admin-primary);
}

.bulk-detection {
    display: grid;
    gap: 1.5rem;
}

.detected-book {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 1rem;
}

.detected-book h4 {
    margin: 0 0 0.75rem 0;
    color: var(--admin-text);
    font-size: 1rem;
}

.book-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.bulk-status {
    display: grid;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

.status-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.status-text {
    color: var(--admin-text);
    font-weight: 500;
}

.detected-review {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.detected-review:last-child {
    margin-bottom: 0;
}

.detected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.source-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.source-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.source-badge.amazon {
    background: #FF9900;
    color: white;
}

.source-badge.goodreads {
    background: #553B08;
    color: white;
}

.source-badge.bookbub {
    background: #1B365D;
    color: white;
}

.source-badge.library-thing {
    background: #8B4513;
    color: white;
}

.source-badge.other {
    background: var(--admin-text-light);
    color: white;
}

.url-link {
    color: var(--admin-primary);
    text-decoration: none;
    font-size: 0.875rem;
}

.url-link:hover {
    text-decoration: underline;
}

.detected-info {
    margin-bottom: 1rem;
}

.info-item {
    color: var(--admin-text-light);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.manual-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.reviewer-input {
    padding: 0.5rem;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: 0.875rem;
}

.rating-input-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--admin-text);
}

.star-rating-small {
    display: flex;
    gap: 0.125rem;
    font-size: 1.25rem;
    cursor: pointer;
    font-family: monospace;
}

.star-small {
    color: var(--star-empty);
    transition: all 0.2s ease;
    user-select: none;
    cursor: pointer;
}

.star-small:hover {
    transform: scale(1.1);
}

.review-content-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: 0.875rem;
    resize: vertical;
    font-family: inherit;
}

.review-date-input {
    padding: 0.5rem;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: 0.875rem;
    width: 150px;
}

.reviewer-input:focus,
.review-content-input:focus,
.review-date-input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.1);
}

.coming-soon {
    text-align: center;
    padding: 2rem;
    color: var(--admin-text-light);
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.coming-soon h4 {
    color: var(--admin-warning);
    margin-bottom: 1rem;
}

/* Review Stats */
.review-stats {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--admin-bg);
    border: 2px solid var(--admin-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 0.875rem;
    color: var(--admin-text-light);
}

/* Button Variants */
.danger-btn {
    background: var(--admin-error);
    color: white;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.danger-btn:hover {
    background: #C53030;
    transform: translateY(-1px);
}

/* Warning Text */
.warning-text {
    color: var(--admin-error);
    font-weight: 500;
    font-style: italic;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--admin-card);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--admin-shadow);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
    border-left: 4px solid var(--admin-primary);
}

.notification.success {
    border-left-color: var(--admin-success);
}

.notification.error {
    border-left-color: var(--admin-error);
}

.notification.warning {
    border-left-color: var(--admin-warning);
}

.notification.active {
    transform: translateX(0);
}

.notification-icon {
    font-size: 1.25rem;
}

.notification-message {
    color: var(--admin-text);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Always show hamburger on mobile */
    .mobile-toggle {
        display: flex !important;
    }
    
    /* Mobile navigation menu */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--admin-card);
        border-top: 1px solid var(--admin-border);
        box-shadow: 0 2px 10px var(--admin-shadow);
        flex-direction: column;
        padding: 1rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 0;
    }
    
    .reviews-main {
        padding: 1rem;
    }
    
    .reviews-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.5rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .review-header {
        padding: 1rem;
    }
    
    .review-content {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.active {
        transform: translateY(0);
    }
    
    .star-rating {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .reviews-header {
        padding: 1rem;
    }
    
    .header-content h1 {
        font-size: 1.75rem;
    }
    
    .stats-bar {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .search-filter-bar {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column-reverse;
        align-items: stretch;
    }
    
    .form-section {
        padding-bottom: 1.5rem;
    }
    
    .notification {
        left: 5px;
        right: 5px;
        font-size: 0.8rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .star-rating {
        font-size: 1.5rem;
    }
    
    .review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Import modal mobile styles */
    .field-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .rating-input-small {
        justify-content: center;
    }
    
    .source-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detected-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bulk-detection {
        gap: 1rem;
    }
    
    .book-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .status-item {
        padding: 0.5rem;
    }
    
    .status-icon {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .reviews-main {
        padding: 0;
    }
    
    .modal-overlay,
    .notification,
    .header-actions,
    .review-actions,
    .search-filter-bar {
        display: none !important;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--admin-border);
    }
}

/* Enhanced styles for individual vs bulk review extraction */
/* Add these styles to your existing styles.css file */

/* Extraction Type Indicators */
.extraction-type {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.extraction-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.extraction-type:hover::before {
    left: 100%;
}

.extraction-type.individual {
    background: linear-gradient(135deg, #48BB78, #38A169);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.extraction-type.bulk {
    background: linear-gradient(135deg, #4299E1, #3182CE);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

/* Enhanced detected review cards */
.detected-review {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detected-review.individual-review {
    border-left: 4px solid #48BB78;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.05), rgba(72, 187, 120, 0.02));
}

.detected-review.bulk-review {
    border-left: 4px solid #4299E1;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.05), rgba(66, 153, 225, 0.02));
}

.detected-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Hide manual fields for individual reviews since they auto-extract */
.detected-review.individual-review .manual-fields {
    display: none;
}

/* Enhanced source badges for better visibility */
.source-badge {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.source-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.3s;
}

.source-badge:hover::before {
    left: 100%;
}

.source-badge.goodreads {
    background: linear-gradient(135deg, #553B08, #8B4513);
    color: white;
}

.source-badge.amazon {
    background: linear-gradient(135deg, #FF9900, #E68A00);
    color: white;
}

.source-badge.bookbub {
    background: linear-gradient(135deg, #1B365D, #2D5A87);
    color: white;
}

.source-badge.kobo {
    background: linear-gradient(135deg, #00A7E1, #0086B3);
    color: white;
}

.source-badge.apple {
    background: linear-gradient(135deg, #007AFF, #0056CC);
    color: white;
}

.source-badge.barnes-noble {
    background: linear-gradient(135deg, #8B4513, #654321);
    color: white;
}

.source-badge.smashwords {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: white;
}

.source-badge.library-thing {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
}

.source-badge.other {
    background: linear-gradient(135deg, #718096, #4A5568);
    color: white;
}

/* Enhanced info items with better typography */
.info-item {
    color: var(--admin-text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-left-color: var(--admin-primary);
    color: var(--admin-text);
    background: rgba(44, 82, 130, 0.05);
    border-radius: 0 6px 6px 0;
}

/* Success/status indicators */
.info-item:contains("✅") {
    color: var(--admin-success);
    font-weight: 500;
}

.info-item:contains("ℹ️") {
    color: var(--admin-primary);
}

.info-item:contains("📋") {
    font-family: monospace;
    background: rgba(44, 82, 130, 0.1);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0;
}

/* Enhanced URL preview container */
.url-preview {
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.05), rgba(44, 82, 130, 0.02));
    border: 2px solid rgba(44, 82, 130, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.url-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--admin-primary), var(--reviews-accent), var(--admin-primary));
}

.url-preview h4 {
    color: var(--admin-primary);
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced bulk preview styling */
.bulk-preview {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.05), rgba(66, 153, 225, 0.02));
    border: 2px solid rgba(66, 153, 225, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.bulk-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4299E1, #63B3ED, #4299E1);
}

/* Enhanced status items */
.status-item {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(66, 153, 225, 0.05);
    border-color: rgba(66, 153, 225, 0.2);
    transform: translateX(4px);
}

.status-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.status-text {
    color: var(--admin-text);
    font-weight: 500;
    line-height: 1.4;
}

/* Enhanced import button states */
.primary-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.primary-btn:hover::before {
    width: 300px;
    height: 300px;
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Enhanced manual fields styling */
.manual-fields {
    background: rgba(246, 173, 85, 0.05);
    border: 1px solid rgba(246, 173, 85, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reviewer-input,
.review-content-input,
.review-date-input {
    transition: all 0.3s ease;
}

.reviewer-input:focus,
.review-content-input:focus,
.review-date-input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
    background: white;
}

/* Enhanced star rating for import */
.star-rating-small {
    display: flex;
    gap: 0.125rem;
    font-size: 1.25rem;
    cursor: pointer;
    font-family: monospace;
}

.star-small {
    color: var(--star-empty);
    transition: all 0.2s ease;
    user-select: none;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.star-small:hover {
    transform: scale(1.2);
    color: var(--star-gold);
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* Loading animations */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Enhanced notifications for extraction types */
.notification.extraction {
    border-left: 4px solid var(--admin-primary);
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.1), rgba(44, 82, 130, 0.05));
}

.notification.individual-extraction {
    border-left: 4px solid #48BB78;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(72, 187, 120, 0.05));
}

.notification.bulk-extraction {
    border-left: 4px solid #4299E1;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1), rgba(66, 153, 225, 0.05));
}

/* Enhanced coming soon section */
.coming-soon {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--admin-text-light);
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.05), rgba(237, 137, 54, 0.02));
    border: 2px dashed rgba(237, 137, 54, 0.2);
    border-radius: 12px;
    position: relative;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.coming-soon h4 {
    color: var(--admin-warning);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.coming-soon code {
    background: rgba(237, 137, 54, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--admin-warning);
    font-weight: 600;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .extraction-type {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .field-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .rating-input-small {
        justify-content: center;
    }
    
    .status-item {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .status-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .extraction-type {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .url-preview,
    .bulk-preview {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .info-item {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .star-rating-small {
        font-size: 1.1rem;
    }
    
    .coming-soon {
        padding: 2rem 1rem;
    }
    
    .coming-soon-icon {
        font-size: 3rem;
    }
}