.idac-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;
}

.idac-header {
    text-align: center;
    margin-bottom: 40px;
}

.idac-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;
}

.idac-header p {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

.idac-tool-wrapper {
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    padding: 35px;
    margin-bottom: 40px;
}

.idac-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 10px;
}

.idac-tab {
    background: none;
    border: none;
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #64748b;
    border-radius: 40px;
    transition: all 0.3s;
}

.idac-tab.active {
    background: #2c7da0;
    color: white;
}

.idac-mode-panel {
    display: none;
}

.idac-mode-panel.active {
    display: block;
}

.idac-url-input-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.idac-url-input, .idac-bulk-textarea {
    flex: 1;
    padding: 18px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafcff;
    font-family: inherit;
}

.idac-bulk-textarea {
    resize: vertical;
    line-height: 1.6;
}

.idac-url-input:focus, .idac-bulk-textarea:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 4px rgba(44, 125, 160, 0.1);
}

.idac-check-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;
}

.idac-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 125, 160, 0.3);
}

.idac-stats-preview {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
}

.idac-stat-badge {
    background: #f1f5f9;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2c7da0;
}

.idac-note {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 12px;
    text-align: right;
}

.idac-loader {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 32px;
    margin-top: 30px;
}

.idac-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); }
}

.idac-progress {
    width: 300px;
    max-width: 80%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 20px auto 0;
    overflow: hidden;
}

.idac-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%; }
}

.idac-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); }
}

.idac-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;
}

.idac-results-header h3 {
    font-size: 1.5rem;
    color: #0f172a;
}

.idac-actions {
    display: flex;
    gap: 12px;
}

.idac-icon-btn {
    padding: 8px 18px;
    background: #f1f5f9;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.idac-icon-btn:hover {
    background: #e2e8f0;
}

/* Single Result Card */
.idac-result-card {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 28px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #eef2f6;
}

.idac-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.idac-domain {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-all;
}

.idac-rating {
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
}

.rating-excellent { background: #dcfce7; color: #166534; }
.rating-good { background: #d9f99d; color: #3f6212; }
.rating-average { background: #fef9c3; color: #854d0e; }
.rating-below { background: #fed7aa; color: #9a3412; }
.rating-poor { background: #fee2e2; color: #991b1b; }

.idac-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.idac-score-item {
    text-align: center;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 20px;
}

.idac-score-value {
    display: block;
    font-size: 2.2rem;
    font-weight: bold;
    color: #2c7da0;
}

.idac-score-label {
    font-size: 12px;
    color: #64748b;
}

.idac-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eef2f6;
}

.idac-metric {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eef2f6;
}

.idac-metric-label {
    color: #64748b;
    font-size: 13px;
}

.idac-metric-value {
    font-weight: 500;
    color: #0f172a;
}

/* Bulk Results Table */
.idac-bulk-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid #eef2f6;
}

.idac-bulk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.idac-bulk-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.idac-bulk-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #eef2f6;
    color: #334155;
}

.idac-bulk-table tr:hover {
    background: #fafcff;
}

.da-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}

.da-progress-fill {
    height: 100%;
    border-radius: 10px;
    background: #2c7da0;
}

.idac-info-section {
    margin: 30px 0 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.info-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 18px;
}

.info-card h5 {
    margin-bottom: 8px;
    color: #2c7da0;
    font-size: 1rem;
}

.info-card p {
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
}

.idac-disclaimer {
    background: #fef9e3;
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 12px;
    color: #92400e;
    margin-top: 25px;
}

.idac-features {
    margin-top: 50px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 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.95rem;
}

.feature p {
    font-size: 11px;
    color: #64748b;
}

.idac-small {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .idac-container {
        padding: 20px 15px;
    }
    .idac-header h1 {
        font-size: 1.8rem;
    }
    .idac-tool-wrapper {
        padding: 20px;
    }
    .idac-url-input-group {
        flex-direction: column;
    }
    .idac-check-btn {
        padding: 14px;
        justify-content: center;
    }
    .idac-scores-grid {
        grid-template-columns: 1fr 1fr;
    }
    .idac-metrics-grid {
        grid-template-columns: 1fr;
    }
    .idac-bulk-table th, .idac-bulk-table td {
        padding: 8px 10px;
        font-size: 11px;
    }
}