/* Review Modal Styles - Compact & Optimized */
.novateplica-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.novateplica-modal.is-open {
    display: flex;
}

.novateplica-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.novateplica-modal-container {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 680px;
    max-height: 95vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    padding: 28px;
    z-index: 10001;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

/* Custom scrollbar for Webkit */
.novateplica-modal-container::-webkit-scrollbar {
    width: 6px;
}

.novateplica-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.novateplica-modal-container::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 20px;
}

.novateplica-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.novateplica-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.novateplica-modal-close {
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.novateplica-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.review-modal-section {
    margin-bottom: 16px;
}

.section-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
}

/* Star Rating - More Compact */
.star-rating-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.star-rating-row {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
    margin: 4px 0;
}

.star-rating-row input {
    display: none;
}

.star-rating-row label {
    cursor: pointer;
    width: 36px;
    height: 36px;
    color: #cbd5e1;
    transition: all 0.2s;
}

.star-rating-row label svg {
    width: 100%;
    height: 100%;
}

.star-rating-row label:hover,
.star-rating-row label:hover~label,
.star-rating-row input:checked~label {
    color: #f59e0b;
}

.star-rating-status {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 4px;
}

.star-rating-status.active {
    color: #1e293b;
}

/* Textarea - Modern Style */
#novateplica-review-form textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: all 0.2s;
    background: #fff;
    min-height: 100px;
}

#novateplica-review-form textarea:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Section Header (Photo/Video) - Slimmer */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
}

.header-text strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
}

.header-text span {
    font-size: 12px;
    color: #64748b;
}

.upload-btn {
    background: #22c55e;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

/* Video Inputs */
.video-inputs {
    margin-top: 10px;
}

.video-input-wrapper input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
}

.video-input-wrapper input:focus {
    border-color: #22c55e;
}

/* Previews */
.photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.photo-preview-item {
    position: relative;
    width: 64px;
    height: 64px;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.remove-photo {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Footer & Button */
.review-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1.5px solid #f1f5f9;
}

.notify-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.notify-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #22c55e;
    cursor: pointer;
}

.notify-checkbox span {
    font-size: 13px;
    color: #4b5563;
}

.submit-review-btn {
    background: #22c55e;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
}

.submit-review-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.3);
}

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

.submit-review-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.review-modal-message {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.review-modal-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}

.review-modal-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

/* Mobile Optimization */
@media (max-width: 640px) {
    .novateplica-modal {
        padding: 0;
    }

    .novateplica-modal-container {
        max-height: 100%;
        border-radius: 0;
        padding: 24px 16px;
    }

    .review-modal-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .submit-review-btn {
        width: 100%;
        padding: 14px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .upload-btn {
        width: 100%;
    }
}