/* Proxima Nova Font Import */
@import url('/static/fonts/proxima-nova.css');

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

body {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover .hamburger-line {
    background: #e53e3e;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 8px 8px;
    display: block;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
    line-height: 1.4;
    min-height: 24px;
    min-width: 250px;
    display: flex;
    align-items: center;
}

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

.dropdown-item:hover {
    background: #f8fafc;
    color: #e53e3e;
}

.dropdown-item.logout {
    color: #dc2626;
}

.dropdown-item.logout:hover {
    background: #fef2f2;
}

/* Main Content */
.main-content {
    padding: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    margin-bottom: 2rem;
}

.login-logo img {
    height: 60px;
    width: auto;
}

.login-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.login-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-button:hover {
    background: #dc2626;
}

.login-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
}

.info-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Verify Page Styles */
.verify-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 2rem;
}

.verify-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.verify-logo {
    margin-bottom: 2rem;
}

.verify-logo img {
    height: 60px;
    width: auto;
}

.verify-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.verify-subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
}

.verify-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 1rem;
}

.verify-button:hover {
    background: #dc2626;
}

.verify-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.back-link {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Logout Page Styles */
.logout-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.logout-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.logout-message {
    color: #6b7280;
    margin-bottom: 2rem;
}

.logout-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 24px;
    background: #e53e3e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.logout-button:hover {
    background: #dc2626;
}

/* Dashboard Styles */
.dashboard-content {
    padding: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
}

.dashboard-intro {
    padding-bottom: 0.5rem;
}

/* Company Section Styles */
.company-section {
    margin-bottom: 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.company-header {
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-header:hover {
    background: #f1f5f9;
}

.company-header-content {
    flex: 1;
}

.company-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.company-details {
    display: flex;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.company-rfc,
.company-cie {
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.company-submission {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.company-status,
.company-credit-request {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid;
}

.company-status {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.company-status.status-approved {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.company-status.status-incomplete {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.company-status.status-not_started {
    color: #374151;
    background: #f9fafb;
    border-color: #d1d5db;
}

.company-status.status-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.company-credit-request {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.company-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    color: #6b7280;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.company-toggle:hover {
    background: #e2e8f0;
    color: #374151;
}

.company-toggle.expanded {
    transform: rotate(180deg);
}

.company-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    opacity: 0;
}

.company-content.expanded {
    max-height: 4000px; /* Increased to accommodate all document sections */
    opacity: 1;
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.company-content-inner {
    padding: 1.5rem;
}

/* Two-column layout styles */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.status-column,
.upload-column {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.column-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e53e3e;
}

.column-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Contact Information Section Styles */
.contact-info-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.section-title {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e53e3e;
    padding-bottom: 0.375rem;
}

.contact-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
    font-size: 0.8rem;
}

.form-input {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0.5rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-actions {
    margin-top: 1rem;
    text-align: right;
}

.save-contact-btn {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.save-contact-btn:hover {
    background: #dc2626;
}

.save-contact-btn:hover:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .status-column,
    .upload-column {
        padding: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-info-section {
        padding: 0.75rem;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .form-group label {
        margin-bottom: 0.25rem;
    }
    
    .form-input {
        padding: 0.375rem 0.5rem;
    }
    
    .save-contact-btn {
        padding: 0.375rem 1rem;
        font-size: 0.75rem;
    }
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Upload info styling */
.upload-info {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
}

/* Enhanced document item transitions */
.document-item {
    transition: all 0.3s ease;
}

.document-item.uploaded {
    background: #eff6ff;
    border-left-color: #3b82f6;
    animation: pulse 0.5s ease-in-out;
}

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

.status-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.status-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e53e3e;
    margin-bottom: 1rem;
}

.status-indicator {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.status-not-started {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.status-incomplete {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-approved {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.document-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.document-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e53e3e;
    margin-bottom: 1rem;
}

.submit-button {
    background: #e53e3e;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background: #dc2626;
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.document-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border-left: 4px solid #e2e8f0;
}

.document-item.approved {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.document-item.valid {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.document-item.rejected {
    background: #fef2f2;
    border-left-color: #dc2626;
}

.document-item.uploaded {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.document-item.error {
    background: #fef2f2;
    border-left-color: #dc2626;
}

.document-item.pending {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.document-item.not_found {
    background: #f9fafb;
    border-left-color: #6b7280;
}

.document-item.not_started {
    background: #f9fafb;
    border-left-color: #6b7280;
}

.document-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.document-subtitle:first-of-type {
    margin-top: 2rem;
}

.dummy-button {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: not-allowed;
    margin-top: 0.5rem;
    display: inline-block;
    opacity: 0.6;
}

.dummy-button:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.syntage-button {
    background: #e53e3e;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    margin-left: 15px;
    display: inline-block;
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.2);
}

.syntage-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(229, 62, 62, 0.3);
}

.syntage-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(229, 62, 62, 0.2);
}

.rejection-reason {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #dc2626;
    font-size: 0.875rem;
    font-style: italic;
}

.status-approved {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-incomplete {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #dc2626;
}

/* No Companies State */
.no-companies {
    text-align: center;
    padding: 3rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.no-companies h2 {
    color: #6b7280;
    margin-bottom: 1rem;
}

.no-companies p {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .logo-image {
        height: 32px;
    }

    .main-content {
        padding: 0.25rem;
    }

    .login-card,
    .verify-card {
        padding: 2rem;
    }
    
    .login-title,
    .verify-title {
        font-size: 1.5rem;
    }

    .dashboard-content {
        padding: 0.25rem;
    }

    .company-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .company-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .company-title {
        font-size: 1.25rem;
    }
} 