/* Custom CSS for مركز الموارد والخبرات المشتركة */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* RTL specific adjustments */
.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Card styling */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    font-weight: bold;
}

/* Resource cards */
.resource-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.resource-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* User profile */
.profile-header {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 15px;
}

/* Dashboard stats */
.stat-card {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
}

.stat-card.primary {
    background-color: #007bff;
}

.stat-card.success {
    background-color: #28a745;
}

.stat-card.warning {
    background-color: #ffc107;
    color: #212529;
}

.stat-card.danger {
    background-color: #dc3545;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
}

.stat-card .stat-title {
    text-transform: uppercase;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Request status badges */
.status-new {
    background-color: #17a2b8;
}

.status-approved {
    background-color: #28a745;
}

.status-rejected {
    background-color: #dc3545;
}

.status-completed {
    background-color: #6c757d;
}

/* File list */
.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.file-icon {
    font-size: 24px;
    margin-left: 15px;
    color: #6c757d;
}

.file-icon.pdf {
    color: #dc3545;
}

.file-icon.doc {
    color: #007bff;
}

.file-icon.ppt {
    color: #fd7e14;
}

.file-icon.xls {
    color: #28a745;
}

.file-icon.img {
    color: #6f42c1;
}

/* Search form */
.search-form {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    margin-top: 50px;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-header {
        text-align: center;
    }
    
    .profile-avatar {
        margin: 0 auto 15px;
    }
}
