/* LLM Generator Plugin Styles */

/* Frontend Overview Styles */
.lg-overview-generating {
    color: #666;
    font-style: italic;
    padding: 10px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    position: relative;
}

.lg-overview-generating:before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #0073aa;
    border-radius: 50%;
    border-top-color: transparent;
    animation: lg-spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes lg-spin {
    to { transform: rotate(360deg); }
}

.lg-overview-error {
    color: #d63638;
    padding: 10px;
    background: #fcf2f2;
    border-left: 4px solid #d63638;
    border-radius: 4px;
}

.lg-overview-timeout {
    color: #dba617;
    padding: 10px;
    background: #fef7e4;
    border-left: 4px solid #dba617;
    border-radius: 4px;
}

.lg-overview-container {
    margin: 10px 0;
}

.lg-refresh-overview {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}

.lg-refresh-overview:hover {
    background: #005a87;
    color: white;
}

/* Admin Meta Box Styles */
#gemini-overview-container {
    padding: 10px 0;
}

#gemini-overview-container .overview-actions {
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
}

#gemini-overview-container .no-overview {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    margin-bottom: 15px;
}

#gemini-overview-container .overview-content {
    margin-top: 15px;
}

#gemini-overview-container textarea {
    width: 100%;
    min-height: 200px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

#generation-status {
    margin-left: 10px;
    font-weight: bold;
}

/* Settings Page Styles */
.wrap .form-table th {
    width: 200px;
}

#connection-status {
    margin-left: 10px;
    font-weight: bold;
}

#bulk-progress {
    margin-top: 20px;
    padding: 15px;
    background: #f0f0f1;
    border-radius: 4px;
}

#progress-bar {
    width: 100%;
    height: 20px;
    margin-top: 10px;
}

/* Frontend Overview Styles */
.gemini-overview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.6;
}

.gemini-overview.generating {
    background: #fff3cd;
    border-left-color: #856404;
    font-style: italic;
    text-align: center;
}

.gemini-overview.generating::before {
    content: "🤖 ";
    font-style: normal;
}

.gemini-overview.no-overview {
    background: #f8d7da;
    border-left-color: #721c24;
    color: #721c24;
}

.gemini-overview h3 {
    margin-top: 0;
    color: #007cba;
}

.gemini-overview p {
    margin-bottom: 15px;
}

.gemini-overview p:last-child {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gemini-overview {
        padding: 15px;
        font-size: 14px;
    }
    
    #gemini-overview-container textarea {
        min-height: 150px;
    }
}

/* Loading Animation */
.gemini-overview.generating::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #856404;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error States */
.gemini-overview.error {
    background: #f8d7da;
    border-left-color: #721c24;
    color: #721c24;
}

/* Success States */
.overview-generated {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Plugin Admin Pages Styles */
.lg--header {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.gemini-stats {
    display: flex;
    gap: 20px;
    justify-content: space-around;
}

.stat-box {
    text-align: center;
    padding: 15px;
    background: #f0f6fc;
    border-radius: 8px;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bulk Actions Styles */
.gemini-bulk-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.action-card h3 {
    margin-top: 0;
    color: #1d2327;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 10px;
}

.action-card p {
    color: #646970;
    margin-bottom: 15px;
}

#bulk-progress {
    margin-top: 15px;
    padding: 15px;
    background: #f0f6fc;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

#progress-log {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

/* Content Management Styles */
.gemini-content-management {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-top: 20px;
}

.gemini-content-management .wp-list-table {
    border: none;
}

.regenerate-single {
    margin-left: 5px;
}

/* API Status Styles */
.gemini-api-status {
    margin-top: 20px;
}

.status-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.status-card.status-success {
    border-left: 4px solid #00a32a;
}

.status-card.status-error {
    border-left: 4px solid #d63638;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.status-icon {
    font-size: 24px;
}

.status-text {
    font-size: 18px;
    font-weight: 600;
}

.error-message {
    color: #d63638;
    margin-top: 10px;
    font-style: italic;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #646970;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.big-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #007cba;
    line-height: 1;
}

.api-info {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.api-info h3 {
    margin-top: 0;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gemini-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .gemini-bulk-actions {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-box {
        min-width: auto;
    }
} 

/* Bulk Generation Styles */
.bulk-generation-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.bulk-controls {
    margin-bottom: 20px;
}

.bulk-controls label {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

.bulk-controls select {
    margin-right: 15px;
    padding: 5px;
}

.bulk-controls button {
    margin-right: 10px;
}

#bulk-status {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
}

#bulk-progress {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #0073aa;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: bold;
    color: #666;
}

#bulk-results {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.bulk-summary ul {
    margin: 10px 0;
    padding-left: 20px;
}

.bulk-summary li {
    margin-bottom: 5px;
}

#bulk-results-content {
    max-height: 400px;
    overflow-y: auto;
} 