/* ========================================
   ROOT VARIABLES FOR CONSISTENT THEMING
   Define all colors, spacing, and design tokens
   ======================================== */
:root {
    /* Primary color palette for brand consistency */
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #0891b2;
    
    /* Background and surface colors for layering */
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --surface-hover: #f1f5f9;
    
    /* Text color hierarchy */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Border and shadow utilities for depth */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Border radius scale for consistent rounded corners */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Spacing scale for consistent layout */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* ========================================
   GLOBAL RESET AND BASE STYLES
   Normalize styling across browsers
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Modern system font stack for better readability */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* ========================================
   HEADER NAVIGATION STYLES
   Top navigation bar with logo and user profile
   ======================================== */
.main-header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky; /* Stick to top when scrolling */
    top: 0;
    z-index: 100; /* Ensure header stays above content */
    backdrop-filter: blur(10px); /* Subtle blur effect */
}

.header-content {
    max-width: 1400px; /* Limit content width on large screens */
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Company logo and branding */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo i {
    font-size: 1.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Main navigation menu styling */
.main-nav {
    display: flex;
    gap: var(--spacing-xl);
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease; /* Smooth hover transitions */
}

.main-nav a:hover {
    color: var(--primary-color);
    background-color: var(--background-color);
}

/* User profile section in header */
.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Notification bell with badge */
.notification-bell {
    position: relative;
    padding: var(--spacing-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.notification-bell:hover {
    color: var(--primary-color);
}

/* Notification count badge */
.notification-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* User avatar and profile info */
.user-avatar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.user-avatar:hover {
    background-color: var(--background-color);
}

.user-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar span {
    font-weight: 500;
    color: var(--text-primary);
}

/* ========================================
   DASHBOARD GRID LAYOUT
   Responsive grid system for widgets
   ======================================== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    display: grid;
    /* Auto-fit columns with minimum width of 350px */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    grid-auto-rows: max-content; /* Fit content height */
}

/* ========================================
   WELCOME WIDGET - HERO SECTION
   Full-width welcome banner with gradient
   ======================================== */
.welcome-widget {
    grid-column: 1 / -1; /* Span full width of grid */
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden; /* Hide decorative elements that extend beyond */
}

/* Decorative background pattern */
.welcome-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.welcome-widget .widget-content {
    position: relative;
    z-index: 2; /* Ensure content appears above decoration */
}

.welcome-widget h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.welcome-widget p {
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* Quick action buttons in welcome section */
.quick-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Action button base styles */
.action-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth animations */
    text-decoration: none;
    font-size: 0.9rem;
}

/* Primary action button styling */
.action-btn.primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px); /* Glass morphism effect */
}

.action-btn.primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px); /* Lift effect on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Secondary action button styling */
.action-btn.secondary {
    background: var(--surface-color);
    color: var(--primary-color);
}

.action-btn.secondary:hover {
    background: var(--surface-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   BASE WIDGET STYLES
   Common styling for all dashboard widgets
   ======================================== */
.widget {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden; /* Ensure content doesn't overflow rounded corners */
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

/* Widget hover effect */
.widget:hover {
    transform: translateY(-4px); /* Subtle lift on hover */
    box-shadow: var(--shadow-lg);
}

/* Widget header section */
.widget-header {
    padding: 1.25rem var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-color);
}

.widget-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-header i {
    color: var(--primary-color);
}

/* Widget action buttons */
.view-all-btn, .refresh-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.view-all-btn:hover, .refresh-btn:hover {
    background-color: var(--background-color);
}

/* Widget content area */
.widget-content {
    padding: var(--spacing-lg);
}

/* ========================================
   EVENTS WIDGET STYLES
   Styling for upcoming events display
   ======================================== */
.event-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.event-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Event date display circle */
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    min-width: 60px;
    height: 60px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.event-date .day {
    font-size: 1.25rem;
    line-height: 1;
}

.event-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Event details styling */
.event-details h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.event-details p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.event-details i {
    width: 12px;
    color: var(--primary-color);
}

/* ========================================
   BIRTHDAY WIDGET STYLES
   Employee birthday celebration features
   ======================================== */
.birthday-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.birthday-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.birthday-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.birthday-info {
    flex: 1; /* Take up remaining space */
}

.birthday-info h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.birthday-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Birthday wish button */
.wish-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.wish-btn:hover {
    background: #1d4ed8;
    transform: scale(1.1); /* Scale up on hover */
    box-shadow: var(--shadow-md);
}

/* ========================================
   NEW JOINERS WIDGET STYLES
   Welcome new team members section
   ======================================== */
.new-joiner-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.new-joiner-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.joiner-info h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.joiner-info p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.join-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========================================
   HOLIDAY WIDGET STYLES
   Time off request and balance display
   ======================================== */
.holiday-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--spacing-lg);
}

