/* طراحی مدرن و ریسپانسیو */
.advanced-search-pro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-pro-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-pro-title {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.search-pro-description {
    color: #7f8c8d;
    font-size: 16px;
}

.search-pro-form {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.search-pro-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-pro {
    margin-bottom: 15px;
}

.form-group-pro label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-group-pro input,
.search-pro-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group-pro input:focus,
.search-pro-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.search-pro-hint {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.search-pro-actions {
    display: flex;
    justify-content: flex-end;
}

.search-pro-reset {
    background: #f1f2f6;
    color: #2f3542;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.search-pro-reset:hover {
    background: #dfe4ea;
}

.search-pro-reset .dashicons {
    font-size: 16px;
}

/* طراحی نتایج */
.search-pro-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.search-pro-results-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    font-size: 20px;
    margin: 0;
}

.search-pro-results-title .dashicons {
    color: #3498db;
}

.search-pro-sort {
    min-width: 250px;
}

.search-pro-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* طراحی کارت دستگاه */
.device-card-pro {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border-top: 4px solid transparent;
}

.device-card-pro:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card-pro-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.device-pro-icon .dashicons {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.device-pro-title {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    flex-grow: 1;
}

.device-pro-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
}

.device-pro-status.valid {
    background: #e3f9ee;
    color: #2ed573;
}

.device-pro-status.expiring {
    background: #fff4e6;
    color: #ffa502;
}

.device-pro-status.expired {
    background: #ffebee;
    color: #ff4757;
}

.card-pro-body {
    padding: 15px;
}

.device-pro-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-label {
    color: #7f8c8d;
    font-size: 16px;
}

.meta-value {
    font-size: 14px;
    color: #2c3e50;
}

.meta-value small {
    font-size: 12px;
    color: #7f8c8d;
}

.device-pro-description {
    font-size: 13px;
    color: #34495e;
    line-height: 1.6;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.card-pro-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.device-pro-code {
    font-size: 12px;
    color: #7f8c8d;
}

.device-pro-actions {
    display: flex;
    gap: 5px;
}

.device-pro-action-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.3s;
}

.device-pro-action-btn:hover {
    background: #e0e0e0;
    color: #2c3e50;
}

/* وضعیت‌های مختلف */
.device-card-pro.valid {
    border-top-color: #2ed573;
}

.device-card-pro.expiring {
    border-top-color: #ffa502;
}

.device-card-pro.expired {
    border-top-color: #ff4757;
}

/* لودینگ و پیام‌ها */
.search-pro-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.search-pro-loading.active {
    display: flex;
}

.search-pro-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-pro-loading-text {
    color: #7f8c8d;
    font-size: 14px;
}

.search-pro-no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.search-pro-no-results.active {
    display: flex;
}

.search-pro-empty-icon .dashicons {
    font-size: 50px;
    color: #bdc3c7;
    margin-bottom: 15px;
}

.search-pro-no-results h4 {
    color: #2c3e50;
    margin: 0 0 10px;
}

.search-pro-no-results p {
    color: #7f8c8d;
    margin: 0;
    font-size: 14px;
}

/* طراحی ریسپانسیو */
@media (max-width: 768px) {
    .search-pro-fields {
        grid-template-columns: 1fr;
    }
    
    .search-pro-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-pro-sort {
        width: 100%;
    }
    
    .device-pro-meta {
        grid-template-columns: 1fr;
    }
}