@page {
    size: A4;
    margin: 0;
}

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

body {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 10pt;
    color: #000;
    background: #fff;
    line-height: 1.4;
}

.page {
    width: 210mm;
    min-height: 297mm;
    padding: 50px;
    page-break-after: always;
    position: relative;
}

.page:last-child {
    page-break-after: auto;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container-small {
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
}

.page-2 .logo-container img {
    max-width: 180px;
    max-height: 70px;
}

.section-title {
    font-size: 12pt;
    font-weight: bold;
    margin-bottom: 12px;
    color: #000;
}

.section-title-underline {
    text-decoration: underline;
}

.table-container {
    width: 100%;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 0.5px solid #999999;
}

table th {
    background-color: #000;
    color: #fff;
    font-weight: bold;
    font-size: 10pt;
    padding: 8px;
    text-align: left;
    border: 0.5px solid #999999;
}

table td {
    padding: 8px;
    font-size: 10pt;
    border: 0.5px solid #999999;
    vertical-align: middle;
}

.two-column-table {
    table-layout: fixed;
}

.two-column-table th:first-child,
.two-column-table td:first-child {
    width: 30%;
}

.two-column-table th:last-child,
.two-column-table td:last-child {
    width: 70%;
}

.corporate-summary-header {
    background-color: #000;
    color: #fff;
    font-size: 12pt;
    font-weight: bold;
    padding: 8px;
    border: 0.5px solid #999999;
}

.corporate-summary-table {
    margin-top: 0;
}

.corporate-summary-table table {
    border-top: none;
}

.corporate-summary-table th {
    display: none;
}

.business-overview-table th:first-child,
.business-overview-table td:first-child {
    width: 40%;
}

.business-overview-table th:last-child,
.business-overview-table td:last-child {
    width: 60%;
}

.board-directors-table th:nth-child(1),
.board-directors-table td:nth-child(1) {
    width: 18%;
}

.board-directors-table th:nth-child(2),
.board-directors-table td:nth-child(2) {
    width: 32%;
}

.board-directors-table th:nth-child(3),
.board-directors-table td:nth-child(3) {
    width: 25%;
}

.board-directors-table th:nth-child(4),
.board-directors-table td:nth-child(4) {
    width: 25%;
}

.shareholding-table th:nth-child(1),
.shareholding-table td:nth-child(1) {
    width: 15%;
}

.shareholding-table th:nth-child(2),
.shareholding-table td:nth-child(2) {
    width: 40%;
}

.shareholding-table th:nth-child(3),
.shareholding-table td:nth-child(3) {
    width: 20%;
}

.shareholding-table th:nth-child(4),
.shareholding-table td:nth-child(4) {
    width: 25%;
}

.equity-capital-header {
    background-color: #000;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 8px;
    border: 0.5px solid #999999;
}

.financials-table th:nth-child(1),
.financials-table td:nth-child(1) {
    width: 40%;
}

.financials-table th:nth-child(n+2),
.financials-table td:nth-child(n+2) {
    width: 15%;
}

.section-separator {
    display: none;
}

.note-text {
    margin-top: 10px;
    font-size: 10pt;
}

.registered-office-cell {
    min-height: 60px;
}

.group-overview-cell {
    min-height: 30px;
}

.page-3 .logo-container img {
    max-width: 180px;
    max-height: 70px;
}

.section-subtitle {
    font-size: 11pt;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #000;
}

.section-subtitle-margin-top {
    margin-top: 20px;
}

.equity-fund-raise-content {
    min-height: 40px;
    padding: 10px;
}

.placeholder-bar {
    width: 100%;
    height: 200px;
    background-color: #000;
    border: 0.5px solid #999999;
}

.placeholder-bar-strip {
    width: 100%;
    height: 20px;
    background-color: #fff;
    border-bottom: 0.5px solid #000;
    margin-top: 0;
}

.sales-breakup-table th:nth-child(1),
.sales-breakup-table td:nth-child(1) {
    width: 25%;
}

.sales-breakup-table th:nth-child(n+2),
.sales-breakup-table td:nth-child(n+2) {
    width: 9.375%;
}

.product-revenue-table th:nth-child(1),
.product-revenue-table td:nth-child(1) {
    width: 40%;
}

.product-revenue-table th:nth-child(n+2),
.product-revenue-table td:nth-child(n+2) {
    width: 20%;
}

.production-capacity-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

.production-capacity-table th:nth-child(1),
.production-capacity-table td:nth-child(1) {
    width: 10% !important;
    text-align: left !important;
}

.production-capacity-table th:nth-child(2),
.production-capacity-table td:nth-child(2) {
    width: 12% !important;
    text-align: left !important;
}

.production-capacity-table th:nth-child(n+3),
.production-capacity-table td:nth-child(n+3) {
    width: 9.75% !important;
}

.production-capacity-table th {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    line-height: 1.1 !important;
    font-size: 7pt !important;
    padding: 3px 2px !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-weight: bold !important;
}

.production-capacity-table thead tr:first-child th {
    font-size: 7.5pt !important;
    padding: 4px 2px !important;
    line-height: 1.2 !important;
}

.production-capacity-table thead tr:last-child th {
    font-size: 6.5pt !important;
    padding: 3px 1px !important;
    line-height: 1.1 !important;
}

.production-capacity-table thead th:first-child {
    text-align: center !important;
    vertical-align: middle !important;
}

.production-capacity-table td {
    text-align: center !important;
    padding: 6px 4px !important;
}

.production-capacity-table td:nth-child(1),
.production-capacity-table td:nth-child(2) {
    text-align: left !important;
}

.debt-schedule-table th:nth-child(1),
.debt-schedule-table td:nth-child(1) {
    width: 25%;
}

.debt-schedule-table th:nth-child(n+2),
.debt-schedule-table td:nth-child(n+2) {
    width: 25%;
}

.dscr-table th:nth-child(1),
.dscr-table td:nth-child(1) {
    width: 70%;
}

.dscr-table th:nth-child(2),
.dscr-table td:nth-child(2) {
    width: 30%;
}

.page-5 .logo-container img {
    max-width: 180px;
    max-height: 70px;
}

.top-customers-table th:nth-child(1),
.top-customers-table td:nth-child(1) {
    width: 8%;
    white-space: nowrap;
    text-align: center;
}

.top-customers-table th:nth-child(2),
.top-customers-table td:nth-child(2) {
    width: 22%;
}

.top-customers-table th:nth-child(3),
.top-customers-table td:nth-child(3) {
    width: 15%;
}

.top-customers-table th:nth-child(n+4),
.top-customers-table td:nth-child(n+4) {
    width: 9.2%;
}

.debtor-ageing-table th:nth-child(1),
.debtor-ageing-table td:nth-child(1) {
    width: 50%;
}

.debtor-ageing-table th:nth-child(n+2),
.debtor-ageing-table td:nth-child(n+2) {
    width: 25%;
}

.top-suppliers-table th:nth-child(1),
.top-suppliers-table td:nth-child(1) {
    width: 8%;
    white-space: nowrap;
    text-align: center;
}

.top-suppliers-table th:nth-child(2),
.top-suppliers-table td:nth-child(2) {
    width: 27%;
}

.top-suppliers-table th:nth-child(n+3),
.top-suppliers-table td:nth-child(n+3) {
    width: 9.3%;
}

.creditor-table th:nth-child(1),
.creditor-table td:nth-child(1) {
    width: 8%;
    white-space: nowrap;
    text-align: center;
}

.creditor-table th:nth-child(2),
.creditor-table td:nth-child(2) {
    width: 60%;
}

.creditor-table th:nth-child(3),
.creditor-table td:nth-child(3) {
    width: 32%;
}

.total-sales-row {
    background-color: #000;
    color: #fff;
}

.total-sales-row td {
    background-color: #000;
    color: #fff;
}

.percent-total-sales-row {
    color: #ff0000;
}

.percent-total-sales-row td {
    color: #ff0000;
}

.page-6 .logo-container img {
    max-width: 180px;
    max-height: 70px;
}

.peer-comparison-table th:nth-child(1),
.peer-comparison-table td:nth-child(1) {
    width: 25%;
}

.peer-comparison-table th:nth-child(n+2),
.peer-comparison-table td:nth-child(n+2) {
    width: 15%;
}

.gst-analysis-table th:nth-child(1),
.gst-analysis-table td:nth-child(1) {
    width: 20%;
}

.gst-analysis-table th:nth-child(2),
.gst-analysis-table td:nth-child(2) {
    width: 50%;
}

.gst-analysis-table th:nth-child(3),
.gst-analysis-table td:nth-child(3) {
    width: 30%;
}

.bank-analysis-table th:nth-child(1),
.bank-analysis-table td:nth-child(1) {
    width: 60%;
}

.bank-analysis-table th:nth-child(2),
.bank-analysis-table td:nth-child(2) {
    width: 40%;
}

.page-7 .logo-container img {
    max-width: 180px;
    max-height: 70px;
}

.scorecard-table th:nth-child(1),
.scorecard-table td:nth-child(1) {
    width: 60%;
}

.scorecard-table th:nth-child(2),
.scorecard-table td:nth-child(2) {
    width: 20%;
}

.scorecard-table th:nth-child(3),
.scorecard-table td:nth-child(3) {
    width: 20%;
}

.bureau-observation-table th:nth-child(1),
.bureau-observation-table td:nth-child(1) {
    width: 10%;
}

.bureau-observation-table th:nth-child(2),
.bureau-observation-table td:nth-child(2) {
    width: 30%;
}

.bureau-observation-table th:nth-child(3),
.bureau-observation-table td:nth-child(3) {
    width: 20%;
}

.bureau-observation-table th:nth-child(4),
.bureau-observation-table td:nth-child(4) {
    width: 40%;
}

.corporatory-analysis-table th:nth-child(1),
.corporatory-analysis-table td:nth-child(1) {
    width: 40%;
}

.corporatory-analysis-table th:nth-child(2),
.corporatory-analysis-table td:nth-child(2) {
    width: 20%;
}

.corporatory-analysis-table th:nth-child(3),
.corporatory-analysis-table td:nth-child(3) {
    width: 20%;
}

.corporatory-analysis-table th:nth-child(4),
.corporatory-analysis-table td:nth-child(4) {
    width: 20%;
}

.corporatory-analysis-table th.green-flag {
    background-color: #00ff00;
    color: #000;
}

.corporatory-analysis-table th.yellow-flag {
    background-color: #ffff00;
    color: #000;
}

.corporatory-analysis-table th.red-flag {
    background-color: #ff0000;
    color: #fff;
}

.credit-rating-table th:nth-child(1),
.credit-rating-table td:nth-child(1) {
    width: 35%;
}

.credit-rating-table th:nth-child(2),
.credit-rating-table td:nth-child(2) {
    width: 20%;
}

.credit-rating-table th:nth-child(3),
.credit-rating-table td:nth-child(3) {
    width: 20%;
}

.credit-rating-table th:nth-child(4),
.credit-rating-table td:nth-child(4) {
    width: 25%;
}

.net-worth-table th:nth-child(1),
.net-worth-table td:nth-child(1) {
    width: 50%;
}

.net-worth-table th:nth-child(2),
.net-worth-table td:nth-child(2) {
    width: 50%;
}

.investment-thesis-content {
    min-height: 100px;
    padding: 10px;
}

.business-photos-content {
    min-height: 100px;
    padding: 10px;
}

/* PDF-2 specific styles */
.header-title {
    text-align: center;
    font-size: 18pt;
    font-weight: bold;
    margin-bottom: 30px;
    color: #000;
}

.section-content {
    font-size: 10pt;
    line-height: 1.6;
    margin-bottom: 20px;
}

.section-content-margin-bottom {
    margin-bottom: 15px;
}

.positive-aspects {
    margin-top: 20px;
}

.positive-aspects ol {
    margin-left: 20px;
    margin-top: 10px;
}

.positive-aspects li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer {
    position: absolute;
    bottom: 30px;
    left: 50px;
    right: 50px;
    text-align: center;
    font-size: 9pt;
    color: #666;
}

/* Inline style replacements */
.text-center {
    text-align: center;
}

.margin-bottom-20 {
    margin-bottom: 20px;
}

.margin-top-30 {
    margin-top: 30px;
}

.margin-top-20 {
    margin-top: 20px;
}

.margin-bottom-10 {
    margin-bottom: 10px;
}

.margin-bottom-5 {
    margin-bottom: 5px;
}

.margin-bottom-15 {
    margin-bottom: 15px;
}

.font-size-10pt {
    font-size: 10pt;
}

.font-size-9pt {
    font-size: 9pt;
}

.font-weight-bold {
    font-weight: bold;
}

.display-block {
    display: block;
}

.visibility-visible {
    visibility: visible;
}

.total-row {
    background-color: #f0f0f0;
    font-weight: bold;
    border-top: 2px solid #000;
}

.no-data {
    text-align: center;
    color: #999;
}

.contact-section {
    margin-top: 30px;
    margin-bottom: 20px;
}

.mission-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.disclaimer-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.line-height-1-6 {
    line-height: 1.6;
}

/* Missing value indicator */
.missing-value {
    background-color: #ffcccc; /* Light red background */
    color: #cc0000; /* Dark red text */
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 9pt;
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

.dashboard-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #4a6fa5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #4a6fa5;
    color: white;
    height: 100vh;
    padding: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1000;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.sidebar-header h2 ion-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.sidebar-logo-container {
    background: white;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.sidebar-menu {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 25px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    font-weight: 500;
    font-size: 15px;
}

.sidebar-menu a ion-icon {
    font-size: 22px;
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left-color: rgba(255,255,255,0.6);
    transform: translateX(5px);
}

.sidebar-menu a:hover ion-icon {
    transform: scale(1.1);
}

.sidebar-menu a.active {
    background: white;
    color: #4a6fa5;
    border-left-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-menu a.active ion-icon {
    color: #4a6fa5;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: transparent;
    margin-left: 280px;
    min-height: 100vh;
}

.content-area {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.5);
    min-height: calc(100vh - 180px);
    border: 1px solid rgba(255,255,255,0.8);
}

.content-area.no-card {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    min-height: calc(100vh - 80px);
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.dashboard-welcome {
    text-align: center;
    padding: 120px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: rgba(74, 111, 165, 0.1);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

.dashboard-welcome h2 {
    font-size: 56px;
    color: #4a6fa5;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
    line-height: 1.2;
}

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

.dashboard-welcome h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4a6fa5;
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.3s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

.dashboard-welcome p {
    font-size: 22px;
    color: #6b7280;
    line-height: 1.8;
    font-weight: 500;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-iframe {
    width: 100%;
    height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Logout Button */
.logout-section {
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 0;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.logout-button {
    width: 100%;
    padding: 16px 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4), 
                inset 0 1px 0 rgba(255,255,255,0.2);
    overflow: hidden;
    letter-spacing: 0.3px;
}

.logout-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s;
}

.logout-button:hover::before {
    left: 100%;
}

.logout-button ion-icon {
    font-size: 22px;
    width: 22px;
    height: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logout-button:hover {
    background: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5),
                0 0 0 1px rgba(255,255,255,0.1),
                inset 0 1px 0 rgba(255,255,255,0.3);
}

.logout-button:hover ion-icon {
    transform: translateX(-5px) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.logout-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.logout-button:disabled {
    background: #9ca3af;
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logout-button:disabled:hover {
    transform: none;
}

.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   EXCEL TO PDF STYLES
   ============================================ */

.excel-to-pdf-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #4a6fa5;
    min-height: 100vh;
    padding: 30px 20px;
    position: relative;
}

.excel-to-pdf-body * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.excel-to-pdf-body *::-webkit-scrollbar {
    display: none;
}

.excel-to-pdf-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 111, 165, 0.1);
    pointer-events: none;
    z-index: 0;
}

.excel-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.8);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

.excel-form-group {
    margin-bottom: 25px;
}

.excel-form-label {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 600;
    font-size: 14px;
}

.excel-form-label-small {
    font-size: 13px;
    color: #666;
}

.excel-form-label-required {
    color: #ef4444;
}

.file-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.file-input-wrapper {
    margin-bottom: 0;
}

.file-example-text {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    margin-bottom: 8px;
    font-style: italic;
    line-height: 1.4;
    padding-left: 4px;
}

.excel-file-input {
    width: 100%;
    padding: 20px;
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
}

.excel-file-input:hover {
    border-color: #4a6fa5;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 111, 165, 0.15);
}

.excel-file-input::file-selector-button {
    padding: 12px 24px;
    margin-right: 15px;
    border: none;
    border-radius: 10px;
    background: #4a6fa5;
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
}

.excel-file-input::file-selector-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
}

.excel-button {
    background: #4a6fa5;
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(74, 111, 165, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.excel-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.excel-button:hover::before {
    left: 100%;
}

.excel-button ion-icon {
    font-size: 22px;
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.excel-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(74, 111, 165, 0.5);
}

.excel-button:hover:not(:disabled) ion-icon {
    transform: scale(1.1) rotate(5deg);
}

.excel-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.excel-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.excel-result {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    display: none;
    animation: slideDown 0.3s ease;
}

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

.excel-result.success {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.excel-result.error {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.excel-result h3 {
    margin-bottom: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.excel-result h3 ion-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.excel-result p strong ion-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.excel-result p {
    margin: 8px 0;
    line-height: 1.6;
}

.excel-result hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 15px 0;
}

.tip-box {
    background: #eff6ff;
    border-left: 4px solid #4a6fa5;
    padding: 16px 18px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
    color: #1e40af;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.1);
}

.excel-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.page-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 25px;
}

.excel-h1 {
    font-size: 32px;
    color: #4a6fa5;
    margin-bottom: 30px;
    font-weight: 800;
    text-align: center;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #d1fae5;
    border: 2px solid #10b981;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.result-header h3 {
    font-size: 20px;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-header h3 ion-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.copy-button {
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.json-container {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    max-height: 600px;
    overflow: auto;
    border: 2px solid #10b981;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.json-container::-webkit-scrollbar {
    width: 10px;
}

.json-container::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 5px;
}

.json-container::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 5px;
}

.json-container::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

.json-container pre {
    margin: 0;
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.sheet-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sheet-tab {
    padding: 10px 20px;
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
}

.sheet-tab:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.sheet-tab.active {
    background: #4a6fa5;
    color: white;
    border-color: #4a6fa5;
}

.sheet-content {
    display: none;
}

.sheet-content.active {
    display: block;
}

.pdf-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.pdfs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.pdf-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pdf-card h4 {
    margin: 0;
    color: #4a6fa5;
    font-size: 16px;
    font-weight: 700;
}

.pdf-card button {
    width: auto;
    padding: 12px 24px;
    font-size: 14px;
    margin-top: 10px;
}

.pdf-preview {
    width: 100%;
    height: 300px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
}

.pdf-preview-icon {
    font-size: 48px;
    color: #9ca3af;
}

.download-pdf-btn {
    width: auto;
    padding: 12px 24px;
    font-size: 14px;
    margin-top: 10px;
}

.excel-link {
    color: #000000;
    text-decoration: underline;
}

.excel-result-text {
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .excel-container {
        padding: 20px;
        margin: 10px;
    }

    .excel-h1 {
        font-size: 24px;
    }

    .json-container {
        max-height: 400px;
    }

    .pdfs-container {
        grid-template-columns: 1fr;
    }

    .file-inputs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ============================================
   LOGIN STYLES
   ============================================ */

.login-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #4a6fa5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.login-container {
    background: white;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.8);
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
    display: flex;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.9);
}

.login-left {
    flex: 1;
    background: #4a6fa5;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.login-right {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo-container {
    background: white;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.login-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

.login-left h1 {
    color: white;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 36px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.login-left h1 ion-icon {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: white;
}

.login-left .subtitle {
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.login-right h2 {
    color: #4a6fa5;
    text-align: left;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-right .subtitle {
    text-align: left;
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.login-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
    color: #111827;
}

.login-input:focus {
    outline: none;
    border-color: #4a6fa5;
    background: white;
    box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.1), 0 4px 12px rgba(74, 111, 165, 0.15);
    transform: translateY(-1px);
}

.login-button {
    background: #4a6fa5;
    color: white;
    padding: 16px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(74, 111, 165, 0.4);
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(74, 111, 165, 0.5);
}

.login-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
}

.error-message {
    background: #fee2e2;
    border: 2px solid #f87171;
    color: #dc2626;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message.show {
    display: block;
}

.success-message {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    animation: slideDown 0.3s ease;
}

.success-message.show {
    display: block;
}

.login-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.credentials-box {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
    color: #6b7280;
    font-size: 13px;
    background: #f9fafb;
    margin-left: -45px;
    margin-right: -45px;
    margin-bottom: -50px;
    padding-bottom: 20px;
    padding-left: 45px;
    padding-right: 45px;
}

.credentials-box .cred-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.credentials-box .cred-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.credentials-box .cred-item ion-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #4a6fa5;
}

.credentials-box .cred-item strong {
    color: #4a6fa5;
    font-weight: 700;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 420px;
    }

    .login-left {
        padding: 40px 30px;
    }

    .login-left h1 {
        font-size: 28px;
    }

    .login-right {
        padding: 40px 30px;
    }
}

