/* Meta Description Generator Styles */

.vessel-meta-generator {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
}

.vessel-meta-generator h4 {
    margin: 0 0 15px 0;
    color: #0073aa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vessel-meta-generator p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.generator-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.generator-options {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
}

.generator-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.generated-meta-result {
    margin-top: 15px;
}

.description-container {
    background: white;
    padding: 15px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.generated-meta-text {
    width: 100%;
    height: 80px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 3px;
    resize: vertical;
    font-family: inherit;
}

.meta-actions {
    display: flex;
    gap: 10px;
}

.character-count {
    font-size: 12px;
    color: #666;
}

.character-count.too-long {
    color: #d63384;
    font-weight: bold;
}

.character-count.too-short {
    color: #fd7e14;
}

.character-count.perfect {
    color: #198754;
    font-weight: bold;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
}

.btn-primary {
    background-color: #0073aa;
    border-color: #0073aa;
    color: white;
}

.btn-primary:hover {
    background-color: #005a87;
    border-color: #005a87;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Admin tools section */
.admin-tools {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
}

.admin-tools h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.admin-tools .btn {
    margin-right: 10px;
}

/* Progress modal styles */
#bulk-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bulk-modal > div {
    background: white;
    padding: 30px;
    border-radius: 8px;
    min-width: 500px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

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

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87);
    transition: width 0.3s ease;
}

.progress-log {
    max-height: 200px;
    overflow-y: auto;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.progress-log div {
    margin-bottom: 2px;
    line-height: 1.4;
}

/* Status messages */
.meta-generation-status > div {
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.meta-generation-status .success {
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

.meta-generation-status .error {
    color: #d63384;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

.meta-generation-status .info {
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

/* Responsive design */
@media (max-width: 768px) {
    .generator-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .generator-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-tools .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
    
    #bulk-modal > div {
        min-width: 0;
        width: 95%;
        margin: 20px;
    }
    
    .meta-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .meta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for AI icon */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.ai-icon {
    animation: pulse 2s infinite;
}

/* Loading states */
.generating .ai-icon {
    animation: pulse 0.5s infinite;
}

/* Success states */
.btn.success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* Focus states for accessibility */
.btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.generated-meta-text:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}
