body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.container.minimized {
    max-width: 550px;
    padding: 15px;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-size: 1.5em;
}

.container.minimized h1 {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* شبكة للحقول - تصميم مدمج أكثر */
.form-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 2fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
    align-items: end;
}

.container.minimized .form-grid {
    gap: 10px;
    margin-bottom: 10px;
}

.form-group {
    transition: all 0.3s ease;
}

.container.minimized .form-group {
    margin-bottom: 5px;
}

/* تحسين تنسيق النص في الحقل الفارغ للزر */
.form-button label {
    visibility: hidden;
    height: 0;
    margin: 0;
}

/* تحسين المظهر للحقول */
input,
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.container.minimized input,
.container.minimized textarea {
    padding: 8px;
    font-size: 12px;
}

input:focus,
textarea:focus {
    border-color: #667eea;
    outline: none;
}

/* تحسين الزر ليتناسب مع الحقول */
.form-button button {
    width: 100%;
    padding: 10px;
    margin-top: 0;
    font-size: 13px;
    height: 42px;
    /* نفس ارتفاع الحقول */
    display: flex;
    align-items: center;
    justify-content: center;
}

.container.minimized .form-button button {
    padding: 8px;
    font-size: 11px;
    height: 36px;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.container.minimized button {
    padding: 8px;
    font-size: 12px;
}

button:hover {
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* قسم النتائج النهائية - تصميم Dashboard */
.results {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    display: none;
    animation: slideIn 0.6s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.results h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.dashboard-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 15px 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 1.5em;
    margin-bottom: 8px;
    display: block;
}

.card-label {
    font-size: 0.75em;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.card-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.card-performance {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 5px;
}

/* إزالة تنسيق الإحصائيات القديم */
.stat {
    display: none;
}

/* تحسين رسالة النجاح */
.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 15px 0;
    text-align: center;
    animation: successPulse 0.6s ease;
    border: 2px solid #b4d7c1;
    box-shadow: 0 6px 20px rgba(21, 87, 36, 0.15);
    font-weight: 600;
    font-size: 0.95em;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.08);
    }

    75% {
        transform: scale(1.02);
    }
}

/* قائمة التقارير - تصميم مدمج */
.reports-section {
    margin-top: 25px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.reports-header {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.reports-list {
    padding-right: 0;
}

.report-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.report-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.report-item:hover::before {
    transform: scaleX(1);
}

.report-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.report-url {
    font-weight: 700;
    color: #667eea;
    font-size: 0.9em;
    text-decoration: none;
    padding: 3px 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-url:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.report-time {
    font-size: 0.75em;
    color: #6c757d;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid #e9ecef;
}

.report-note {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8em;
    margin-bottom: 10px;
    border-left: 3px solid #ffc107;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.report-note::before {
    content: '📝';
    margin-left: 3px;
    font-size: 0.9em;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
    font-size: 0.75em;
}

.report-stat {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 6px 8px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.report-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.25);
}

.report-stat-label {
    font-weight: 700;
    color: #495057;
    display: block;
    margin-bottom: 2px;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.report-stat-value {
    color: #667eea;
    font-weight: 700;
    font-size: 1em;
    display: block;
    line-height: 1;
}

.no-reports {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
    font-size: 1em;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.refresh-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.25);
    position: relative;
    overflow: hidden;
}

.refresh-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.refresh-btn:hover::before {
    left: 100%;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.35);
}

.refresh-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25);
}

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

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

/* تحسين عداد النتائج المباشرة */
.live-results>div:last-child {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    font-size: 1em;
    font-weight: 600;
    color: #495057;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.live-results>div:last-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

#liveCount {
    color: #667eea;
    font-weight: 700;
    font-size: 1.3em;
    text-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: countPulse 0.5s ease;
}

@keyframes countPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 0.85em;
}

.container.minimized label {
    margin-bottom: 3px;
    font-size: 0.8em;
}

.container.minimized .form-group {
    margin-bottom: 5px;
}

