/* Cover Letter Generator - Custom Styles */

/* Body */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Stats Cards */
.stats-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Cover Letter Content Display */
.cover-letter-content {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

.cover-letter-content p {
    margin-bottom: 0.8rem;
}

.cover-letter-content p:last-child {
    margin-bottom: 0;
}

/* Resume Text Display */
.resume-text-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 600px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

/* Job Description Display */
.job-description-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

/* Card improvements */
.card {
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Navbar active state */
.navbar .nav-link.active {
    font-weight: 600;
}

/* Textarea improvements */
textarea.form-control {
    resize: vertical;
}

/* Definition list spacing */
dl dt {
    color: #6c757d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.75rem;
}

dl dt:first-child {
    margin-top: 0;
}

dl dd {
    margin-bottom: 0;
}

/* Alert custom */
.alert {
    border-radius: 8px;
}

/* Loading spinner overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Print-only elements (hidden on screen) */
.print-only {
    display: none;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .no-print,
    .alert,
    .d-flex.justify-content-between.align-items-center.mb-4 {
        display: none !important;
    }

    body {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    main.container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .card-header {
        display: none !important;
    }

    .card-body {
        padding: 0 !important;
    }

    .col-lg-4,
    .col-md-4 {
        display: none !important;
    }

    .col-lg-8,
    .col-md-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .cover-letter-content {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }

    .resume-text-content {
        max-height: none !important;
        overflow: visible !important;
        font-size: 10pt;
    }

    .print-only {
        display: block !important;
    }
}
