/* Company Portal CSS - Modern & Beautiful Design */

:root {
    /* Primary Colors */
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --primary-lighter: #eef2ff;
    
    /* Secondary Colors */
    --secondary-color: #0ea5e9;
    --secondary-dark: #0284c7;
    
    /* Accent Colors */
    --accent-color: #10b981;
    --accent-dark: #059669;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* Company Portal Navigation */
.company-navbar {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.company-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px; /* Fixed height */
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.company-logo:hover {
    transform: translateY(-1px); /* Reduced movement */
}

.company-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0; /* Prevent size change */
}

.company-nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.company-nav-links li {
    display: flex;
    align-items: center;
}

.company-nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.company-nav-links a:hover,
.company-nav-links a.active {
    color: var(--primary-color);
    background: var(--primary-lighter);
    /* Ensure no font-weight change */
    font-weight: 500;
}

.company-nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.company-welcome-text {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

/* Buttons */
.company-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.company-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.company-btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.company-btn-success {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.company-btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: var(--white);
}

.company-btn-logout {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-full);
}

.company-btn-logout:hover {
    background: var(--danger-color);
    color: var(--white);
}

/* Main Container */
.company-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

/* Hero Section */
.company-hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.company-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.company-hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

/* Cards */
.company-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.company-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.company-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.company-card-body {
    color: var(--gray-700);
}

/* Stats Grid */
.company-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.company-stat-card {
    background: linear-gradient(135deg, var(--white), var(--gray-50));
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.company-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.company-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.company-stat-icon.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}

.company-stat-icon.success {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--white);
}

.company-stat-icon.warning {
    background: linear-gradient(135deg, var(--warning-color), #ea580c);
    color: var(--white);
}

.company-stat-icon.danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: var(--white);
}

.company-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.company-stat-label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 1rem;
}

/* Forms */
.company-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    margin: 2rem auto;
}

.company-form-wide {
    max-width: 800px;
}

.company-form-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.company-form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.company-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.company-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.company-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.company-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.company-form-actions .company-btn {
    flex: 1;
}

/* Messages */
.company-messages {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 80px;
}

.company-message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.company-message.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-left: 4px solid var(--accent-color);
}

.company-message.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.company-message.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.company-message.info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border-left: 4px solid var(--secondary-color);
}

/* Tables */
.company-table-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
}

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

.company-table th {
    background: var(--gray-100);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.company-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.company-table tr:hover {
    background: var(--gray-50);
}

/* Badges */
.company-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.company-badge-primary {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.company-badge-success {
    background: #d1fae5;
    color: var(--accent-dark);
}

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

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

/* Footer */
.company-footer {
    background: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    color: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
    .company-nav-links {
        display: none;
    }
    
    .company-hero h1 {
        font-size: 2.5rem;
    }
    
    .company-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .company-form {
        padding: 2rem 1.5rem;
    }
    
    .company-form-actions {
        flex-direction: column;
    }
}

/* Loading Spinner */
.company-spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Pending Approval Page */
.company-pending-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    padding: 2rem;
}

.company-pending-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    text-align: center;
}

.company-pending-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--warning-color), #ea580c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    animation: pulse 2s ease-in-out infinite;
}

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

.company-pending-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.company-pending-text {
    color: var(--gray-600);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