/* Statistical display component */
.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

/* Holiday request button */
.request-holiday-btn {
    width: 100%;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.request-holiday-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   SUPPORT WIDGET STYLES
   IT support and help desk features
   ======================================== */
.support-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
}

.support-btn:hover {
    background: var(--surface-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* System status indicator */
.support-status {
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--success-color);
}

.support-status p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
}

.text-green {
    color: var(--success-color);
}

/* ========================================
   NEWS WIDGET STYLES
   Company news and announcements
   ======================================== */
.news-item {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

/* News category badge */
.news-category {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.news-item h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.news-item p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========================================
   SOCIAL MEDIA WIDGET STYLES
   Employee advocacy and social sharing
   ======================================== */
.social-post {
    background: var(--background-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.social-post p {
    margin-bottom: var(--spacing-md);
    font-style: italic;
    color: var(--text-primary);
}

.social-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Social media sharing buttons */
.social-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-btn.linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
}

.social-btn.twitter {
    background: #1da1f2;
    color: white;
}

.social-btn.twitter:hover {
    background: #0d8bd6;
    transform: translateY(-2px);
}

/* Social engagement statistics */
.engagement-stats {
    display: flex;
    justify-content: space-around;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* ========================================
   TEAM SPOTLIGHT WIDGET STYLES
   Employee recognition and achievements
   ======================================== */
.spotlight-member {
    display: flex;
    gap: var(--spacing-md);
    background: var(--background-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.spotlight-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.spotlight-info h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.achievement {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

/* Achievement badge */
.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--warning-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

/* ========================================
   SOFTWARE FEATURES WIDGET STYLES
   New features and product updates
   ======================================== */
.feature-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--background-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    border: 2px solid var(--border-color);
}

.feature-details h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.feature-details p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Feature status badges */
.feature-status {
    display: inline-block;
    padding: var(--spacing-xs) 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.feature-status.new {
    background: var(--success-color);
    color: white;
}

.feature-status.coming-soon {
    background: var(--warning-color);
    color: white;
}

/* ========================================
   RESOURCES WIDGET STYLES
   Quick access to company resources
   ======================================== */
.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.resource-link:hover {
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.resource-link i:first-child {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.resource-link span {
    flex: 1;
    font-weight: 500;
}

.resource-link i:last-child {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========================================
   MEETING ROOMS WIDGET STYLES
   Room availability and booking system
   ======================================== */
.meeting-rooms-widget .widget-header {
    background: linear-gradient(135deg, var(--success-color), #10b981);
    color: white;
    margin: -1.25rem -1.5rem 1.5rem -1.5rem;
    padding: 1.25rem var(--spacing-lg);
}

.meeting-rooms-widget .widget-header h3,
.meeting-rooms-widget .widget-header .refresh-btn {
    color: white;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg); /* Spinning animation */
}

/* Room availability item */
.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background: var(--surface-color);
}

.room-item.available {
    border-color: var(--success-color);
    background: rgba(5, 150, 105, 0.05);
}

.room-item.busy {
    border-color: var(--warning-color);
    background: rgba(217, 119, 6, 0.05);
}

.room-info h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.room-info p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.room-status {
    text-align: right;
}

/* Room availability status badges */
.status-badge {
    display: block;
    padding: var(--spacing-xs) 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.status-badge.available {
    background: var(--success-color);
    color: white;
}

.status-badge.busy {
    background: var(--warning-color);
    color: white;
}

/* Room booking button */
.book-room-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.book-room-btn:hover:not(.disabled) {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.book-room-btn.disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Quick booking time slots */
.time-slots {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.time-slots h5 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.slot-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.time-slot-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.time-slot-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========================================
   PANEL INTERVIEW WIDGET STYLES
   Interview scheduling and management
   ======================================== */
.interview-widget .widget-header {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
    margin: -1.25rem -1.5rem 1.5rem -1.5rem;
    padding: 1.25rem var(--spacing-lg);
}

.interview-widget .widget-header h3,
.interview-widget .widget-header .view-all-btn {
    color: white;
}

.interview-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: var(--spacing-lg);
    background: var(--background-color);
}

.interview-item:last-child {
    margin-bottom: 0;
}

.interview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.candidate-info h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.candidate-info p {
    color: var(--primary-color);
    font-weight: 500;
}

.interview-time {
    text-align: right;
}

.interview-date {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.interview-duration {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.panel-details {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
}

.panel-members h5 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Panel member avatars */
.member-avatars {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.avatar-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.avatar-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.interview-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ========================================
   EMPLOYEE REFERRALS WIDGET STYLES
   Referral program management
   ======================================== */
.referral-widget .widget-header {
    background: linear-gradient(135deg, var(--danger-color), #ef4444);
    color: white;
    margin: -1.25rem -1.5rem 1.5rem -1.5rem;
    padding: 1.25rem var(--spacing-lg);
}

.referral-widget .widget-header h3,
.referral-widget .widget-header .add-referral-btn {
    color: white;
}

.add-referral-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-referral-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Referral statistics cards */
.referral-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.referral-list {
    margin-bottom: var(--spacing-lg);
}

/* Individual referral items */
.referral-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    background: var(--surface-color);
}

.referral-item:last-child {
    margin-bottom: 0;
}

.referral-info h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.referral-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

/* Referral status badges */
.referral-status {
    display: inline-block;
    padding: var(--spacing-xs) 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.referral-status.in-progress {
    background: #dbeafe;
    color: var(--primary-color);
}

.referral-status.pending {
    background: #fef3c7;
    color: var(--warning-color);
}

.referral-status.hired {
    background: #d1fae5;
    color: var(--success-color);
}

.referral-stage {
    text-align: right;
    min-width: 120px;
}

/* Progress bar for referral stages */
.progress-bar {
    width: 100px;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.success {
    background: var(--success-color);
}

.stage-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Referral bonus programs */
.referral-programs {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
}

.referral-programs h5 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.bonus-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.bonus-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0.75rem;
    background: var(--background-color);
    border-radius: var(--radius-sm);
}

.position {
    font-weight: 500;
    color: var(--text-primary);
}

.bonus-amount {
    font-weight: 700;
    color: var(--success-color);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   Breakpoints for different screen sizes
   ======================================== */

/* Tablet and smaller desktop screens */
@media (max-width: 768px) {
    .header-content {
        padding: 0 var(--spacing-md);
        flex-wrap: wrap;
        height: auto;
        padding-top: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }
    
    .main-nav {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        margin-top: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .welcome-widget {
        padding: var(--spacing-lg);
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .room-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .room-status {
        text-align: left;
        width: 100%;
    }
    
    .interview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .interview-time {
        text-align: left;
    }
    
    .member-avatars {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .interview-actions {
        flex-direction: column;
    }
    
    .interview-actions .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .referral-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .referral-stage {
        text-align: left;
        width: 100%;
    }
    
    .referral-stats {
        grid-template-columns: 1fr;
    }
}

/* Mobile phone screens */
@media (max-width: 480px) {
    .header-content {
        padding: 0 var(--spacing-sm);
    }
    
    .logo h1 {
        display: none; /* Hide company name on very small screens */
    }
    
    .user-avatar span {
        display: none; /* Hide username on mobile */
    }
    
    .dashboard-container {
        padding: var(--spacing-sm);
    }
    
    .widget-content {
        padding: var(--spacing-md);
    }
    
    .welcome-widget {
        padding: var(--spacing-md);
    }
}

/* ========================================
   ANIMATION KEYFRAMES
   Reusable animations for enhanced UX
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Apply staggered fade-in animation to all widgets */
.widget {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Staggered animation delays for smooth loading effect */
.widget:nth-child(1) { animation-delay: 0.1s; }
.widget:nth-child(2) { animation-delay: 0.2s; }
.widget:nth-child(3) { animation-delay: 0.3s; }
.widget:nth-child(4) { animation-delay: 0.4s; }
.widget:nth-child(5) { animation-delay: 0.5s; }
.widget:nth-child(6) { animation-delay: 0.6s; }
.widget:nth-child(7) { animation-delay: 0.7s; }
.widget:nth-child(8) { animation-delay: 0.8s; }
.widget:nth-child(9) { animation-delay: 0.9s; }
.widget:nth-child(10) { animation-delay: 1.0s; }
.widget:nth-child(11) { animation-delay: 1.1s; }
.widget:nth-child(12) { animation-delay: 1.2s; }
.widget:nth-child(13) { animation-delay: 1.3s; }

/* ========================================
   NOTIFICATION SYSTEM STYLES
   Toast notification styling
   ======================================== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.notification {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    font-weight: 500;
    max-width: 350px;
    word-wrap: break-word;
    animation: slideInRight 0.3s ease-out;
}

/* Notification type styling */
.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
}

.notification.info {
    border-left: 4px solid var(--info-color);
}
