@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Enhanced Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f8f6fc 0%, #e8e1f2 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: #2D1B4E;
}

.dashboard-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px;
}

/* Admin Selector - Enhanced */
.admin-selector {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 25px 35px;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(238, 90, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.admin-selector::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.admin-selector h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.employer-select-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.employer-select-wrapper select {
    padding: 14px 24px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.95);
    color: #2D1B4E;
    font-weight: 600;
    min-width: 300px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.employer-select-wrapper select:hover,
.employer-select-wrapper select:focus {
    background: white;
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    outline: none;
}

.employer-select-wrapper button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.employer-select-wrapper button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Enhanced Company Hero Section */
.company-hero {
    background: linear-gradient(135deg, #2D1B4E 0%, #6A3CB5 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(45, 27, 78, 0.3);
}

.company-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(155, 121, 199, 0.2) 0%, transparent 60%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.company-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.company-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    overflow: hidden;
}

.company-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.company-title {
    font-size: 3.3rem !important;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
}

.company-hero h1.company-title {
    font-size: 3.3rem !important;
}

.company-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

.logged-in-info {
    font-size: 0.8rem;
    opacity: 0.8;
}

.viewing-as {
    background: rgba(255,255,255,0.15);
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Main Layout */
.dashboard-layout {
    display: flex;
    gap: 30px;
}

/* Enhanced Sidebar */
.enhanced-sidebar {
    width: 340px;
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    height: fit-content;
    max-height: 85vh;
    box-shadow: 0 10px 30px rgba(45, 27, 78, 0.1);
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
}

.profile-card {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2D1B4E;
    margin-bottom: 5px;
}

.profile-email {
    font-size: 0.85rem;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f6fc 0%, #f0e6ff 100%);
    border: 2px solid #e0d4f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 60, 181, 0.2);
    border-color: #6A3CB5;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #6A3CB5;
    display: block;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav button,
.sidebar-nav a {
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    border: none;
    color: white !important;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.sidebar-nav button:hover,
.sidebar-nav a:hover {
    background: linear-gradient(135deg, #2D1B4E 0%, #6A3CB5 100%);
    color: white !important;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(106, 60, 181, 0.3);
    text-decoration: none;
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
    color: white !important;
}

/* Sidebar Messages Link with Notification */
.sidebar-messages-link {
    position: relative;
}

.sidebar-notification-dot {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.sidebar-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.dino-logo {
    width: 100px;
    height: auto;
    opacity: 0.8;
    margin-bottom: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
}

/* Quick Actions Bar */
.quick-actions {
    background: white;
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(45, 27, 78, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.greeting {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2D1B4E;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.primary-btn {
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.primary-btn i {
    color: white !important;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 60, 181, 0.3);
    color: white !important;
    text-decoration: none;
    background: linear-gradient(135deg, #2D1B4E 0%, #6A3CB5 100%);
}

.messages-btn {
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.messages-btn i {
    color: white !important;
}

.messages-btn:hover {
    background: linear-gradient(135deg, #2D1B4E 0%, #6A3CB5 100%);
    transform: translateY(-2px);
    color: white !important;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(106, 60, 181, 0.3);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #4caf50;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.insight-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(45, 27, 78, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 60, 181, 0.2);
}

.insight-card:hover::before {
    opacity: 1;
}

.insight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.insight-icon.views {
    background: linear-gradient(135deg, #48c6ef 0%, #6f86d6 100%);
    color: white;
}

.insight-icon.applications {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.insight-icon.response {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.insight-icon.conversion {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.insight-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2D1B4E;
    margin-bottom: 5px;
}

.insight-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.insight-trend {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 4px;
}

.insight-trend.down {
    color: #ff5252;
}

/* Main Tabs Section */
.tabs-container {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(45, 27, 78, 0.08);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: none;
    padding: 0;
    background: #f8f6fc;
}

.tab-button {
    background: #f8f6fc;
    border: none;
    color: #666;
    padding: 16px 32px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    flex: 1;
    text-align: center;
    border-radius: 16px 16px 0 0;
    margin: 0;
}

.tab-button::after {
    display: none;
}

.tab-button.active {
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white !important;
    box-shadow: 0 -3px 10px rgba(106, 60, 181, 0.1);
    position: relative;
    z-index: 2;
}

.tab-button:not(.active) {
    background: linear-gradient(135deg, #f0e6ff 0%, #e8dff5 100%);
    color: #9b79c7;
}

.tab-button:hover:not(.active) {
    background: linear-gradient(135deg, #e8dff5 0%, #e0d4f0 100%);
    color: #6A3CB5;
}

.tab-content {
    padding: 35px;
}

/* Enhanced Job Cards */
.job-listings {
    margin-top: 20px;
}

.job-listings-header {
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: grid;
    grid-template-columns: 100px 2fr 1.5fr 120px 140px 80px 140px 100px;
    gap: 15px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(106, 60, 181, 0.2);
}

.job-listings-header > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-listings-body {
    background: white;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(45, 27, 78, 0.08);
}

.enhanced-job-card {
    padding: 20px;
    border-bottom: 2px solid #f8f6fc;
    display: grid;
    grid-template-columns: 100px 2fr 1.5fr 120px 140px 80px 140px 100px;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    margin-top: 15px;
}

.enhanced-job-card > div {
    overflow: hidden;
}

.enhanced-job-card:hover {
    background: #fafafa;
    transform: translateX(5px);
    box-shadow: inset 4px 0 0 #6A3CB5;
}

.enhanced-job-card:last-child {
    border-bottom: none;
}

.enhanced-job-card:first-child {
    margin-top: 20px;
}

.enhanced-job-card.paused {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.enhanced-job-card.paused:hover {
    background: #ffe0b2;
}

/* Paused Badge */
.paused-badge {
    position: absolute;
    right: 20px;
    top: -12px;
    background: linear-gradient(135deg, #ff9800 0%, #ff6d00 100%);
    color: white;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
    z-index: 10;
}

.job-reference {
    font-weight: 600;
    color: #6A3CB5;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.job-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-title {
    font-weight: 600;
    color: #2D1B4E;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-title:hover {
    color: #6A3CB5;
}

.job-company {
    font-size: 0.85rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
    overflow: hidden;
}

.job-location span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-location i {
    color: #6A3CB5;
}

.job-date {
    color: #999;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.applications-toggle {
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-align: center;
}

.applications-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(106, 60, 181, 0.3);
}

.views-link {
    color: #6A3CB5;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.views-link:hover {
    color: #2D1B4E;
    text-decoration: underline;
}

.recruitment-stage {
    padding: 8px 12px;
    border: 2px solid #e0d4f0;
    border-radius: 8px;
    background: white;
    color: #2D1B4E;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recruitment-stage:hover,
.recruitment-stage:focus {
    border-color: #6A3CB5;
    box-shadow: 0 0 0 3px rgba(106, 60, 181, 0.1);
    outline: none;
}

/* Recruitment stage dropdown - base styling */
.recruitment-stage {
    padding: 8px 12px;
    border: 2px solid #e0d4f0;
    border-radius: 8px;
    background: white;
    color: #2D1B4E;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recruitment-stage:hover,
.recruitment-stage:focus {
    border-color: #6A3CB5;
    box-shadow: 0 0 0 3px rgba(106, 60, 181, 0.1);
    outline: none;
}

/* Pastel colors based on selected value */
.recruitment-stage.advertising,
select.recruitment-stage[value="advertising"] {
    background-color: #e6e0f8;
    color: #4b3f9c;
    border-color: #d4c9f0;
}

.recruitment-stage.sourcing,
select.recruitment-stage[value="sourcing"] {
    background-color: #d9f0f1;
    color: #2c6b7f;
    border-color: #b8e2e5;
}

.recruitment-stage.interviews,
select.recruitment-stage[value="interviews"] {
    background-color: #f1e6db;
    color: #7a5e25;
    border-color: #e5d2b8;
}

.recruitment-stage.offer,
select.recruitment-stage[value="offer"] {
    background-color: #e9dff3;
    color: #6a3cb5;
    border-color: #d4c2e8;
}

.recruitment-stage.filled,
select.recruitment-stage[value="filled"] {
    background-color: #d9e9d9;
    color: #3c6a3c;
    border-color: #b8d4b8;
}

.job-actions {
    display: flex;
    justify-content: center;
}

.action-menu-btn {
    background: none !important;
    border: none !important;
    color: #6A3CB5;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: none !important;
    outline: none !important;
}

.action-menu-btn:hover {
    background: none !important;
    color: #2D1B4E;
    transform: scale(1.2);
    box-shadow: none !important;
}

.action-menu-btn:focus {
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* New Application Badge */
.new-badge {
    position: absolute;
    left: 20px;
    top: -12px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(56, 239, 125, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.new-badge i {
    font-size: 0.8rem;
}

/* Status Tags */
.job-status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-status-tag.paused {
    background: #ff9800;
    color: white;
}

.job-status-tag.filled {
    background: #4caf50;
    color: white;
}

.job-status-tag.deleted {
    background: #f44336;
    color: white;
}

.job-status-tag.expired {
    background: #9e9e9e;
    color: white;
}

/* Expired Status Tags (shown in Status column for expired jobs) */
.expired-status-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
}

.expired-status-tag.filled {
    background: #d9e9d9;
    color: #3c6a3c;
    border: 2px solid #b8d4b8;
}

.expired-status-tag.deleted {
    background: #f7d6d6;
    color: #a83232;
    border: 2px solid #ecb2b2;
}

.expired-status-tag.expired {
    background: #e8e8e8;
    color: #666666;
    border: 2px solid #d0d0d0;
}

/* Applications Container */
.applications-container {
    background: #f8f6fc;
    border: 2px solid #e0d4f0;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-filter-buttons {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.app-filter-buttons button {
    background: white;
    border: 2px solid #e0d4f0;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    color: #2D1B4E;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.app-filter-buttons button.active,
.app-filter-buttons button:hover {
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(106, 60, 181, 0.3);
}

/* Enhanced Application Cards - Updated for WPJM fields */
.application-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 1fr 150px 2fr;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(45, 27, 78, 0.05);
}

.application-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(106, 60, 181, 0.15);
}

.applicant-name {
    font-weight: 600;
    color: #2D1B4E;
    font-size: 0.95rem;
}

.applicant-email {
    color: #666;
    font-size: 0.85rem;
}

.applicant-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.85rem;
}

.applicant-location i {
    color: #6A3CB5;
}

.applicant-phone {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.applicant-phone i {
    color: #6A3CB5;
}

.application-status select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #e0d4f0;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    background: white;
}

.application-status select:hover,
.application-status select:focus {
    border-color: #6A3CB5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 60, 181, 0.1);
}

/* Status-based styling for application dropdowns */
.application-status select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #e0d4f0;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    background: white;
}

.application-status select:hover,
.application-status select:focus {
    border-color: #6A3CB5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 60, 181, 0.1);
}

/* Pastel status colors */
.application-status select.status-new,
.application-status select[value="new"] {
    background: #e6e0f8;
    color: #4b3f9c;
    border-color: #d4c9f0;
}

.application-status select.status-under_review,
.application-status select[value="under_review"] {
    background: #d9f0f1;
    color: #2c6b7f;
    border-color: #b8e2e5;
}

.application-status select.status-shortlisted,
.application-status select[value="shortlisted"] {
    background: #f1e6db;
    color: #7a5e25;
    border-color: #e5d2b8;
}

.application-status select.status-invited,
.application-status select[value="invited"] {
    background: #e9dff3;
    color: #6a3cb5;
    border-color: #d4c2e8;
}

.application-status select.status-cv_sent,
.application-status select[value="cv_sent"] {
    background: #d9e9d9;
    color: #3c6a3c;
    border-color: #b8d4b8;
}

.application-status select.status-hired,
.application-status select[value="hired"] {
    background: #b9d3b9;
    color: #1d4d1d;
    border-color: #8fb88f;
}

.application-status select.status-not_suitable,
.application-status select[value="not_suitable"] {
    background: #f7d6d6;
    color: #a83232;
    border-color: #ecb2b2;
}

.application-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.app-action-btn {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    gap: 6px;
}

.app-action-btn.view-applicant {
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white;
}

.app-action-btn.view-applicant:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(106, 60, 181, 0.3);
}

.app-action-btn.neuromatch {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.app-action-btn.neuromatch:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(56, 239, 125, 0.3);
}

/* Fields Display Section */
.applicant-fields-display {
    background: #f0e6ff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #2D1B4E;
}

.field-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.field-label {
    font-weight: 600;
    min-width: 120px;
    color: #6A3CB5;
}

.field-value {
    flex: 1;
    word-break: break-word;
}

.cover-letter-preview {
    background: white;
    border: 1px solid #e0d4f0;
    padding: 10px;
    border-radius: 6px;
    margin-top: 5px;
    max-height: 100px;
    overflow-y: auto;
    font-style: italic;
    color: #666;
}

/* Action Menu */
.action-dropdown {
    position: absolute;
    background: white;
    border: 2px solid #6A3CB5;
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(45, 27, 78, 0.3);
    display: none;
    z-index: 1000;
    padding: 8px 0;
    overflow: hidden;
}

.action-dropdown.active {
    display: block;
}

.action-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #2D1B4E;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.action-dropdown a:hover {
    background: #f8f6fc;
    color: #6A3CB5;
    padding-left: 25px;
}

.action-dropdown a.delete-job {
    color: #d32f2f;
}

.action-dropdown a.delete-job:hover {
    background: #ffebee;
    color: #b71c1c;
}

.action-dropdown a i {
    margin-right: 8px;
    width: 16px;
    display: inline-block;
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 4rem;
    color: #e0d4f0;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D1B4E;
    margin-bottom: 10px;
}

.empty-state-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
}

.empty-state-button {
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.empty-state-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 60, 181, 0.3);
    color: white;
    text-decoration: none;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 27, 78, 0.9);
    backdrop-filter: blur(8px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(45, 27, 78, 0.3);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D1B4E;
    margin-bottom: 15px;
}

.modal-message {
    font-size: 1rem;
    color: #5A4B6B;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    font-family: 'Poppins', sans-serif;
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white;
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 60, 181, 0.3);
}

.modal-btn-cancel {
    background: #f0f0f0;
    color: #2D1B4E;
}

.modal-btn-cancel:hover {
    background: #e0e0e0;
}

.modal-btn-danger {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    color: white;
}

.modal-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
}

/* Success notification */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 100000;
    display: none;
    box-shadow: 0 8px 25px rgba(56, 239, 125, 0.3);
    animation: slideInRight 0.3s ease;
}

.success-notification.active {
    display: block;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Viewers Modal - Enhanced */
#viewersModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 27, 78, 0.9);
    backdrop-filter: blur(8px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#viewersModal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

#viewersModal > div {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(45, 27, 78, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#viewersModal.active > div {
    transform: scale(1);
}

#closeViewersModal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#closeViewersModal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(106, 60, 181, 0.3);
}

.viewers-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.viewers-stats .stat-box {
    background: linear-gradient(135deg, #f8f6fc 0%, #f0e6ff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e0d4f0;
    text-align: center;
    transition: all 0.3s ease;
}

.viewers-stats .stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 60, 181, 0.2);
    border-color: #6A3CB5;
}

.viewers-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #6A3CB5;
    display: block;
    margin-bottom: 5px;
}

.viewers-stats .stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.viewer-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.viewer-card:hover {
    border-color: #6A3CB5;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(106, 60, 181, 0.1);
}

.viewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.viewer-info {
    flex: 1;
}

.viewer-name {
    font-weight: 600;
    color: #2D1B4E;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.viewer-details {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.viewer-badge {
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 10px;
    display: inline-block;
}

.viewer-badge.anonymous {
    background: linear-gradient(135deg, #999 0%, #666 100%);
}

.viewer-actions {
    display: flex;
    gap: 10px;
}

.viewer-actions a,
.viewer-actions button {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.viewer-actions a {
    background: linear-gradient(135deg, #6A3CB5 0%, #9b79c7 100%);
    color: white;
    border: none;
}

.viewer-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(106, 60, 181, 0.3);
}

.viewer-actions button {
    background: white;
    color: #6A3CB5;
    border: 2px solid #6A3CB5;
}

.viewer-actions button:hover {
    background: #f8f6fc;
}

/* Loading state */
.applications-loading {
    text-align: center;
    font-style: italic;
    color: #6A3CB5;
    margin: 30px 0;
    font-size: 1rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .enhanced-sidebar {
        width: 100%;
        position: relative;
        max-height: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .company-hero {
        padding: 20px;
    }
    
    .company-content {
        grid-template-columns: 1fr;
    }
}

/* Extra large screens (1920px and up) */
@media (min-width: 1920px) {
    .dashboard-wrapper {
        max-width: 1800px;
    }
}

/* Large screens (1440px to 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .dashboard-wrapper {
        max-width: 1600px;
    }
}

/* Medium screens (1280px to 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .dashboard-wrapper {
        max-width: 1200px;
    }
}

/* Small laptops (1024px to 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .dashboard-wrapper {
        max-width: 100%;
        padding: 20px;
    }
    
    .enhanced-sidebar {
        width: 280px;
    }
    
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Additional responsive styles for sidebar footer */
.sidebar-footer .logout-btn {
    background: linear-gradient(135deg, #2D1B4E 0%, #6A3CB5 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-footer .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 27, 78, 0.3);
}