/* admin.css - أنماط لوحة تحكم المسؤول */

.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.admin-title {
    font-size: 24px;
    font-weight: 700;
    color: #1877f2;
    margin-bottom: 20px;
    text-align: center;
}

/* إحصائيات سريعة */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.admin-stats .stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #dddfe2;
    transition: transform 0.2s;
}

.admin-stats .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

body.dark-mode .admin-stats .stat-card {
    background: #2d2d3a;
    border-color: #444;
    color: #eee;
}

.admin-stats .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1877f2;
    margin-bottom: 5px;
}

.admin-stats .stat-label {
    font-size: 13px;
    color: #65676b;
}

body.dark-mode .admin-stats .stat-label {
    color: #aaa;
}

.admin-tabs {
    display: flex;
    border-bottom: 2px solid #dddfe2;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.admin-tabs .tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #65676b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.admin-tabs .tab-btn:hover {
    color: #1877f2;
}

.admin-tabs .tab-btn.active {
    color: #1877f2;
    border-bottom-color: #1877f2;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

body.dark-mode .admin-table {
    background: #2d2d3a;
    border-color: #444;
}

.admin-table th,
.admin-table td {
    border: 1px solid #dddfe2;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.admin-table th {
    background: #f0f2f5;
    font-weight: 600;
}

body.dark-mode .admin-table th {
    background: #3a3a4a;
    color: #eee;
}

.admin-table td img {
    max-width: 60px;
    max-height: 40px;
    border-radius: 5px;
    object-fit: cover;
}

.action-btn-sm {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin: 2px;
    transition: background 0.2s;
}

.action-btn-sm.approve {
    background: #00a400;
    color: white;
}

.action-btn-sm.reject {
    background: #e74c3c;
    color: white;
}

.action-btn-sm.view {
    background: #1877f2;
    color: white;
}

.action-btn-sm:hover {
    filter: brightness(0.95);
}

.add-coins-btn {
    background: #42b72a;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 4px;
}

.add-coins-btn:hover {
    background: #36a420;
}

#notificationsList {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

body.dark-mode #notificationsList {
    background: #3a3a4a;
    color: #eee;
}

.notification-item {
    border-bottom: 1px solid #dddfe2;
    padding: 10px;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item .title {
    font-weight: 600;
    font-size: 14px;
}

.notification-item .message {
    font-size: 13px;
    color: #65676b;
    margin: 4px 0;
}

body.dark-mode .notification-item .message {
    color: #aaa;
}

.notification-item .date {
    font-size: 11px;
    color: #999;
}

/* رسالة عدم الصلاحية */
.unauthorized {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 12px;
    max-width: 400px;
    margin: 50px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.dark-mode .unauthorized {
    background: #2d2d3a;
    color: #eee;
}

.unauthorized i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 16px;
}

.unauthorized h2 {
    margin-bottom: 10px;
}

.unauthorized p {
    color: #65676b;
    margin-bottom: 20px;
}

.admin-login-box {
    background: #f0f2f5;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

body.dark-mode .admin-login-box {
    background: #3a3a4a;
}

.admin-login-box h3 {
    margin-bottom: 15px;
    color: #1877f2;
}

/* أنماط إضافية للوحة التحكم (مودال الخريطة) */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.map-modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
}
#locationMap {
    height: 400px;
    margin-bottom: 15px;
}

/* استجابة */
@media (max-width: 768px) {
    .admin-table {
        font-size: 12px;
    }
    .admin-table th,
    .admin-table td {
        padding: 8px 4px;
    }
    .admin-tabs .tab-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}