/* Zenodo DOI Plugin Styles */
.zenodo-doi-badge {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    margin: 5px 0;
}

.zenodo-doi-badge:hover {
    background: #004499;
    color: white;
    text-decoration: none;
}

.zenodo-doi-form {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.author-row {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-row input[type="text"] {
    flex: 1;
}

.remove-author {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.remove-author:hover {
    background: #c82333;
}

#add-author {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
}

#add-author:hover {
    background: #218838;
}

#doi-result {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

#doi-result.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.zenodo-help {
    background: #f9f9f9;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.zenodo-help h2 {
    margin-top: 0;
    color: #0073aa;
}

.zenodo-help code {
    background: #f1f1f1;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

.doi-status-draft {
    color: #856404;
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.doi-status-published {
    color: #155724;
    background: #d4edda;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.publish-doi {
    background: #007cba !important;
    color: white !important;
    border: none !important;
    padding: 5px 10px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.publish-doi:hover:not(:disabled) {
    background: #005a87 !important;
    color: white !important;
    text-decoration: none !important;
}

.publish-doi:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
}

/* Additional specificity for WordPress admin */
.wp-list-table .publish-doi {
    background: #007cba !important;
    color: white !important;
}

.wp-list-table .publish-doi:hover:not(:disabled) {
    background: #005a87 !important;
    color: white !important;
}

/* Even more specific for button elements */
button.publish-doi,
input.publish-doi {
    background: #007cba !important;
    color: white !important;
}

button.publish-doi:hover:not(:disabled),
input.publish-doi:hover:not(:disabled) {
    background: #005a87 !important;
    color: white !important;
}

@media (max-width: 768px) {
    .author-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .author-row input[type="text"] {
        margin-bottom: 5px;
    }
}

/* Search and pagination */
.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input[type="search"] {
    width: 300px;
    padding: 6px 10px;
}

.tablenav {
    padding: 8px 0;
    margin: 10px 0;
}

.tablenav-pages {
    float: right;
}

.tablenav-pages .displaying-num {
    margin-right: 10px;
    color: #646970;
}

.tablenav-pages a,
.tablenav-pages span.current {
    padding: 3px 6px;
    margin: 0 2px;
    text-decoration: none;
}

.tablenav-pages span.current {
    font-weight: bold;
    background: #2271b1;
    color: white;
    border-radius: 2px;
}

.button-link-delete {
    color: #b32d2e !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: underline !important;
}

.button-link-delete:hover {
    color: #dc3232 !important;
}