﻿/* wwwroot/css/Notifications.css - ملف CSS منفصل لصفحة الإشعارات */

.notifications-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

/* Header Styles */
.page-header {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 25px;
}

    .page-header h1 {
        color: #2c3e50;
        font-weight: 600;
    }

    .page-header p {
        color: #6c757d;
        margin-bottom: 0;
    }

/* Cards Styling */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

.card-header {
    border-bottom: none;
    padding: 16px 20px;
    font-weight: 600;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #333 !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* Filter Form Styling */
#filtersForm .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

#filtersForm .form-control,
#filtersForm .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

    #filtersForm .form-control:focus,
    #filtersForm .form-select:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
        transform: translateY(-1px);
    }

/* Statistics Panel */
.stat-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-item:hover {
        background: rgba(0,0,0,0.02);
        padding-left: 8px;
        border-radius: 6px;
    }

/* Notifications Table */
.table {
    margin-bottom: 0;
}

    .table thead th {
        background: linear-gradient(135deg, #343a40, #495057);
        color: white;
        font-weight: 600;
        border: none;
        padding: 15px 12px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .table tbody tr {
        transition: all 0.3s ease;
    }

        .table tbody tr:hover {
            background: rgba(0,123,255,0.05);
            transform: translateX(3px);
        }

        .table tbody tr.table-warning {
            background: rgba(255, 193, 7, 0.1);
            border-left: 4px solid #ffc107;
        }

            .table tbody tr.table-warning:hover {
                background: rgba(255, 193, 7, 0.15);
            }

    .table td {
        padding: 12px;
        vertical-align: middle;
        border-color: #f1f3f4;
    }

/* Notification Content */
.notification-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
    line-height: 1.4;
}

.notification-message {
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Status Icons */
.notification-status-icon {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

/* Type Badges */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

    .badge i {
        margin-right: 4px;
        font-size: 0.9em;
    }

/* Action Buttons */
.btn-action {
    display: flex;
    align-items: center;
    text-align: right;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

    .btn-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        border-color: currentColor;
        text-decoration: none;
    }

.action-content {
    flex: 1;
    margin-right: 12px;
    text-align: right;
}

.action-title {
    font-weight: 600;
    margin-bottom: 2px;
    color: inherit;
}

.action-desc {
    color: rgba(0,0,0,0.6);
    font-size: 0.85em;
    line-height: 1.2;
}

/* Button Groups */
.btn-group-vertical .btn {
    border-radius: 6px;
    margin-bottom: 2px;
    padding: 6px 10px;
    font-size: 0.85em;
}

    .btn-group-vertical .btn:last-child {
        margin-bottom: 0;
    }

/* Loading and Empty States */
#loadingIndicator, #emptyState {
    padding: 40px 20px;
}

    #loadingIndicator .spinner-border {
        width: 3rem;
        height: 3rem;
    }

    #emptyState i {
        color: #dee2e6;
        margin-bottom: 20px;
    }

    #emptyState h5 {
        color: #6c757d;
        font-weight: 500;
    }

/* Alert Styling */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .notifications-container {
        padding: 15px;
    }

    .page-header {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .page-header .d-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

        .header-actions .btn {
            width: 100%;
            justify-content: center;
        }

    .table-responsive {
        font-size: 0.85em;
    }

    .table td, .table th {
        padding: 8px 6px;
    }

    .notification-title {
        font-size: 0.9em;
    }

    .notification-message {
        font-size: 0.8em;
    }

    .btn-group-vertical .btn {
        padding: 4px 6px;
        font-size: 0.75em;
    }

    .badge {
        font-size: 0.7em;
        padding: 4px 8px;
    }
}

@media (max-width: 576px) {
    .col-lg-3 {
        order: 2;
        margin-top: 20px;
    }

    .col-lg-9 {
        order: 1;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 10px;
    }

    .table tbody td {
        display: block;
        border: none;
        padding: 5px 0;
        text-align: right;
    }

        .table tbody td:before {
            content: attr(data-label) ": ";
            font-weight: bold;
            color: #495057;
        }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Custom Scrollbar */
.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Notification Type Colors */
.notification-type-info {
    color: #17a2b8;
}

.notification-type-warning {
    color: #ffc107;
}

.notification-type-success {
    color: #28a745;
}

.notification-type-error {
    color: #dc3545;
}

.notification-type-appointment {
    color: #007bff;
}

.notification-type-payment {
    color: #6c757d;
}
