/* أنماط مكونات المحتوى المشتركة */

/* البطاقات والأقسام */
.content-card {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.content-card-header {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.content-card-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.content-card-body {
    padding: 10px 0;
}

/* خلاصة المعلومات */
.info-summary {
    display: flex;
    justify-content: space-between;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-summary-item {
    text-align: center;
    padding: 0 10px;
    flex: 1;
    min-width: 120px;
}

@media (max-width: 768px) {
    .info-summary-item {
        margin-bottom: 15px;
        min-width: 40%;
    }
}

.info-summary-item h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--text-color);
}

.info-summary-item p {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 5px 0;
}

.info-summary-item small {
    display: block;
    color: #777;
    font-size: 0.8rem;
}

/* النماذج */
.content-form {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* الجداول */
.content-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.content-table th,
.content-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.content-table th {
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: bold;
    font-size: 0.9rem;
}

.content-table tr:last-child td {
    border-bottom: none;
}

.content-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
    .content-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .content-table th,
    .content-table td {
        padding: 10px;
    }
}

/* تصميم الزر الرئيسي للنموذج */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* الحاويات ذات العمودين */
.two-columns-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .two-columns-container {
        grid-template-columns: 1fr;
    }
}

/* عناصر أخرى مشتركة */
.page-title {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.section-title {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

/* الإشعارات والتنبيهات */
.notification {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
}

.notification-info {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

.notification-warning {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f39c12;
    border: 1px solid #f39c12;
}

.notification-success {
    background-color: rgba(39, 174, 96, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.notification-danger {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

/* محتوى النماذج */
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
} 