/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility: Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
    outline: 3px solid #6366f1;
    outline-offset: 2px;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
    align-items: center;
}

.user-greeting {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-greeting::before {
    content: "👋";
    font-size: 1rem;
}

.btn-login {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
}

.btn-signup {
    padding: 0.5rem 1.5rem;
    border: none;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-opacity='0.1'%3E%3Cpolygon fill='%23ffffff' points='50 0 60 40 100 50 60 60 50 100 40 60 0 50 40 40'/%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    100% { transform: translateX(-100px) translateY(-100px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
    color: white;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 15px;
    padding: 0.75rem;
    box-shadow: var(--shadow-xl);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.search-field:focus-within {
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-field i {
    color: var(--text-light);
    font-size: 1.1rem;
}

.search-field input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
}

.search-field input::placeholder {
    color: var(--text-light);
}

.search-btn {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-suggestions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-suggestions span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.search-suggestions a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-suggestions a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-card p {
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
}

/* Featured Jobs Section */
.featured-jobs {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.job-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.company-logo.microsoft {
    background: linear-gradient(135deg, #00bcf2 0%, #0078d4 100%);
}

.company-logo.netflix {
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
}

.company-logo.amazon {
    background: linear-gradient(135deg, #ff9900 0%, #ff7300 100%);
}

.company-logo.apple {
    background: linear-gradient(135deg, #a8a8a8 0%, #666666 100%);
}

.company-logo.tesla {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
}

.job-meta {
    display: flex;
    gap: 0.5rem;
}

.job-type, .job-remote, .job-hybrid, .job-onsite {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.job-type {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.job-remote {
    background: #dcfce7;
    color: #166534;
}

.job-hybrid {
    background: #fef3c7;
    color: #92400e;
}

.job-onsite {
    background: #dbeafe;
    color: #1e40af;
}

.job-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.job-location {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.salary {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

.match-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.match-score i {
    color: var(--secondary-color);
}

.jobs-cta {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.jobs-cta p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Personalized Section for Logged-in Job Seekers */
.personalized-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.personalized-section .section-header h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.personalized-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.personalized-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.personalized-actions .btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    border: none;
    text-decoration: none;
}

.personalized-actions .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.personalized-actions .btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.personalized-actions .btn-primary {
    background: white;
    color: var(--primary-color);
}

.personalized-actions .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.brand-logo i {
    font-size: 1.8rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-content.large {
    max-width: 800px;
}

@keyframes slideIn {
    from { transform: translateY(-50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

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

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.close {
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* User Type Selection */
.user-type-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.user-type-option {
    position: relative;
    cursor: pointer;
}

.user-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.user-type-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.user-type-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.user-type-option input[type="radio"]:checked + label .user-type-card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.user-type-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.user-type-card h4 {
    margin: 0.5rem 0 0.25rem 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.user-type-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.user-specific-fields {
    transition: all 0.3s ease;
}

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

.modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Success Message Styles */
.success-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.success-icon {
    margin-bottom: 1rem;
}

.success-icon i {
    font-size: 3rem;
    color: #22c55e;
    background: #dcfce7;
    padding: 1rem;
    border-radius: 50%;
    display: inline-block;
}

.success-message h3 {
    color: #166534;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.success-message p {
    color: #166534;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.success-message span {
    font-weight: 600;
    color: #15803d;
}

.success-message small {
    display: block;
    margin-top: 1rem;
    color: #22c55e;
    font-size: 0.875rem;
}

.success-message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.success-message a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-btn {
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-content {
        padding: 1rem 0.5rem;
    }
    
    .job-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

/* Additional animations */
.fade-in {
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce-in {
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80% {
        transform: translateY(0);
    }
    
    10%, 30% {
        transform: translateY(-10px);
    }
    
    50%, 70% {
        transform: translateY(-5px);
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Email Sent Message Styles */
.email-instructions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.email-instructions h4 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.email-instructions ol {
    margin: 0;
    padding-left: 1.5rem;
}

.email-instructions li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.help-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.help-section p {
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: #856404;
}

.help-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.help-section li {
    margin-bottom: 0.5rem;
    color: #856404;
}

/* Corporate CTA Section Styles */
.corporate-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 60px 0;
}

.corporate-cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    color: white;
}

.cta-left h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-left h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.cta-left p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.corporate-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.corporate-benefits li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.corporate-benefits li i {
    color: #4ade80;
    margin-right: 0.75rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn-corporate-primary {
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-corporate-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-corporate-secondary {
    background: transparent;
    color: white;
    padding: 12px 30px;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-corporate-secondary:hover {
    background: white;
    color: #667eea;
}

.corporate-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.corporate-stats .stat {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.corporate-stats .stat h4 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.corporate-stats .stat p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Corporate Registration Modal Styles */
.corporate-registration {
    max-width: 600px;
    margin: 0 auto;
}

.registration-progress {
    margin: 2rem 0;
}

.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-steps .step {
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.progress-steps .step.active {
    opacity: 1;
}

.progress-steps .step span {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: #e5e7eb;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-steps .step.active span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.form-step {
    animation: fadeIn 0.3s ease;
}

.form-step h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.plan-selection {
    margin-top: 2rem;
}

.plan-selection h4 {
    margin-bottom: 1rem;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.plan-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover,
.plan-card.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.plan-card input[type="radio"] {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.plan-card h5 {
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
}

.plan-card ul {
    list-style: none;
    padding: 0;
}

.plan-card ul li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.plan-card ul li i {
    color: #4ade80;
    margin-right: 0.5rem;
}

/* Subscription Management Styles */
.pricing-section {
    padding: 2rem 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.billing-toggle span {
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.billing-toggle span.active {
    color: var(--primary-color);
}

.switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 15px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.savings {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.pricing-card.current {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(255, 255, 255, 1));
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.plan-price {
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.savings-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: #22c55e;
    margin-right: 0.75rem;
}

.plan-action {
    margin-top: 2rem;
}

.plan-action .btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

.current-plan-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #22c55e;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Subscription Details Modal */
.subscription-details .modal-content {
    max-width: 600px;
}

.subscription-info {
    space-y: 2rem;
}

.current-plan h4 {
    margin-bottom: 0.5rem;
}

.plan-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-past_due {
    background: #fee2e2;
    color: #991b1b;
}

.status-cancelled {
    background: #f3f4f6;
    color: #374151;
}

.billing-info {
    margin: 1.5rem 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.info-item .label {
    color: var(--text-secondary);
}

.info-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

.usage-stats {
    margin-top: 1rem;
}

.usage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.usage-item .label {
    min-width: 120px;
    color: var(--text-secondary);
}

.usage-bar {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Plan Change Confirmation */
.plan-change-confirmation .modal-content {
    max-width: 500px;
}

.plan-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
}

.plan-from, .plan-to {
    text-align: center;
}

.plan-from h4, .plan-to h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.plan-from p, .plan-to p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.change-details h4 {
    margin-bottom: 1rem;
}

.change-details ul {
    list-style: none;
    padding: 0;
}

.change-details li {
    padding: 0.5rem 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.pricing-faq {
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-faq h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem;
    cursor: pointer;
    background: #f9fafb;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-item[open] summary {
    border-bottom: 1px solid #e5e7eb;
}

.faq-item p {
    padding: 1rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design for Corporate Sections */
@media (max-width: 768px) {
    .corporate-cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .corporate-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .plan-cards {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .billing-toggle {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .plan-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .plan-arrow {
        transform: rotate(90deg);
    }
    
    .pricing-header h2 {
        font-size: 2rem;
    }
}

/* Feature Restrictions Styles */
.feature-restriction .modal-content {
    max-width: 500px;
    text-align: center;
}

.restriction-icon {
    margin: 1rem 0 1.5rem 0;
}

.restriction-icon i {
    font-size: 3rem;
    color: #ef4444;
}

.feature-restriction h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.upgrade-benefits {
    margin-top: 1.5rem;
    text-align: left;
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
}

.upgrade-benefits h5 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
}

.upgrade-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upgrade-benefits li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

.upgrade-benefits li::before {
    content: "✓";
    color: #22c55e;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Feature Status Widget */
.feature-status-widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.feature-status-widget h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.feature-status-item {
    margin-bottom: 1rem;
}

.feature-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

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

.feature-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-progress .progress-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.feature-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.3s ease;
}

.feature-access {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #f3f4f6;
}

.access-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.access-item i {
    margin-right: 0.75rem;
    width: 16px;
}

.access-item.available {
    color: #22c55e;
}

.access-item.available i {
    color: #22c55e;
}

.access-item.restricted {
    color: #9ca3af;
}

.access-item.restricted i {
    color: #ef4444;
}

.upgrade-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Progress bars for usage limits */
.usage-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #fcd34d;
}

.usage-warning i {
    margin-right: 0.5rem;
}

.usage-critical {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

/* Feature gate overlays */
.feature-gate {
    position: relative;
}

.feature-gate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    border-radius: 8px;
    z-index: 10;
}

.feature-gate::after {
    content: '🔒 Upgrade Required';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 11;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feature-status-widget {
        padding: 1rem;
    }
    
    .feature-info {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .feature-restriction .modal-content {
        margin: 1rem;
    }
    
    .upgrade-benefits {
        text-align: center;
    }
}

/* Billing History Styles */
.billing-history {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.billing-header h3 {
    margin: 0;
    color: var(--text-primary);
}

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

.billing-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.billing-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.billing-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.billing-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #9ca3af;
}

.billing-empty h4 {
    margin: 1rem 0 0.5rem 0;
    color: var(--text-primary);
}

/* Payments Table */
.payments-table-container {
    overflow-x: auto;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.payments-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.payment-row:hover {
    background: #f9fafb;
}

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

.payment-description {
    max-width: 200px;
}

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

.description-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.payment-amount {
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-refunded {
    background: #f3f4f6;
    color: #374151;
}

.status-unknown {
    background: #f3f4f6;
    color: #6b7280;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    padding: 4px 8px;
}

/* Billing Summary */
.billing-summary {
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.summary-card.warning {
    border-color: #fcd34d;
    background: #fffbeb;
}

.summary-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-amount {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-count {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-card.warning .summary-count {
    color: #d97706;
}

.summary-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Billing Modal */
.billing-modal .modal-content {
    max-width: 1000px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .billing-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .billing-actions {
        justify-content: center;
    }
    
    .payments-table {
        font-size: 0.9rem;
    }
    
    .payments-table th,
    .payments-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .payment-description {
        max-width: 150px;
    }
    
    .summary-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* ===== JOB APPROVAL WORKFLOW STYLES ===== */

.approval-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.dashboard-header h2 {
    color: #1f2937;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.approval-stats {
    margin-bottom: 2rem;
}

.approvals-list {
    display: grid;
    gap: 1rem;
}

.approval-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

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

.approval-card.overdue {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-info h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.approval-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.approval-time {
    text-align: right;
    font-size: 0.875rem;
    color: #6b7280;
}

.time-ago {
    display: block;
    font-weight: 500;
}

.approval-details {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.approval-details p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: #4b5563;
}

.approval-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.approval-actions .btn {
    font-size: 0.875rem;
}

.approval-action-modal .job-summary {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #3b82f6;
}

.approval-action-modal .job-summary h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.approval-action-modal .job-summary p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.workflow-settings-modal .checkbox-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.workflow-settings-modal .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.stat-icon.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.overdue {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stat-icon.approvers {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.approval-card .text-warning {
    color: #f59e0b;
    margin-left: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-approved {
    background: #d1fae5;
    color: #065f46;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge-secondary {
    background: #f3f4f6;
    color: #374151;
}

.badge-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

/* Approval workflow empty state */
.approval-dashboard .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.approval-dashboard .empty-state i {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.approval-dashboard .empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

/* Mobile responsiveness for approval workflow */
@media (max-width: 768px) {
    .approval-dashboard {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .header-actions {
        flex-direction: column;
    }
    
    .approval-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .approval-time {
        text-align: left;
    }
    
    .approval-actions {
        flex-direction: column;
    }
    
    .workflow-settings-modal .checkbox-group {
        flex-direction: column;
    }
}

/* ===== JOB PERFORMANCE ANALYTICS STYLES ===== */

.analytics-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.analytics-header h2 {
    color: #1f2937;
    margin: 0;
}

.date-selector {
    display: flex;
    gap: 0.5rem;
}

.analytics-summary {
    margin-bottom: 2rem;
}

.metric-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

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

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

.metric-icon.jobs {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.metric-icon.applications {
    background: linear-gradient(135deg, #10b981, #059669);
}

.metric-icon.views {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.metric-icon.conversion {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.metric-icon.time {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.metric-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.metric-info p {
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.25rem 0;
}

.metric-detail {
    font-size: 0.875rem;
    color: #6b7280;
}

.analytics-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.analytics-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.insights-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.insights-container h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-card {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.insight-warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.insight-success {
    background: #d1fae5;
    border-left-color: #10b981;
}

.insight-info {
    background: #e0f2fe;
    border-left-color: #0ea5e9;
}

.insight-danger {
    background: #fee2e2;
    border-left-color: #ef4444;
}

.insight-icon {
    margin-right: 1rem;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-warning .insight-icon {
    background: #f59e0b;
    color: white;
}

.insight-success .insight-icon {
    background: #10b981;
    color: white;
}

.insight-info .insight-icon {
    background: #0ea5e9;
    color: white;
}

.insight-danger .insight-icon {
    background: #ef4444;
    color: white;
}

.insight-content h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1rem;
}

.insight-content p {
    margin: 0 0 0.5rem 0;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.4;
}

.insight-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.charts-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.charts-container h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

.chart-mock {
    text-align: center;
    color: #6b7280;
}

.chart-mock i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #9ca3af;
}

.job-breakdown-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.job-breakdown-container h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.job-table table {
    width: 100%;
    border-collapse: collapse;
}

.job-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

.job-table tr:hover {
    background: #f9fafb;
}

.job-title-cell strong {
    display: block;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.job-location {
    color: #6b7280;
    font-size: 0.8rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.analytics-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.top-performers,
.recommendations {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.top-performers h3,
.recommendations h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.125rem;
}

.performers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.performer-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.performer-rank {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 0.75rem;
}

.performer-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #1f2937;
}

.performer-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.rec-icon {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.rec-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #1f2937;
}

.rec-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

.no-insights,
.no-data {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
}

/* Mobile responsiveness for analytics */
@media (max-width: 1024px) {
    .analytics-content {
        grid-template-columns: 1fr;
    }
    
    .analytics-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .analytics-dashboard {
        padding: 1rem;
    }
    
    .analytics-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .date-selector {
        justify-content: stretch;
    }
    
    .date-selector .btn {
        flex: 1;
    }
    
    .metric-cards {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .metric-icon {
        margin: 0 0 1rem 0;
    }
    
    .job-table {
        overflow-x: auto;
    }
    
    .job-table table {
        min-width: 600px;
    }
}

/* ===== CANDIDATE COMMUNICATION STYLES ===== */

.communication-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    height: calc(100vh - 120px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.dashboard-header h2 {
    color: #1f2937;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.communication-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    height: calc(100vh - 200px);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

/* Conversations Sidebar */
.conversations-sidebar {
    border-right: 1px solid #e5e7eb;
    background: #f9fafb;
}

.conversations-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.conversations-header h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.conversations-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.conversations-items {
    overflow-y: auto;
    height: calc(100% - 120px);
}

.conversation-item {
    display: flex;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.conversation-item:hover {
    background: #f3f4f6;
}

.conversation-item.active {
    background: #eff6ff;
    border-right: 3px solid #3b82f6;
}

.conversation-item.unread {
    background: #fefce8;
}

.conversation-avatar {
    position: relative;
    margin-right: 1rem;
    flex-shrink: 0;
}

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

.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.conversation-header h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

.conversation-preview .job-title {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.last-message {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-conversations {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

/* Message Area */
.message-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.welcome-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
}

.welcome-area i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.welcome-area h3 {
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.message-area-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.candidate-info {
    display: flex;
    align-items: center;
}

.candidate-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.candidate-info h3 {
    margin: 0 0 0.25rem 0;
    color: #1f2937;
}

.candidate-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

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

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f9fafb;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    max-width: 70%;
}

.message.outgoing {
    align-self: flex-end;
    margin-left: auto;
}

.message.incoming {
    align-self: flex-start;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    position: relative;
}

.message.outgoing .message-content {
    background: #3b82f6;
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.message.incoming .message-content {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
}

.message-text {
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.message-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

.message.incoming .message-meta {
    color: #6b7280;
}

.message-meta .read {
    color: #22c55e;
}

/* Message Composer */
.message-compose {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 1rem;
}

.compose-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.compose-input {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.compose-input textarea {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    resize: none;
    font-family: inherit;
    line-height: 1.4;
}

.compose-input textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.compose-input button {
    flex-shrink: 0;
}

/* Template Selector */
.template-selector-modal .templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.template-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-card:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.template-card h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 0.875rem;
}

.template-card p {
    margin: 0 0 0.75rem 0;
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.4;
}

.template-category {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    border-radius: 12px;
    text-transform: capitalize;
}

/* Interview Scheduler */
.interview-scheduler-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Mobile responsiveness for communication */
@media (max-width: 1024px) {
    .communication-content {
        grid-template-columns: 280px 1fr;
    }
    
    .dashboard-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .message-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .communication-dashboard {
        padding: 1rem;
        height: calc(100vh - 80px);
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .communication-content {
        grid-template-columns: 1fr;
        height: calc(100vh - 160px);
    }
    
    .conversations-sidebar {
        display: none;
    }
    
    .message-header {
        padding: 1rem;
    }
    
    .candidate-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .message-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .message {
        max-width: 85%;
    }
    
    .compose-input {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .compose-toolbar {
        justify-content: center;
    }
    
    .template-selector-modal .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .interview-scheduler-modal .form-row {
        grid-template-columns: 1fr;
    }
}