/**
 * Legal Pages Generator - CSS Styles
 * Updated to match plugin's standard design
 */

/* Container */
.aiautotool_legal_pages_container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Header Section */
.autoblogging-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px 40px;
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 30px -20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autoblogging-header h2 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
}

.autoblogging-header h2 i {
    margin-right: 12px;
    opacity: 0.9;
}

.autoblogging-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
}

/* Card Styles */
.aiautotool-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow: hidden;
}

.aiautotool-card-body {
    padding: 30px 40px;
}

/* Notice/Alert Boxes */
.aiautotool-notice {
    padding: 16px 20px;
    margin: 0 0 30px 0;
    border-left: 4px solid #ffb900;
    background: #fffbf0;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.aiautotool-notice-warning {
    border-left-color: #ff6900;
    background: linear-gradient(90deg, #fff4ed 0%, #fffbf7 100%);
}

.aiautotool-notice i {
    color: #ff6900;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.aiautotool-notice strong {
    color: #333;
}

/* Form Styles */
.aiautotool-form .form-group {
    margin-bottom: 28px;
}

.aiautotool-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
    font-size: 14px;
}

.aiautotool-form label .description {
    display: block;
    font-weight: 400;
    color: #64748b;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.5;
}

.aiautotool-form label .required {
    color: #ef4444;
    font-weight: bold;
    margin-left: 3px;
}

.aiautotool-form input[type="email"],
.aiautotool-form input[type="tel"],
.aiautotool-form textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.aiautotool-form input[type="email"]:focus,
.aiautotool-form input[type="tel"]:focus,
.aiautotool-form textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Legal Pages List */
.aiautotool-form h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.aiautotool-form .legal-pages-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.aiautotool-form .legal-pages-list li {
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #667eea;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.aiautotool-form .legal-pages-list li:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateX(4px);
}

.aiautotool-form .legal-pages-list li i {
    color: #667eea;
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
}

/* Form Actions */
.form-actions {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f1f5f9;
}

.button-large {
    padding: 12px 32px !important;
    height: auto !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

.button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

.button-large:active {
    transform: translateY(0);
}

.button-large i {
    margin-right: 10px;
}

/* Progress Bar */
.aiautotool-progress {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.progress-bar {
    width: 100%;
    height: 32px;
    background: #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    text-align: center;
    margin-top: 16px;
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

/* Result Messages */
.aiautotool-result {
    margin: 30px 0;
}

.aiautotool-result .notice {
    padding: 16px 20px;
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: 6px;
    position: relative;
}

.aiautotool-result .notice-success {
    border-left-color: #10b981;
    background: linear-gradient(90deg, #f0fdf4 0%, #f7fef9 100%);
}

.aiautotool-result .notice-error {
    border-left-color: #ef4444;
    background: linear-gradient(90deg, #fef2f2 0%, #fef7f7 100%);
}

.legal-pages-results-list {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
}

.legal-pages-results-list li {
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.legal-pages-results-list li:hover {
    border-color: #667eea;
    background: #f8fafc;
    transform: translateX(4px);
}

.legal-pages-results-list li i {
    font-size: 18px;
    color: #10b981;
}

.legal-pages-results-list li a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.legal-pages-results-list li a:hover {
    color: #764ba2;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aiautotool-card-body {
        padding: 20px 24px;
    }

    .autoblogging-header {
        padding: 24px 24px;
        margin: -20px -20px 24px -20px;
    }

    .autoblogging-header h2 {
        font-size: 24px;
    }

    .aiautotool-form .legal-pages-list {
        grid-template-columns: 1fr;
    }
}

/* Button States */
.button:disabled,
.button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Additional Polish */
.aiautotool-card {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}