/* AI Content Utility Suite - Public Styles */

.aicus-tool-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.aicus-tool-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.aicus-tool-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.aicus-tool-description {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.aicus-tool-body {
    margin-top: 20px;
}

/* Input Elements */
.aicus-textarea, .aicus-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.aicus-textarea:focus, .aicus-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.aicus-textarea {
    min-height: 150px;
    resize: vertical;
}

.aicus-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.aicus-file-input {
    margin-bottom: 15px;
    display: block;
}

/* Buttons */
.aicus-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 10px;
}

.aicus-btn-primary {
    background: #4CAF50;
    color: white;
}

.aicus-btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.aicus-btn-secondary {
    background: #2196F3;
    color: white;
}

.aicus-btn-secondary:hover {
    background: #0b7dda;
}

.aicus-actions {
    margin: 20px 0;
}

/* Output and Results */
.aicus-output, .aicus-results {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #4CAF50;
}

.aicus-output h4 {
    margin-top: 0;
    color: #333;
}

/* Meter and Progress Bars */
.aicus-meter-container {
    margin: 30px 0;
}

.aicus-meter-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.aicus-meter {
    position: relative;
    height: 40px;
    background: linear-gradient(to right, #4CAF50 0%, #FFC107 50%, #F44336 100%);
    border-radius: 20px;
    overflow: hidden;
}

.aicus-meter-needle {
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: left 0.5s ease;
}

/* Bar Graph */
.aicus-bar-graph {
    margin: 30px 0;
}

.aicus-bar-item {
    margin: 15px 0;
}

.aicus-bar-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.aicus-bar {
    position: relative;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
}

.aicus-bar-fill {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 15px;
}

.aicus-bar-human .aicus-bar-fill {
    background: #4CAF50;
}

.aicus-bar-ai .aicus-bar-fill {
    background: #F44336;
}

.aicus-bar-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #333;
}

/* Stats Display */
.aicus-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.aicus-stat-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

.aicus-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.aicus-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.aicus-stat-value.good {
    color: #4CAF50;
}

.aicus-stat-value.warning {
    color: #FFC107;
}

.aicus-stat-value.bad {
    color: #F44336;
}

/* Flagged Content */
.aicus-flagged-content {
    margin-top: 20px;
}

.aicus-flagged-content h4 {
    color: #333;
    margin-bottom: 15px;
}

.aicus-flagged-sentence {
    padding: 10px;
    margin: 10px 0;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

/* Loading Spinner */
.aicus-loading {
    text-align: center;
    padding: 40px;
}

.aicus-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: aicus-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes aicus-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Grammar Issues */
.aicus-grammar-issue {
    padding: 10px;
    margin: 10px 0;
    background: #fff;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
}

.aicus-grammar-issue .issue-text {
    font-weight: 700;
    color: #F44336;
}

.aicus-grammar-issue .suggestion {
    color: #4CAF50;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .aicus-tool-container {
        padding: 15px;
        margin: 10px;
    }
    
    .aicus-btn {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .aicus-stats {
        grid-template-columns: 1fr;
    }
}