/* تحسين تجاوب التصميم للشاشات الصغيرة */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-button {
        order: 4;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }

    .dashboard-card {
        padding: 12px 8px;
    }

    .card-value {
        font-size: 1.1em;
    }

    .report-stats {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 6px;
    }

    .report-item {
        padding: 10px 12px;
    }

    .report-url {
        max-width: 100%;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .container {
        margin: 10px;
        padding: 15px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    .reports-section {
        margin: 10px;
        padding: 15px;
    }

    .report-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

/* قسم التقدم */
.progress {
    margin-top: 20px;
    display: none;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.progress h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    transition: width 0.3s ease;
    width: 0%;
    border-radius: 13px;
    position: relative;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

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

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

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

#progressText {
    text-align: center;
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: 700;
    color: #667eea;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* النتائج المباشرة */
.live-results {
    margin-top: 20px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.live-header {
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    margin-bottom: 15px;
}

.live-item {
    padding: 8px 6px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    animation: newResult 0.4s ease;
    position: relative;
    overflow: hidden;
}

@keyframes newResult {
    0% {
        background: #fff3cd;
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(255, 235, 59, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: none;
    }
}

.live-item.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #b4d7c1;
}

.live-item.success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 87, 36, 0.2);
}

.live-item.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #f1b0b7;
}

.live-item.error:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(114, 28, 36, 0.2);
}

/* تحريك النتائج النهائية */
.final-results {
    animation: finalSlide 0.8s ease;
}

@keyframes finalSlide {
    0% {
        opacity: 0;
        transform: scale(0.9) rotateX(10deg);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05) rotateX(-5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
    }
}

/* قسم التحليل المتقدم */
.advanced-analysis {
    margin-top: 20px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    border: 1px solid rgba(102, 126, 234, 0.1);
    animation: slideIn 0.5s ease;
}

.analysis-header {
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.analysis-loading {
    text-align: center;
    padding: 30px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#analysisPhase {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1em;
}

/* شبكة التحليل */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analysis-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analysis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.analysis-card:hover::before {
    transform: scaleX(1);
}

.analysis-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.analysis-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
}

.analysis-card-icon {
    font-size: 1.5em;
    margin-left: 10px;
}

