/* استایل‌های اصلی SmartSeminars */
.smart-seminars-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 15px 0;
    text-align: center;
}

.smart-seminars-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin: 15px 0;
    text-align: center;
}

.smart-seminars-warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
    margin: 15px 0;
    text-align: center;
}

/* استایل‌های لایسنس */
.masterstudy-licenses-section {
    margin: 30px 0;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.masterstudy-licenses-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.masterstudy-licenses-title {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.masterstudy-licenses-description {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95em;
}

.masterstudy-licenses-grid {
    background: white;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    border: 1px solid #e0e0e0;
    border-top: none;
    display: grid;
    gap: 20px;
}

.license-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.license-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.license-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.license-course-name {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.license-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-verified {
    background: #d4edda;
    color: #155724;
}

.license-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.meta-label {
    color: #666;
    font-weight: 500;
}

.meta-value {
    color: #333;
    font-weight: 600;
}

.license-code-container {
    margin: 15px 0;
}

.license-code-label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 0.9em;
}

.license-code-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.license-code-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    direction: ltr;
    text-align: center;
}

.copy-license-btn {
    padding: 10px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
    white-space: nowrap;
}

.copy-license-btn:hover {
    background: #2980b9;
}

.copy-license-btn.copied {
    background: #27ae60;
}

.license-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.license-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.btn-primary {
    background: #2ecc71;
    color: white;
}

.btn-primary:hover {
    background: #27ae60;
}

.license-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-right: 4px solid #3498db;
}

.license-instructions h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.instructions-list {
    margin: 0;
    padding-right: 20px;
    color: #555;
    line-height: 1.8;
}

.instructions-list li {
    margin-bottom: 8px;
}

/* استایل‌های کارت پزشکی */
.medical-card-upload-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.medical-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.medical-card-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.current-card-status {
    margin-bottom: 30px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e0e0e0;
}

.status-card.verified {
    border-right: 4px solid #27ae60;
}

.status-card.rejected {
    border-right: 4px solid #e74c3c;
}

.status-card.pending {
    border-right: 4px solid #f39c12;
}

.status-icon {
    font-size: 32px;
}

.status-content h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.status-content p {
    margin: 0 0 10px 0;
    color: #555;
}

.view-card-btn {
    background: #3498db;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    display: inline-block;
}

.upload-form-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.upload-form-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3498db;
    outline: none;
}

.help-text {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.submit-btn {
    background: #2ecc71;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #27ae60;
}

.medical-card-message {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    text-align: center;
}

.medical-card-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.medical-card-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .masterstudy-licenses-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .license-meta {
        grid-template-columns: 1fr;
    }
    
    .license-code-wrapper {
        flex-direction: column;
    }
    
    .license-actions {
        flex-direction: column;
    }
    
    .license-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .status-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .medical-card-upload-container {
        padding: 15px;
    }
    
    .upload-form-section {
        padding: 20px;
    }
}

/* پشتیبانی RTL */
.rtl .masterstudy-licenses-section {
    direction: rtl;
}

.rtl .license-code-input {
    direction: ltr;
    text-align: center;
}

.rtl .instructions-list {
    padding-right: 20px;
    padding-left: 0;
}

.rtl .status-card {
    border-right: none;
    border-left: 4px solid;
}

.rtl .license-instructions {
    border-right: none;
    border-left: 4px solid #3498db;
}