/* Smart Reviews Admin Styles */

.smart-reviews-tabs {
    margin-top: 20px;
}

.smart-reviews-tabs__nav {
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.smart-reviews-tabs__nav a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #0073aa;
    border-bottom: 2px solid transparent;
}

.smart-reviews-tabs__nav a.active {
    border-bottom-color: #0073aa;
    color: #000;
}

.smart-reviews-tab {
    display: none;
}

.smart-reviews-tab.active {
    display: block;
}

.smart-reviews-info-box {
    margin: 20px 0;
    padding: 15px;
    background: #f0f6fc;
    border: 1px solid #c3d7e7;
    border-radius: 4px;
}

.smart-reviews-info-box h3 {
    margin-top: 0;
    color: #1d2327;
}

.smart-reviews-shortcode-info {
    margin-bottom: 10px;
}

.smart-reviews-block-info {
    margin: 0;
}

.smart-reviews-cache-box {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.smart-reviews-cache-box h3 {
    margin-top: 0;
}

.smart-reviews-form-box {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.smart-reviews-list {
    margin-left: 20px;
}

.smart-reviews-help-icon {
    vertical-align: middle;
    margin-left: 4px;
}

/* Modal Styles */
.smart-reviews-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-reviews-modal-content {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.smart-reviews-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smart-reviews-modal-header h2 {
    margin: 0;
}

.smart-reviews-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;
}

.smart-reviews-modal-close:hover {
    color: #000;
}

.smart-reviews-modal form {
    padding: 20px;
}

.smart-reviews-modal-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Dashboard Styles */
.shortcode-display {
    font-family: monospace;
    background: #f1f1f1;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
    margin-right: 8px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-shortcode {
    font-size: 11px;
    padding: 2px 8px;
    height: auto;
    line-height: 1.4;
}

.wp-list-table .shortcode-display {
    max-width: 300px;
}

/* Custom Reviews Styles */
.smart-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.smart-stars .star {
    color: #ddd;
    font-size: 14px;
}

.smart-stars .star.filled {
    color: #ffc107;
}

.smart-rating-num {
    margin-left: 5px;
    font-size: 12px;
    color: #666;
}

.review-group-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    font-size: 11px;
    color: #50575e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom review modal specific styles */
#custom-review-modal .smart-reviews-modal-content {
    max-width: 700px;
}

#custom-review-modal .form-table th {
    width: 150px;
}

#custom-review-modal .required {
    color: #d63638;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .smart-reviews-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .smart-reviews-modal-header,
    .smart-reviews-modal form,
    .smart-reviews-modal-footer {
        padding: 15px;
    }
    
    .shortcode-display {
        max-width: 150px;
    }
    
    #custom-review-modal .form-table th {
        width: 120px;
    }
}