/* WP Recognyze Objects Plugin Styles */

/* Admin UI Styles */
.wrap {
    max-width: 1200px;
}

/* Dashboard Navigation */
.wprc-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.wprc-admin-header h1 {
    margin-top: 0;
    font-size: 26px;
    font-weight: 500;
}

.wprc-admin-header p {
    max-width: 600px;
    margin: 0;
}

.wprc-nav {
    display: flex;
    gap: 10px;
}

.wprc-nav a {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.wprc-nav a:hover {
    background: #e0e0e0;
}

.wprc-nav a.button-primary {
    background: #2271b1;
    color: #fff;
}

.wprc-nav a.button-primary:hover {
    background: #135e96;
}

/* Magic Link Button */
.wprc-nav-button {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    line-height: 1.4;
}

.wprc-nav-button:hover {
    background: #e0e0e0;
    border-color: #999;
}

.wprc-nav-button:disabled {
    background: #f9f9f9;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Dashboard Cards */
.wprc-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    padding: 20px;
}

/* Dashboard Stats */
.wprc-quickstats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.wprc-stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 20px;
    text-align: center;
}

.wprc-stat-number {
    font-size: 28px;
    font-weight: 600;
    color: #2271b1;
    margin-bottom: 10px;
}

.wprc-stat-label {
    color: #50575e;
    font-size: 14px;
}

/* Submission Status */
.wprc-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.wprc-status-submitted {
    background-color: #edf7ed;
    color: #1e8e3e;
}

.wprc-status-not-submitted {
    background-color: #fef7f6;
    color: #d93025;
}

/* Action Buttons */
.wprc-action-buttons {
    display: flex;
    gap: 5px;
}

/* Meta Box Styles */
.wprc-meta-box {
    margin: 10px 0;
}

.wprc-meta-box p {
    margin-bottom: 15px;
}

.wprc-meta-box .description {
    color: #666;
    font-style: italic;
    font-size: 12px;
}

.wprc-info-card {
    background-color: #f8f8f8;
    border-left: 4px solid #2271b1;
    padding: 15px;
    margin-bottom: 20px;
}

.wprc-recognyze-card {
    border-left: 4px solid #d63638;
    background-color: #fef8f8;
}

.wprc-info-card h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.wprc-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #007cba;
    border-radius: 50%;
    color: white;
    margin-right: 8px;
    font-weight: bold;
    font-size: 12px;
}

/* Details toggle animation */
.wprc-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.wprc-details.show {
    max-height: 500px;
}

/* Make form fields full width */
.wprc-http-post-form input[type="text"],
.wprc-http-post-form input[type="number"] {
    width: 100%;
}

/* HTTP Post Block */
.wprc-http-post-block {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.wprc-http-post-block h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.wprc-field {
    margin-bottom: 15px;
}

.wprc-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.wprc-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
}

.wprc-form-actions {
    margin-top: 20px;
}

/* Report Preview */
.wprc-report-preview {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-top: 15px;
    overflow: auto;
    max-height: 400px;
}

.wprc-report-preview pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 13px;
}

/* Authentication Settings Styles */
.wprc-auth-settings {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.wprc-auth-settings h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 500;
}

.wprc-auth-settings .form-table th {
    padding-left: 0;
    width: 150px;
}

.wprc-auth-method-selector {
    margin-bottom: 20px;
}

/* Auth method specific styles */
#wprc-basic-auth-settings {
    border-left: 3px solid #007cba;
}

#wprc-jwt-auth-settings {
    border-left: 3px solid #46b450;
}

#wprc-api-key-settings {
    border-left: 3px solid #ffb900;
}

.wprc-auth-settings .description {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

.wprc-metadata-preview {
    background: #fff;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #e2e4e7;
    border-radius: 3px;
    overflow-x: auto;
}

.wprc-metadata-preview code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    font-size: 12px;
    color: #333;
} 