@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import 'variables.css';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

::selection {
    background-color: var(--primary-color);
    color: white;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

.logo img {
    max-width: 250px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

@media (max-width: 768px) {
    .logo img {
        max-height: 60px;
        max-width: 180px;
    }
}

.footer-logo img {
    max-height: 70px;
    max-width: 200px;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links .btn {
    height: 42px;
    /* Consistent height for buttons */
    padding: 0 1.25rem;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
}

.nav-links .btn-secondary {
    border: 1.5px solid var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 1rem);
    /* Distance from navbar */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 260px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: block !important;
    padding: 0.75rem 1.5rem !important;
    color: #475569 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-align: left;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: #f8fafc !important;
    color: var(--primary-color) !important;
    padding-left: 2rem !important;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-toggle {
    color: var(--primary-color);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    background-color: var(--surface-color);
    transition: var(--transition-fast);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(7, 85, 85, 0.1);
    outline: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Grid Layouts */
.grid-container {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.menu-toggle {
    display: none;
}

@media (max-width: 992px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-primary);
        padding: 0.5rem;
        order: 2;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        background: var(--surface-color);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--glass-border);
        align-items: flex-start;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0.5rem 1.5rem;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: unset;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .nav-links .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Vacancy Card */
.vacancy-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

.vacancy-link span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
}

/* Process Steps */
.process-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 2rem 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--surface-color);
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition-normal);
}

.process-step:hover .step-icon {
    background: var(--primary-color);
    color: white;
    border-style: solid;
    transform: scale(1.1);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Company Card */
.company-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Testimonial Card */
.testimonial-card {
    padding: 2rem;
    position: relative;
}

.rating {
    color: #fbbf24;
    margin-bottom: 1rem;
}

/* CTA Banner Cards */
.cta-banner {
    border-radius: var(--radius-lg);
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-banner.primary {
    background: var(--primary-gradient);
}

.cta-banner.secondary {
    background: var(--secondary-gradient);
}

/* Authentication Page - Split Layout */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: white;
    overflow: hidden;
}

.auth-left {
    width: 50%;
    padding: 2rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: white;
}

.auth-right {
    width: 50%;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    position: relative;
    color: white;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-decoration: none;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #64748b;
}

.auth-header a {
    color: var(--primary-color);
    font-weight: 500;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
    font-weight: 500;
}

.auth-form .input-group {
    position: relative;
}

.auth-form .form-control {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(7, 85, 85, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.25rem;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.forgot-password {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Auth Right Side Content */
.auth-stats-content {
    max-width: 600px;
    margin: 0 auto;
}

.auth-image-text {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 3rem;
}

.stats-grid {
    display: flex;
    gap: 2rem;
    margin-top: auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 140px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.stat-count {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.floating-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: white;
    color: #0f172a;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .auth-right {
        display: none;
    }

    .auth-left {
        width: 100%;
        padding: 2rem;
    }
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    background: #f8fafc;
    min-height: 100vh;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card-info h3 {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-card-info p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.badge-pending {
    background: #fef3c7;
    color: #d97706;
}

.badge-accepted {
    background: #dcfce7;
    color: #16a34a;
}

.badge-rejected {
    background: #fee2e2;
    color: #dc2626;
}

.section-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    text-align: left;
}

.section-header h2 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.data-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9375rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* WhatsApp Float Widget */
.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.wa-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    position: relative;
    border: none;
    outline: none;
    padding: 0;
}

.wa-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.wa-button svg {
    width: 32px;
    height: 32px;
}

.wa-badge-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.wa-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    border: 1px solid var(--glass-border);
}

.wa-chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wa-chat-header {
    background: linear-gradient(135deg, #075555 0%, #0d8a8a 100%);
    color: white;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    text-align: left;
}

.wa-chat-header .wa-avatar-container {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.wa-chat-header .wa-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #075555;
    animation: wa-status-pulse 1.5s infinite;
}

@keyframes wa-status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.wa-chat-header-info {
    flex: 1;
}

.wa-chat-header-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.wa-chat-header-info p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.wa-chat-close:hover {
    opacity: 1;
}

.wa-chat-body {
    padding: 1.5rem;
    background: #efeae2;
    /* Subtle WhatsApp chat background pattern style */
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 0);
    background-size: 16px 16px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.wa-chat-body-msg {
    background: var(--surface-color);
    padding: 0.75rem 1rem;
    border-radius: 0 12px 12px 12px;
    max-width: 85%;
    font-size: 0.875rem;
    color: var(--text-primary);
    position: relative;
    box-shadow: var(--shadow-sm);
    line-height: 1.4;
}

.wa-chat-body-msg::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent var(--surface-color) transparent transparent;
}

.wa-chat-body-msg .wa-time {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.wa-chat-footer {
    padding: 1rem;
    background: var(--surface-color);
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wa-chat-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
    background: var(--bg-color);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.wa-chat-input:focus {
    border-color: #25D366;
}

.wa-chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.wa-chat-send-btn:hover {
    background: #20ba5a;
}

.wa-chat-send-btn:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .wa-widget-container {
        bottom: 20px;
        right: 20px;
    }
    .wa-chat-box {
        bottom: 70px;
        right: -10px;
        width: calc(100vw - 40px);
    }
}

/* FAQ Accordion Styling */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-details {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.faq-details[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.faq-summary {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    user-select: none;
}

.faq-summary::-webkit-details-marker {
    display: none; /* Hide default arrow for Safari */
}

.faq-summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform var(--transition-normal);
}

.faq-details[open] .faq-summary::after {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-content {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px dashed var(--glass-border);
    padding-top: 1rem;
}

.executive-role-card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.executive-role-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}