.imtg-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border-radius: 32px;
}

.imtg-header {
    text-align: center;
    margin-bottom: 40px;
}

.imtg-header h1 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #1e293b, #2c7da0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.imtg-header p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

.imtg-tool-wrapper {
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    padding: 35px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .imtg-tool-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.imtg-section {
    margin-bottom: 22px;
}

.imtg-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #334155;
}

.imtg-required {
    color: #e74c3c;
}

.imtg-input, .imtg-select, .imtg-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fafcff;
}

.imtg-textarea {
    resize: vertical;
    font-family: inherit;
}

.imtg-input:focus, .imtg-select:focus, .imtg-textarea:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.1);
}

.imtg-counter {
    text-align: right;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 5px;
}

.imtg-section small {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 5px;
}

.imtg-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #0f172a;
}

.imtg-robots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.imtg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
}

.imtg-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.imtg-advanced-toggle {
    text-align: center;
    margin: 15px 0;
}

.imtg-advanced-btn {
    background: none;
    border: none;
    color: #2c7da0;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 30px;
    background: #f1f5f9;
}

.imtg-advanced-btn:hover {
    background: #e2e8f0;
}

.imtg-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.imtg-generate-btn, .imtg-reset-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.imtg-generate-btn {
    background: linear-gradient(135deg, #2c7da0, #1f5e7a);
    color: white;
    flex: 2;
}

.imtg-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 125, 160, 0.3);
}

.imtg-reset-btn {
    background: #f1f5f9;
    color: #475569;
    flex: 1;
}

.imtg-reset-btn:hover {
    background: #e2e8f0;
}

/* Result Section */
.imtg-result-section {
    margin-top: 20px;
}

.imtg-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.imtg-result-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
}

.imtg-result-actions {
    display: flex;
    gap: 10px;
}

.imtg-icon-btn {
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.imtg-icon-btn:hover {
    background: #e2e8f0;
}

/* Search Engine Preview */
.imtg-preview-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eef2f6;
}

.imtg-preview-card h4 {
    margin-bottom: 15px;
    font-size: 14px;
    color: #64748b;
}

.imtg-snippet-preview {
    max-width: 600px;
}

.snippet-title {
    font-size: 18px;
    color: #1a0dab;
    text-decoration: none;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 4px;
}

.snippet-url {
    font-size: 12px;
    color: #006621;
    margin-bottom: 4px;
}

.snippet-description {
    font-size: 13px;
    color: #545454;
    line-height: 1.4;
}

.imtg-result-content {
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
}

/* Info Section */
.imtg-info-section {
    margin: 40px 0 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-card h5 {
    margin-bottom: 10px;
    color: #2c7da0;
    font-size: 0.95rem;
}

.info-card p {
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
}

.imtg-disclaimer {
    background: #fef9e3;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 12px;
    color: #92400e;
    margin-top: 20px;
}

.imtg-features {
    margin-top: 50px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature {
    background: white;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature span {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 10px;
}

.feature h4 {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.feature p {
    font-size: 11px;
    color: #64748b;
}

@media (max-width: 768px) {
    .imtg-container {
        padding: 20px 15px;
    }
    .imtg-header h1 {
        font-size: 1.8rem;
    }
    .imtg-tool-wrapper {
        padding: 20px;
    }
    .imtg-actions {
        flex-direction: column;
    }
    .imtg-generate-btn, .imtg-reset-btn {
        width: 100%;
    }
    .imtg-settings-grid {
        grid-template-columns: 1fr;
    }
    .imtg-robots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}