/* MN HRIS - Dashboard Specific Styles - Glassmorphism Edition */

/* Quick Actions - Glass Cards */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--glass-surface);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-blue);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.action-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
}

.action-card:hover i {
    transform: scale(1.1);
    color: var(--secondary-blue);
}

.action-card span {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Recent Activity List - Modern Timeline */
.activity-list {
    list-style: none;
    position: relative;
}

.activity-list::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-blue), var(--accent-blue));
    opacity: 0.3;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(37, 99, 235, 0.02);
    border-radius: var(--radius-sm);
    padding-left: var(--spacing-sm);
}

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

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1;
}

.activity-icon:hover {
    transform: scale(1.1);
}

.activity-icon.add { 
    background: linear-gradient(135deg, #d1fae5, #a7f3d0); 
    color: #065f46;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}
.activity-icon.update { 
    background: linear-gradient(135deg, #dbeafe, #bfdbfe); 
    color: #1e40af;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.activity-icon.delete { 
    background: linear-gradient(135deg, #fee2e2, #fecaca); 
    color: #991b1b;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.activity-content span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Days Left Badge */
.days-left {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.days-left.critical {
    background: #fee2e2;
    color: #991b1b;
}

.days-left.warning {
    background: #fef3c7;
    color: #92400e;
}

.days-left.safe {
    background: #d1fae5;
    color: #065f46;
}

/* Department Grid - Glass Cards */
.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.department-item {
    padding: var(--spacing-md);
    background: var(--glass-surface);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.department-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.department-item:hover::before {
    transform: scaleX(1);
}

.department-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.dept-bar {
    height: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    background: rgba(37, 99, 235, 0.1);
}

.dept-bar-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.8s ease;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.dept-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dept-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.dept-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Department Badges - Modern */
.dept-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--glass-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dept-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dept-badge.dept-engineering { 
    background: linear-gradient(135deg, #e0f2fe, #bae6fd); 
    color: #0369a1;
    border-color: rgba(3, 105, 161, 0.2);
}
.dept-badge.dept-hr { 
    background: linear-gradient(135deg, #fce7f3, #fbcfe8); 
    color: #be185d;
    border-color: rgba(190, 24, 93, 0.2);
}
.dept-badge.dept-it { 
    background: linear-gradient(135deg, #dbeafe, #bfdbfe); 
    color: #1e40af;
    border-color: rgba(30, 64, 175, 0.2);
}
.dept-badge.dept-finance { 
    background: linear-gradient(135deg, #d1fae5, #a7f3d0); 
    color: #065f46;
    border-color: rgba(6, 95, 70, 0.2);
}
.dept-badge.dept-operations { 
    background: linear-gradient(135deg, #fef3c7, #fde68a); 
    color: #92400e;
    border-color: rgba(146, 64, 14, 0.2);
}
.dept-badge.dept-marketing { 
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe); 
    color: #3730a3;
    border-color: rgba(55, 48, 163, 0.2);
}
.dept-badge.dept-sales { 
    background: linear-gradient(135deg, #fce7f3, #fbcfe8); 
    color: #be185d;
    border-color: rgba(190, 24, 93, 0.2);
}
.dept-badge.dept-admin { 
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff); 
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.2);
}

/* Status Badges - Enterprise */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--glass-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-badge.regular { 
    background: linear-gradient(135deg, #d1fae5, #a7f3d0); 
    color: #065f46;
    border-color: rgba(6, 95, 70, 0.2);
}
.status-badge.probationary { 
    background: linear-gradient(135deg, #fef3c7, #fde68a); 
    color: #92400e;
    border-color: rgba(146, 64, 14, 0.2);
}
.status-badge.contractual { 
    background: linear-gradient(135deg, #e0f2fe, #bae6fd); 
    color: #0369a1;
    border-color: rgba(3, 105, 161, 0.2);
}
.status-badge.project-based { 
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe); 
    color: #3730a3;
    border-color: rgba(55, 48, 163, 0.2);
}
.status-badge.resigned { 
    background: linear-gradient(135deg, #fee2e2, #fecaca); 
    color: var(--status-resigned);
    border-color: rgba(156, 163, 175, 0.2);
}
.status-badge.terminated { 
    background: linear-gradient(135deg, #fee2e2, #fecaca); 
    color: var(--status-terminated);
    border-color: rgba(239, 68, 68, 0.2);
}
.status-badge.retired { 
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb); 
    color: var(--status-retired);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Button styles */
.btn-sm {
    padding: 6px 10px;
    font-size: 0.75rem;
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-info {
    background: #3b82f6;
    color: white;
}

/* Notification Bell Styles */
.notification-container {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-dark);
    padding: 8px;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.notification-btn.has-notifications {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.notification-badge.show {
    display: block;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 420px;
    max-height: 550px;
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.notification-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

.notification-tabs {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.notif-tab {
    background: #f1f5f9;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    color: var(--text-light);
}

.notif-tab:hover {
    background: #e2e8f0;
}

.notif-tab.active {
    background: var(--primary-color);
    color: white;
}

.notification-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.notification-item:hover {
    background: #f8fafc;
}

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

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-icon.birthday {
    background: #fce7f3;
}

.notification-icon.medical {
    background: #fee2e2;
    color: #991b1b;
}

.notification-icon.training {
    background: #fef3c7;
    color: #92400e;
}

.notification-icon.promotion {
    background: #d1fae5;
    color: #065f46;
}

.notification-icon.medical-expired,
.notification-icon.training-expired {
    background: #fee2e2;
    color: #dc2626;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 2px;
}

.notification-details {
    font-size: 0.75rem;
    color: var(--text-light);
}

.notification-priority {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.notification-priority.high {
    background: #fee2e2;
    color: #991b1b;
}

.notification-priority.medium {
    background: #fef3c7;
    color: #92400e;
}

.notification-priority.normal {
    background: #e2e8f0;
    color: #475569;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.empty-notifications {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-notifications i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.empty-notifications p {
    font-size: 0.9rem;
}

/* Responsive notification dropdown */
@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
    }
}