.analysis-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.analysis-stat {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.analysis-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.analysis-stat-label {
    font-size: 0.8em;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.analysis-stat-value {
    font-size: 1.2em;
    font-weight: 700;
    color: #667eea;
}

/* تحليل الريدايركت */
.redirect-chain {
    margin-top: 15px;
}

.redirect-item {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.redirect-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
}

.redirect-status {
    background: rgba(255, 255, 255, 0.8);
    padding: 3px 8px;
    border-radius: 15px;
    font-weight: 600;
    color: #856404;
}

.redirect-time {
    background: rgba(255, 255, 255, 0.8);
    padding: 3px 8px;
    border-radius: 15px;
    font-weight: 600;
    color: #856404;
}

/* حالات التحليل */
.analysis-success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.analysis-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.analysis-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

/* تجاوب للتحليل */
@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .analysis-card {
        padding: 15px;
    }

    .analysis-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* تفاصيل التوقيت المتقدمة */
.timing-details {
    margin-top: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.timing-row {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timing-row:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.timing-label {
    font-weight: 600;
    font-size: 0.85em;
    color: #495057;
    min-width: 180px;
    margin-left: 10px;
}

.timing-value {
    font-weight: 700;
    font-size: 0.9em;
    color: #667eea;
    min-width: 60px;
    text-align: right;
    margin-left: 15px;
}

.timing-bar {
    height: 6px;
    border-radius: 3px;
    margin-right: 10px;
    transition: all 0.3s ease;
    opacity: 0.8;
    position: relative;
    overflow: hidden;
}

.timing-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmerBar 2s infinite;
}

@keyframes shimmerBar {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.timing-row.total-timing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 15px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    font-size: 1.05em;
}

.timing-row.total-timing .timing-label,
.timing-row.total-timing .timing-value {
    color: white;
}

.timing-row.total-timing .timing-bar {
    background: rgba(255, 255, 255, 0.8) !important;
    height: 8px;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .timing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .timing-label {
        min-width: auto;
        margin-left: 0;
    }

    .timing-value {
        min-width: auto;
        margin-left: 0;
        text-align: left;
    }

    .timing-bar {
        width: 100%;
        margin-right: 0;
    }
}

/* تحسين بطاقات التحليل المتقدم */
.analysis-card[style*="grid-column: 1 / -1"] {
    border: 2px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.analysis-card[style*="grid-column: 1 / -1"]:hover {
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.analysis-card[style*="grid-column: 1 / -1"] .analysis-card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* تفاصيل الاتصال */
.connection-details {
    margin-top: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.connection-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.connection-row:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.connection-label {
    font-weight: 600;
    font-size: 0.9em;
    color: #495057;
    margin-left: 10px;
}

.connection-value {
    font-weight: 700;
    font-size: 0.9em;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

/* سجل التحليل */
.analysis-log {
    margin-top: 15px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
}

.log-entry {
    display: flex;
    align-items: flex-start;
    margin: 6px 0;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.log-entry:hover {
    background: rgba(0, 0, 0, 0.3);
    border-left-color: #667eea;
    transform: translateX(3px);
}

.log-index {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 700;
    margin-left: 10px;
    min-width: 25px;
    text-align: center;
}

.log-text {
    color: #ecf0f1;
    font-size: 0.85em;
    line-height: 1.4;
    flex: 1;
}

/* ملخص التوقيت */
.timing-summary {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.summary-label {
    font-weight: 600;
    font-size: 0.8em;
    color: #495057;
    margin-left: 8px;
}

.summary-value {
    font-weight: 700;
    font-size: 0.9em;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

/* تحسين تمرير سجل التحليل */
.analysis-log::-webkit-scrollbar {
    width: 8px;
}

.analysis-log::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.analysis-log::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.analysis-log::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* تحسين التجاوب للعناصر الجديدة */
@media (max-width: 768px) {
    .connection-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .connection-label {
        margin-left: 0;
    }

    .log-entry {
        flex-direction: column;
        gap: 8px;
    }

    .log-index {
        margin-left: 0;
        align-self: flex-start;
    }

    .timing-summary {
        grid-template-columns: 1fr;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .summary-label {
        margin-left: 0;
    }
}

/* تحسين عرض الريدايركت */
.security-badge {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 10px;
    border: 1px solid #b4d7c1;
}

.domain-badge {
    background: linear-gradient(135deg, #cce7ff 0%, #b3d9ff 100%);
    color: #0056b3;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: 10px;
    border: 1px solid #80c1ff;
}

/* ملخص الريدايركت */
.redirect-summary {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.summary-entry {
    margin: 8px 0;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    color: #856404;
    transition: all 0.3s ease;
}

.summary-entry:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

/* سجل الريدايركت */
.redirect-log {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 10px;
    color: white;
}

.redirect-log-entries {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.redirect-log-entry {
    display: flex;
    align-items: flex-start;
    margin: 4px 0;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

.redirect-log-entry:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.log-step {
    background: #667eea;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 700;
    margin-left: 8px;
    min-width: 20px;
    text-align: center;
}

.log-content {
    color: #ecf0f1;
    line-height: 1.4;
    flex: 1;
}

/* جدول الريدايركت */
.redirect-table {
    margin: 15px 0;
}

.redirect-table-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-top: 10px;
}

.redirect-table-row {
    display: grid;
    grid-template-columns: 80px 2fr 80px 80px 80px;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    align-items: center;
    transition: all 0.3s ease;
}

.redirect-table-row:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transform: translateX(3px);
}

.redirect-table-row:last-child {
    border-bottom: none;
}

.redirect-step {
    font-weight: 700;
    color: #667eea;
    text-align: center;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8em;
}

.redirect-url {
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.redirect-status {
    text-align: center;
    padding: 4px 8px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.8em;
}

.status-2xx {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b4d7c1;
}

.status-3xx {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffc107;
}

.status-4xx,
.status-5xx {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

.redirect-time {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
}

.redirect-size {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
}

/* تحسين التجاوب لجدول الريدايركت */
@media (max-width: 768px) {
    .redirect-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .redirect-url {
        white-space: normal;
        word-break: break-all;
    }

    .redirect-log-entry {
        flex-direction: column;
        gap: 5px;
    }

    .log-step {
        margin-left: 0;
        align-self: flex-start;
    }
}

/* ملخص النتائج النهائية في التحليل المتقدم */
.final-results-summary {
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.summary-metric {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.summary-metric:hover::before {
    transform: scaleX(1);
}

.summary-metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.metric-label {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.metric-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.metric-value.success {
    color: #28a745;
    text-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
}

.metric-value.error {
    color: #dc3545;
    text-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

.metric-value.fast {
    color: #17a2b8;
    text-shadow: 0 1px 3px rgba(23, 162, 184, 0.3);
}

.metric-value.slow {
    color: #ffc107;
    text-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}

.metric-value.performance {
    font-size: 1.1em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* تحسين التجاوب للملخص */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .summary-metric {
        padding: 12px;
    }

    .metric-value {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .summary-metric {
        padding: 10px;
    }

    .metric-value {
        font-size: 1.1em;
    }
}