.imft-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;
}

.imft-header {
    text-align: center;
    margin-bottom: 40px;
}

.imft-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;
}

.imft-header p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

.imft-tool-wrapper {
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    padding: 35px;
    margin-bottom: 40px;
}

.imft-url-input-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.imft-url-input {
    flex: 1;
    padding: 18px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 60px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafcff;
}

.imft-url-input:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 4px rgba(44, 125, 160, 0.1);
}

.imft-test-btn {
    background: linear-gradient(135deg, #2c7da0, #1f5e7a);
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.imft-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 125, 160, 0.3);
}

.imft-stats-preview {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
}

.imft-stat-badge {
    background: #f1f5f9;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2c7da0;
}

.imft-loader {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 32px;
    margin-top: 30px;
}

.imft-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #2c7da0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.imft-progress {
    width: 300px;
    max-width: 80%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 20px auto 0;
    overflow: hidden;
}

.imft-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2c7da0, #60a5fa);
    animation: progress 1.5s ease-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.imft-results-section {
    background: white;
    border-radius: 32px;
    padding: 35px;
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.imft-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eef2f6;
}

.imft-actions {
    display: flex;
    gap: 12px;
}

.imft-icon-btn {
    padding: 8px 18px;
    background: #f1f5f9;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.imft-icon-btn:hover {
    background: #e2e8f0;
}

/* Overall Result Card */
.imft-result-card {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 28px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid #eef2f6;
    flex-wrap: wrap;
}

.result-icon {
    font-size: 3.5rem;
}

.result-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.result-message {
    color: #475569;
}

/* Mobile Preview */
.imft-preview-section {
    margin-bottom: 30px;
}

.imft-preview-section h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #0f172a;
}

.mobile-preview {
    max-width: 320px;
    background: #f1f5f9;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin: 0 auto;
}

.preview-header {
    background: #2c7da0;
    padding: 12px 16px;
}

.preview-url {
    color: white;
    font-size: 12px;
    text-align: center;
}

.preview-content {
    padding: 20px;
    background: white;
}

.preview-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0f172a;
}

.preview-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 15px;
}

.preview-button {
    background: #2c7da0;
    color: white;
    padding: 10px 16px;
    border-radius: 30px;
    display: inline-block;
    font-size: 14px;
    text-align: center;
}

/* Tests Grid */
.imft-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.imft-test-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid #eef2f6;
}

.test-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.test-icon {
    font-size: 1.3rem;
}

.test-name {
    flex: 1;
    font-weight: 500;
    color: #0f172a;
}

.test-status {
    font-size: 1.2rem;
}

.test-detail {
    font-size: 13px;
    color: #475569;
    padding-left: 32px;
}

.status-pass { color: #27ae60; }
.status-warning { color: #f39c12; }
.status-fail { color: #e74c3c; }

/* Recommendations */
.imft-recommendations {
    background: #f0f9ff;
    border-radius: 24px;
    padding: 24px;
    margin: 25px 0;
}

.recommendations-list {
    list-style: none;
    padding: 0;
}

.recommendations-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0f2fe;
}

/* Tips Section */
.imft-tips-section {
    margin: 30px 0 20px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.tip-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 18px;
    border-left: 4px solid #2c7da0;
}

.tip-card span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

.tip-card h5 {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.tip-card p {
    font-size: 11px;
    color: #475569;
    font-family: monospace;
    word-break: break-word;
}

.imft-disclaimer {
    background: #fef9e3;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 12px;
    color: #92400e;
    margin-top: 25px;
}

.imft-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;
}

.imft-small {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .imft-container {
        padding: 20px 15px;
    }
    .imft-header h1 {
        font-size: 1.8rem;
    }
    .imft-tool-wrapper {
        padding: 20px;
    }
    .imft-url-input-group {
        flex-direction: column;
    }
    .imft-test-btn {
        padding: 14px;
        justify-content: center;
    }
    .imft-tests-grid {
        grid-template-columns: 1fr;
    }
    .imft-result-card {
        flex-direction: column;
        text-align: center;
    }
    .tips-grid {
        grid-template-columns: 1fr;
    }
}