/* استایل برای شورت‌کد کد نمایندگی استیل البرز */

.steel-alborz-simple {
    padding: 12px 15px;
    margin: 15px 0;
    border-right: 4px solid #0073aa;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.steel-alborz-simple:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.steel-alborz-simple .agent-code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #0073aa;
    font-size: 16px;
    letter-spacing: 1px;
    word-break: break-all;
    /* برای نمایش کدهای طولانی */
}

.steel-alborz-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%;
    flex-wrap: wrap;
}

.steel-alborz-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.steel-alborz-badge .badge-label {
    opacity: 0.9;
    font-size: 13px;
    white-space: nowrap;
}

.steel-alborz-badge .badge-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steel-alborz-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 400px;
    /* افزایش عرض برای کدهای طولانی */
    margin: 25px auto;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.steel-alborz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.steel-alborz-card .card-header {
    background: linear-gradient(135deg, #005a87, #0073aa);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.steel-alborz-card .card-header:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
}

.steel-alborz-card .card-header i {
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.steel-alborz-card .card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.steel-alborz-card .card-body {
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.steel-alborz-card .agent-code-display {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    /* کاهش سایز برای کدهای طولانی */
    font-weight: bold;
    color: #0073aa;
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    letter-spacing: 1px;
    border: 2px dashed #c5d9ed;
    position: relative;
    overflow: hidden;
    word-break: break-all;
    /* شکستن کدهای طولانی */
    max-height: 200px;
    overflow-y: auto;
}

.steel-alborz-card .agent-code-display:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2s infinite;
}

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

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

.steel-alborz-card .card-note {
    color: #666;
    font-size: 13px;
    display: block;
    margin-top: 10px;
    font-style: italic;
}

/* استایل برای فیلد کارشناس */
.expert-field-display {
    padding: 10px 15px;
    margin: 10px 0;
    border-right: 3px solid #46b450;
    background: #f8fff8;
    border-radius: 6px;
    display: inline-block;
    max-width: 100%;
}

.expert-field-display .expert-name {
    font-weight: 600;
    color: #2c662d;
    font-size: 15px;
    word-break: break-word;
}

/* استایل برای آیکون‌ها */
.fas {
    font-family: 'Font Awesome 6 Free' !important;
}

/* استایل ریسپانسیو */
@media (max-width: 768px) {
    .steel-alborz-card {
        max-width: 100%;
        margin: 15px 0;
    }

    .steel-alborz-card .agent-code-display {
        font-size: 18px;
        padding: 12px;
    }

    .steel-alborz-badge {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 15px;
    }

    .steel-alborz-badge .badge-code {
        font-size: 12px;
        max-width: 150px;
    }

    .steel-alborz-simple .agent-code {
        font-size: 14px;
    }
}

/* استایل برای صفحه‌های تاریک */
@media (prefers-color-scheme: dark) {
    .steel-alborz-simple {
        background: linear-gradient(135deg, #2d3748, #4a5568);
        border-right-color: #63b3ed;
    }

    .steel-alborz-simple .agent-code {
        color: #63b3ed;
    }

    .steel-alborz-card {
        background: #2d3748;
        border-color: #4a5568;
    }

    .steel-alborz-card .agent-code-display {
        background: linear-gradient(135deg, #4a5568, #2d3748);
        border-color: #718096;
        color: #90cdf4;
    }

    .steel-alborz-card .card-note {
        color: #a0aec0;
    }

    .expert-field-display {
        background: #2d3748;
        border-right-color: #68d391;
    }

    .expert-field-display .expert-name {
        color: #68d391;
    }
}

/* انیمیشن برای نمایش */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.steel-alborz-card,
.steel-alborz-badge,
.steel-alborz-simple {
    animation: fadeInUp 0.5s ease;
}

/* استایل برای کدهای طولانی در لیست کاربران */
.agent-code-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #bbdefb;
    font-family: 'Courier New', monospace;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}