/* error_inverter.css - التنسيقات والتحريكات الخاصة بدليل أخطاء الإنفرتر */
:root {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --primary-accent: #0f172a;
    --solar-accent: #f59e0b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --dropdown-bg: #f1f5f9;
    --dropdown-text: #0f172a;
    --error-color: #ef4444;
    --reason-color: #f59e0b;
    --solution-color: #10b981;
}

.diagnostic-container {
    font-family: 'Cairo', sans-serif;
    background-color: transparent;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 120px);
    direction: rtl;
}

/* الحاوية الرئيسية للتطبيق */
.diagnostic-panel {
    width: 100%;
    max-width: 700px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 2rem; /* 32px */
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
    padding: 40px 30px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* تأثيرات خلفية زخرفية (Glassmorphism) */
.diagnostic-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(245, 158, 11, 0.15); /* لون ذهبي خفيف */
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 2px dashed var(--card-border);
    padding-bottom: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.icon-header {
    font-size: 40px;
    line-height: 1;
    margin-top: 5px;
    filter: drop-shadow(0 4px 6px rgba(245, 158, 11, 0.3));
}

.titles-container h2 {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.main-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-accent);
    letter-spacing: -0.5px;
}

.sub-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--solar-accent);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 10;
}

.form-label {
    display: block;
    font-weight: 800;
    color: var(--primary-accent);
    margin-bottom: 12px;
    font-size: 14px;
}

.form-select {
    width: 100%;
    padding: 16px 20px;
    border-radius: 1rem;
    border: 2px solid var(--card-border);
    background-color: var(--dropdown-bg);
    color: var(--dropdown-text);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    background-size: 20px;
    outline: none;
}

.form-select:focus {
    border-color: var(--solar-accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.btn-analyze {
    width: 100%;
    padding: 16px;
    background: var(--primary-accent);
    color: #ffffff;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 900;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
    margin-top: 10px;
}

.btn-analyze:hover {
    transform: translateY(-3px);
    background: var(--solar-accent);
    box-shadow: 0 15px 25px -5px rgba(245, 158, 11, 0.4);
}

.report-container {
    display: none;
    margin-top: 35px;
    animation: inv_slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}

@keyframes inv_slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.report-title {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 15px;
    border-bottom: 2px dashed var(--card-border);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    border-right: 6px solid var(--solar-accent);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03), inset 0 0 0 1px var(--card-border);
}

.report-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    font-size: 12px;
    font-weight: 900;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--card-border);
}

.badge-error { color: var(--error-color); border-right: 4px solid var(--error-color); }
.badge-reason { color: var(--reason-color); border-right: 4px solid var(--reason-color); }
.badge-solution { color: var(--solution-color); border-right: 4px solid var(--solution-color); }

.report-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-main);
    margin: 0;
    padding-right: 15px;
    font-weight: 700;
}

/* تحسينات الموبايل */
@media (max-width: 600px) {
    .diagnostic-panel { padding: 25px 20px; border-radius: 1.5rem; }
    .main-title { font-size: 20px; }
    .form-select, .btn-analyze { font-size: 14px; padding: 14px 16px; }
}