/* Notification Dropdown Styles - DHA Bahawalpur */

/* Notification Container */
.notifications {
    position: relative;
    display: inline-block;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 999990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 450px;
    overflow: hidden;
}

/* Responsive positioning to prevent overflow */
@media (max-width: 425px) {
    .notification-dropdown {
        position: fixed;
        top: 80px !important;
        right: 15px !important;
        left: 15px !important;
        width: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 375px) {
    .notification-dropdown {
        top: 75px !important;
        right: 10px !important;
        left: 10px !important;
    }
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Notification Header */
.notification-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px 12px 0 0;
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-header h3::before {
    content: "🔔";
    font-size: 16px;
}

.mark-all-read {
    background: linear-gradient(135deg, #f5c02c, #f5c02c);
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(234, 85, 71, 0.3);
}

.mark-all-read:hover {
    background: linear-gradient(135deg, #d94a3e, #e6b329);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(234, 85, 71, 0.4);
}

/* Notification List */
.notification-list {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Notification Items */
.notification-item {
    padding: 16px 24px;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    background: white;
}

.notification-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.notification-item.unread {
    background: linear-gradient(135deg, rgba(234, 85, 71, 0.02) 0%, rgba(253, 198, 44, 0.02) 100%);
    border-left: 4px solid #f5c02c;
}

.notification-item.unread::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #f5c02c, #f5c02c);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.notification-item:last-child {
    border-bottom: none;
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
}

.notification-icon.success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
}

.notification-icon.info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.notification-icon.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.notification-message {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* Notification Footer */
.notification-footer {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0 0 12px 12px;
}

.view-all-notifications {
    color: #f5c02c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-block;
    background: transparent;
}

.view-all-notifications:hover {
    background: linear-gradient(135deg, rgba(234, 85, 71, 0.08), rgba(253, 198, 44, 0.08));
    color: #d94a3e;
    transform: translateY(-1px);
}

/* Notification Badge Animation */
.notification-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Empty State */
.notification-empty {
    padding: 40px 24px;
    text-align: center;
    color: #94a3b8;
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.notification-empty h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-dropdown {
        width: calc(100vw - 40px);
        max-width: 350px;
        right: -10px;
        left: auto;
        transform-origin: top right;
    }
    
    .notification-header,
    .notification-item,
    .notification-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - 30px);
        max-width: 320px;
        right: -15px;
        top: calc(100% + 8px);
    }
    
    .notification-header {
        padding: 16px 20px 12px;
    }
    
    .notification-header h3 {
        font-size: 16px;
    }
    
    .mark-all-read {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .notification-item {
        padding: 14px 20px;
        gap: 12px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
    
    .notification-time {
        font-size: 11px;
    }
    
    .notification-footer {
        padding: 12px 20px;
    }
    
    .view-all-notifications {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 375px) {
    .notification-dropdown {
        width: calc(100vw - 20px);
        right: -10px;
    }
    
    .notification-header,
    .notification-item,
    .notification-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Mobile Responsive Styles */

/* Tablet and Small Desktop */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 350px;
        right: -10px;
    }
}

/* Large Mobile Devices */
@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - 30px);
        max-width: 340px;
        right: -15px;
        top: calc(100% + 8px);
    }
    
    .notification-header {
        padding: 16px 20px 12px;
    }
    
    .notification-header h3 {
        font-size: 16px;
    }
    
    .mark-all-read {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .notification-item {
        padding: 14px 20px;
        gap: 12px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
    
    .notification-time {
        font-size: 11px;
    }
    
    .notification-footer {
        padding: 12px 20px;
    }
    
    .view-all-notifications {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Small Mobile Devices (425px and below) */
@media (max-width: 425px) {
    .notification-dropdown {
        position: fixed !important;
        top: 70px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: none !important;
        transform-origin: top center !important;
    }
    
    .notification-dropdown.show {
        transform: translateY(0) scale(1) !important;
    }
    
    .notification-list {
        max-height: calc(100vh - 200px);
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 375px) {
    .notification-dropdown {
        top: 65px !important;
        right: 8px !important;
        left: 8px !important;
    }
    
    .notification-header,
    .notification-item,
    .notification-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .notification-header h3 {
        font-size: 15px;
    }
    
    .mark-all-read {
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* Very Small Devices */
@media (max-width: 320px) {
    .notification-dropdown {
        top: 60px !important;
        right: 5px !important;
        left: 5px !important;
    }
    
    .notification-item {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .notification-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .notification-title {
        font-size: 12px;
    }
    
    .notification-message {
        font-size: 11px;
    }
} 