/**
 * Print Styles for Job Application Form
 * Designed to match traditional paper application forms
 */

@media print {
    /* Hide non-printable elements */
    .no-print,
    .sidebar,
    .navbar,
    .btn-toolbar,
    .alert,
    .modal,
    .pagination,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_paginate,
    footer,
    .admin-content .btn,
    .card .btn {
        display: none !important;
    }

    /* Reset body for printing */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
        margin: 0;
        padding: 0;
    }

    /* Container adjustments */
    .container-fluid,
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Remove shadows and fancy styling */
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
        page-break-inside: avoid;
    }

    .card-header {
        background: white !important;
        border-bottom: 2px solid #000 !important;
        color: black !important;
        padding: 10px !important;
    }

    .card-body {
        padding: 15px !important;
    }

    /* Form styling for print */
    .table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .table td,
    .table th {
        border: 1px solid #ddd !important;
        padding: 8px !important;
        font-size: 11pt !important;
    }

    .table-borderless td,
    .table-borderless th {
        border: none !important;
    }

    /* Typography for print */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }

    h1 {
        font-size: 18pt !important;
        border-bottom: 3px solid #000 !important;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 14pt !important;
        border-bottom: 2px solid #000 !important;
        padding-bottom: 5px;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 12pt !important;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    /* Print header with company info */
    .print-header {
        display: block !important;
        border-bottom: 3px solid #000;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .print-header .company-name {
        font-size: 20pt;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .print-header .document-title {
        font-size: 16pt;
        font-weight: bold;
        margin-top: 10px;
    }

    /* Section styling */
    .section-title {
        background: #f0f0f0 !important;
        color: black !important;
        padding: 8px 12px !important;
        font-weight: bold !important;
        border: 1px solid #000 !important;
        margin: 15px 0 10px 0 !important;
        font-size: 12pt !important;
    }

    /* Form labels */
    .form-label,
    strong {
        font-weight: bold !important;
        color: black !important;
    }

    /* Input styling for print */
    input,
    select,
    textarea {
        border: 1px solid #000 !important;
        background: white !important;
        padding: 5px !important;
    }

    /* Remove backgrounds */
    .bg-light,
    .bg-primary,
    .bg-secondary,
    .bg-success,
    .bg-danger,
    .bg-warning,
    .bg-info {
        background: white !important;
        color: black !important;
    }

    /* Text utilities */
    .text-muted,
    .text-primary,
    .text-secondary,
    .text-success,
    .text-danger,
    .text-warning,
    .text-info {
        color: black !important;
    }

    /* Badge styling */
    .badge {
        border: 1px solid #000 !important;
        background: white !important;
        color: black !important;
    }

    /* Links */
    a {
        color: black !important;
        text-decoration: none !important;
    }

    /* Row adjustments */
    .row {
        margin: 0 !important;
    }

    .col-md-6,
    .col-md-4,
    .col-md-3,
    .col-md-12 {
        padding: 0 5px !important;
        float: left !important;
    }

    /* Page breaks */
    .page-break {
        page-break-before: always;
    }

    .avoid-page-break {
        page-break-inside: avoid;
    }

    /* Print footer */
    .print-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid #000;
        padding: 10px;
        font-size: 10pt;
        text-align: center;
    }

    /* Application specific styling */
    .application-header {
        border: 2px solid #000;
        padding: 15px;
        margin-bottom: 20px;
        background: #f9f9f9;
    }

    .application-header h4 {
        margin: 0 0 10px 0;
        font-size: 14pt;
    }

    .application-header p {
        margin: 5px 0;
        font-size: 11pt;
    }

    /* Signature section */
    .signature-section {
        margin-top: 30px;
        border-top: 1px solid #000;
        padding-top: 20px;
    }

    .signature-line {
        border-bottom: 1px solid #000;
        width: 200px;
        margin-top: 30px;
        margin-bottom: 5px;
    }

    .signature-label {
        font-size: 10pt;
        color: black;
    }

    /* Grid layout for form fields */
    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }

    .form-grid-full {
        grid-column: 1 / -1;
    }

    /* Print optimization */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide empty fields */
    .empty-field {
        display: none;
    }

    /* Main content area */
    main {
        width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
    }

    /* Card spacing */
    .card {
        margin-bottom: 15px !important;
    }

    /* Table styling */
    table {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    /* Status indicators */
    .status-badge {
        border: 1px solid #000;
        padding: 2px 8px;
        font-weight: bold;
        font-size: 10pt;
    }

    /* Date formatting */
    .date-display {
        font-weight: bold;
    }

    /* Emergency contact section */
    .emergency-section {
        border-left: 3px solid #000;
        padding-left: 15px;
        margin: 15px 0;
    }

    /* Skills section */
    .skills-list {
        list-style-type: disc;
        padding-left: 20px;
        margin: 10px 0;
    }

    /* References section */
    .references-section {
        page-break-inside: avoid;
    }

    /* Additional notes */
    .notes-section {
        border: 1px dashed #000;
        padding: 10px;
        margin: 15px 0;
        min-height: 100px;
    }

    /* Consent section */
    .consent-section {
        border: 2px solid #000;
        padding: 15px;
        margin: 20px 0;
        background: #f5f5f5;
    }

    .consent-section h5 {
        margin-top: 0;
        margin-bottom: 10px;
    }

    /* Company logo placeholder */
    .company-logo {
        max-width: 150px;
        max-height: 80px;
        margin-bottom: 10px;
    }

    /* Document info */
    .document-info {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
        font-size: 10pt;
        border-bottom: 1px solid #000;
        padding-bottom: 10px;
    }

    /* Ensure all text is black */
    .text-primary,
    .text-success,
    .text-danger,
    .text-warning,
    .text-info {
        color: black !important;
    }

    /* Button hiding */
    button,
    .btn {
        display: none !important;
    }

    /* Remove all transitions and animations */
    * {
        transition: none !important;
        animation: none !important;
    }

    /* Ensure proper page margins */
    @page {
        margin: 1cm;
        size: A4;
    }

    /* Print layout */
    .print-layout {
        display: block !important;
    }

    /* Hide admin specific elements */
    .admin-sidebar,
    .admin-navbar {
        display: none !important;
    }

    /* Main content full width */
    .col-md-9,
    .col-lg-10 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Form field labels */
    .field-label {
        font-weight: bold;
        display: inline-block;
        min-width: 150px;
    }

    .field-value {
        display: inline-block;
        border-bottom: 1px dotted #000;
        min-width: 200px;
        padding: 0 5px;
    }

    /* Two column layout */
    .two-column {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .two-column .left,
    .two-column .right {
        width: 48%;
    }

    /* Section headers */
    .section-header {
        background: #000;
        color: #fff;
        padding: 8px 12px;
        font-weight: bold;
        margin: 20px 0 15px 0;
        font-size: 12pt;
    }

    /* Form sections */
    .form-section {
        border: 1px solid #000;
        padding: 15px;
        margin-bottom: 15px;
    }

    .form-section h5 {
        margin-top: 0;
        border-bottom: 1px solid #000;
        padding-bottom: 8px;
        margin-bottom: 15px;
    }
}