/* AI Text Humanizer Styles */

/* Reset and Base Styles */
.aih-humanization-form * {
    box-sizing: border-box;
}

/* Container */
.aih-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Attempts Counter */
.aih-attempts-counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aih-attempts-counter i {
    color: #ffd700;
}

/* Content Wrapper */
.aih-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.aih-input-section,
.aih-output-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.aih-input-section h3,
.aih-output-section h3 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aih-input-section h3 i,
.aih-output-section h3 i {
    color: #ffd700;
}

/* Text Input Container */
.aih-text-input-container {
    margin-bottom: 15px;
}

/* Text Input */
.aih-text-input {
    width: 100%;
    min-height: 342px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    color: #333;
    line-height: 1.5;
}

.aih-text-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
}

.aih-text-input::placeholder {
    color: #999;
}

/* Textarea */
.aih-output-container textarea {
    width: 100%;
    min-height: 342px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.aih-output-container textarea:focus {
    outline: none;
    border-color: #667eea;
}

.aih-output-container textarea:disabled {
    background: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
}

/* Copy Button */
.aih-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 10;
}

.aih-copy-btn:hover {
    background: #ffed4e;
    transform: scale(1.05);
}

/* Character Count */
.aih-char-count {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: right;
}

/* Options Section */
.aih-options-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aih-options-section h3 {
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aih-options-section h3 i {
    color: #ffd700;
}

.aih-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.aih-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aih-option-group label {
    color: white;
    font-weight: 500;
}

.aih-option-group select {
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.aih-option-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.aih-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.aih-btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.aih-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.aih-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.aih-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.aih-btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Process and Payment Sections */
.aih-process-section,
.aih-payment-section {
    text-align: center;
    margin: 30px 0;
}

/* Modals */
.aih-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.aih-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.aih-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.aih-modal-close:hover {
    color: #333;
}

.aih-modal h3 {
    margin-bottom: 20px;
    color: #333;
}

.aih-payment-info p {
    margin-bottom: 15px;
    color: #666;
}

.aih-card-number {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aih-copy-card-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.aih-copy-card-btn:hover {
    background: #0056b3;
}

.aih-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Loading Overlay */
.aih-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.aih-loading-spinner {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.aih-loading-spinner i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.aih-loading-spinner p {
    color: #333;
    font-weight: 500;
}

/* User Account Styles */
.aih-user-account {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aih-account-header {
    text-align: center;
    margin-bottom: 40px;
}

.aih-account-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.aih-account-header h2 i {
    color: #ffd700;
}

.aih-account-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.aih-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.aih-info-card h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.aih-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aih-info-item:last-child {
    border-bottom: none;
}

.aih-info-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.aih-info-value {
    color: white;
    font-weight: 600;
}

/* History Section */
.aih-history-section {
    margin-bottom: 30px;
}

.aih-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.aih-history-header h3 {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aih-history-header h3 i {
    color: #ffd700;
}

.aih-history-list {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 400px;
    overflow-y: auto;
}

.aih-history-item {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.aih-history-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.aih-history-item:last-child {
    border-bottom: none;
}

.aih-history-date {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.aih-history-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.aih-history-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.aih-history-actions .aih-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Stats Section */
.aih-stats-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aih-stats-section h3 {
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aih-stats-section h3 i {
    color: #ffd700;
}

.aih-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.aih-stat-card {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aih-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 5px;
}

.aih-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Tips Section */
.aih-tips-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aih-tips-section h3 {
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aih-tips-section h3 i {
    color: #ffd700;
}

.aih-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.aih-tip {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aih-tip i {
    color: #ffd700;
    font-size: 1.2rem;
}

.aih-tip p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Widget Styles */
.aih-widget-attempts {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
}

.aih-widget-attempts i {
    color: #ffd700;
}

.aih-quick-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aih-quick-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
}

.aih-widget-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aih-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.aih-stat-number {
    font-weight: bold;
    color: #ffd700;
}

.aih-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aih-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .aih-options-grid {
        grid-template-columns: 1fr;
    }
    
    .aih-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .aih-tips-grid {
        grid-template-columns: 1fr;
    }
    
    .aih-modal-buttons {
        flex-direction: column;
    }
    
    .aih-history-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .aih-container {
        padding: 10px;
    }
    
    .aih-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .aih-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
} 