.readornot-preview {
    position: fixed;
    width: 400px;
    max-height: 300px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 10000;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.readornot-preview h3 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    color: #333;
}

.readornot-preview p {
    margin: 8px 0;
}

.readornot-preview .summary {
    font-weight: bold;
    margin-bottom: 15px;
}

.readornot-preview .metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.readornot-preview .metric {
    display: flex;
    align-items: center;
}

.readornot-preview .metric-name {
    font-weight: bold;
    margin-right: 5px;
    min-width: 80px;
}

.readornot-preview .stars {
    color: #f39c12;
}

.readornot-preview .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: #666;
}

.readornot-preview .footer {
    margin-top: 15px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 5px;
    text-align: right;
}

.readornot-preview .ai-loading {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.readornot-preview-settings {
    cursor: pointer;
    background: #f1f1f1;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.readornot-preview-settings:hover {
    background: #e0e0e0;
}

.readornot-config {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 10001;
}

.readornot-config h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.readornot-config label {
    display: block;
    margin-bottom: 5px;
}

.readornot-config input[type="text"] {
    width: 100%;
    padding: 5px;
    margin-bottom: 15px;
}

.readornot-config input[type="number"] {
    width: 100%;
    padding: 5px;
    margin-bottom: 15px;
}

.readornot-config button {
    padding: 5px 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.readornot-config .close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}
