/* =========================================
   تنسيقات صفحة القرارات الاحترافية (decisions.css)
   ========================================= */

/* شريط الأدوات (البحث والفلترة) */
.decisions-toolbar {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
    border: 1px solid #f0f0f0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-wrapper {
    position: relative;
    flex: 2;
}

.search-wrapper .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.1rem;
}

.search-wrapper input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color, #1a5276);
    box-shadow: 0 0 0 4px rgba(26, 82, 118, 0.1);
    background: #fff;
}

.filter-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filter-wrapper .filter-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color, #1a5276);
    z-index: 10;
}

.filter-wrapper select {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') no-repeat left 20px center;
}

/* شبكة القرارات */
.decisions-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* بطاقة القرار (Card) */
.decision-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.decision-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: var(--secondary-color, #d35400);
}

.decision-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* أيقونة المطرقة */
.decision-icon {
    width: 70px;
    height: 70px;
    background: rgba(211, 84, 0, 0.08);
    color: var(--secondary-color, #d35400);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

/* معلومات القرار */
.decision-info {
    flex: 1;
}

.decision-info h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    color: #2c3e50;
    line-height: 1.5;
}

.decision-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.decision-number {
    font-weight: 800;
    color: var(--primary-color, #1a5276);
    background: rgba(26, 82, 118, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.decision-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* زر التحميل */
.decision-action-btn {
    background: var(--bg-light, #f8f9fa);
    color: var(--primary-color, #1a5276);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.decision-action-btn:hover {
    background: var(--primary-color, #1a5276);
    color: #ffffff;
    border-color: var(--primary-color, #1a5276);
    transform: translateY(-2px);
}

/* شاشات الموبايل */
@media (max-width: 768px) {
    .decisions-toolbar {
        flex-direction: column;
        padding: 20px;
    }
    .decision-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 15px;
    }
    .decision-meta {
        justify-content: center;
    }
    .decision-action-btn {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    .decision-card::before {
        width: 100%;
        height: 5px;
    }
}