/* Humanizer 2.1 Frontend Styles */

.humanizer-21-container {
    max-width: 1200px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Stats Section */
.humanizer-21-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.humanizer-21-stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.humanizer-21-stat-box:hover {
    transform: translateY(-5px);
}

.humanizer-21-stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
}

.humanizer-21-stat-value {
    font-size: 32px;
    font-weight: bold;
}

.humanizer-21-stat-value.humanizer-21-remaining {
    color: #ffd700;
}

/* Interface Container */
.humanizer-21-interface {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Tabs */
.humanizer-21-tabs {
    display: flex;
    background: #f7f7f7;
    border-bottom: 2px solid #e0e0e0;
}

.humanizer-21-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.humanizer-21-tab:hover {
    background: #e8e8e8;
}

.humanizer-21-tab.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

/* Tab Content */
.humanizer-21-tab-content {
    display: none;
    padding: 30px;
}

.humanizer-21-tab-content.active {
    display: block;
}

/* Settings */
.humanizer-21-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.humanizer-21-setting label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.humanizer-21-setting select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.humanizer-21-setting select:focus {
    outline: none;
    border-color: #667eea;
}

/* Input Section */
.humanizer-21-input-section {
    margin-bottom: 20px;
}

.humanizer-21-input-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

#humanizer-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#humanizer-input:focus {
    outline: none;
    border-color: #667eea;
}

.humanizer-21-input-meta {
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

/* Buttons */
.humanizer-21-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.humanizer-21-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    margin-bottom: 20px;
}

.humanizer-21-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.humanizer-21-button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.humanizer-21-button-secondary {
    background: #f0f0f0;
    color: #333;
}

.humanizer-21-button-secondary:hover {
    background: #e0e0e0;
}

.humanizer-21-button-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Output Section */
.humanizer-21-output-section {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.humanizer-21-output-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.humanizer-21-output {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    margin-bottom: 15px;
    min-height: 100px;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
}

/* Notices */
.humanizer-21-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.humanizer-21-notice.humanizer-21-error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.humanizer-21-notice.humanizer-21-success {
    background: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

.humanizer-21-notice.humanizer-21-warning {
    background: #ffc;
    color: #c93;
    border-left: 4px solid #c93;
}

/* History */
.humanizer-21-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.humanizer-21-history-header h3 {
    margin: 0;
}

.humanizer-21-history-list {
    max-height: 600px;
    overflow-y: auto;
}

.humanizer-21-history-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.humanizer-21-history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.humanizer-21-history-date {
    font-weight: 500;
}

.humanizer-21-history-stats {
    display: flex;
    gap: 15px;
}

.humanizer-21-history-stat {
    background: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.humanizer-21-history-texts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.humanizer-21-history-text {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.humanizer-21-history-text h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #667eea;
}

.humanizer-21-history-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    max-height: 100px;
    overflow: hidden;
}

.humanizer-21-history-actions {
    margin-top: 10px;
    text-align: right;
}

/* Info Box */
.humanizer-21-info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Loading */
.humanizer-21-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.humanizer-21-loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Responsive */
@media (max-width: 768px) {
    .humanizer-21-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .humanizer-21-settings {
        grid-template-columns: 1fr;
    }

    .humanizer-21-history-texts {
        grid-template-columns: 1fr;
    }

    .humanizer-21-tab-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .humanizer-21-stats {
        grid-template-columns: 1fr;
    }
}
