/* Professional Timesheet Calculator Styles */
/* Last Updated: 2025-12-19 - Signature section hidden on screen, visible only on print */

.professional-timesheet {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.professional-timesheet h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

/* Calculator Card */
.calculator-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.section-title svg {
    width: 28px;
    height: 28px;
    color: #0066cc;
}

/* Settings Section */
.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-field label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-field input[type="text"],
.input-field input[type="date"],
.input-field input[type="number"],
.input-field select,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field input:focus,
.input-field select:focus,
.form-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Time Entry Section */
.time-entry-section {
    margin-bottom: 2rem;
}

.format-hint {
    background: #e3f2fd;
    border-left: 4px solid #0066cc;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.timesheet-table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.timesheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.timesheet-table thead {
    background: #f8f9fa;
}

.timesheet-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.timesheet-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.timesheet-table tbody tr:hover {
    background: #f8f9fa;
}

.day-name {
    font-weight: 600;
    color: #1a1a1a;
}

.day-date {
    color: #666;
}

.time-input,
.break-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.95rem;
}

.time-input {
    max-width: 140px;
}

.break-input {
    max-width: 90px;
}

.time-input:focus,
.break-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.hours-display {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hours-hhmm {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

.hours-decimal {
    color: #666;
    font-size: 0.85rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Results Section */
.results-section {
    margin-top: 3rem;
}

.results-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #0066cc;
}

.print-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.print-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.print-logo img {
    height: 40px;
    width: 40px;
}

.print-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
}

.print-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.print-title p {
    margin: 0.25rem 0 0 0;
    color: #666;
    font-size: 1rem;
}

/* Employee Info Display */
.employee-info-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item .label {
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
}

.info-item .value {
    font-size: 1rem;
    color: #1a1a1a;
}

/* Summary Table */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.summary-table thead {
    background: #f8f9fa;
}

.summary-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
}

.summary-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

/* Totals Grid */
.totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

    .print-signature-section {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
        margin: 2rem 0 1rem 0 !important;
        padding: 1.5rem 0 !important;
        border-top: 2px solid #000 !important;
        page-break-inside: avoid !important;
    }

    .signature-line {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .signature-line span {
        display: block !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        color: #000 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .signature-underline {
        display: block !important;
        border-bottom: 2px solid #000 !important;
        height: 40px !important;
        width: 100% !important;
    }

    .signature-underline::after {
        display: none !important;
    }

    .results-footer {
        display: block !important;
        margin-top: 1rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid #999 !important;
    }

    .timestamp {
        display: block !important;
        text-align: center !important;
        font-size: 8px !important;
        color: #666 !important;
        margin-bottom: 0.5rem !important;
    }

.total-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.total-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.total-card.overtime {
    background: #fff3cd;
    border-color: #ffc107;
}

.total-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.total-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.total-decimal {
    font-size: 1rem;
    color: #666;
}

/* Info Banner */
.info-banner {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #e3f2fd;
    border-left: 4px solid #0066cc;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.info-banner svg {
    width: 24px;
    height: 24px;
    color: #0066cc;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-banner div {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.info-banner strong {
    color: #1a1a1a;
}

/* Signature Section */
.print-signature-section {
    display: none !important; /* Hidden on screen with !important to override other rules */
}

.signature-line {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.signature-line span {
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signature-underline {
    border-bottom: 2px solid #333;
    height: 50px;
    position: relative;
}

.signature-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 1px;
    background: #999;
}

/* Results Footer */
.results-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
    flex-wrap: wrap;
    gap: 1rem;
}

.timestamp {
    color: #666;
    font-size: 0.9rem;
}

.print-actions {
    display: flex;
    gap: 1rem;
}

.print-footer-section {
    display: none;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 2px solid #e9ecef;
    color: #666;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.print-branding {
    display: block;
    margin-bottom: 0.5rem;
}

/* SEO Content */
.seo-content {
    max-width: 800px;
    margin: 4rem auto 2rem auto;
    padding: 2rem;
    line-height: 1.8;
}

.seo-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: #1a1a1a;
}

.seo-content p {
    margin-bottom: 1rem;
    color: #555;
}

.steps-list,
.features-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.steps-list li,
.features-list li {
    margin-bottom: 0.75rem;
    color: #555;
}

.faq-section {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #555;
    line-height: 1.7;
}

.cta-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-radius: 12px;
    margin-top: 3rem;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Print Styles */
@media print {
    @page {
        size: letter portrait;
        margin: 0.5in;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    header, footer, nav,
    .calculator-card,
    .intro-text,
    .seo-content {
        display: none !important;
    }

    .btn,
    .print-actions,
    button {
        display: none !important;
        visibility: hidden !important;
    }

    .professional-timesheet h1 {
        display: none !important;
    }

    .results-section {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .results-card {
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .results-header {
        display: block !important;
        padding: 10px 0 !important;
        border-bottom: 2px solid #000;
        margin-bottom: 15px;
    }

    .print-logo span,
    .print-title h2 {
        color: #000 !important;
    }

    .summary-table {
        font-size: 9px !important;
    }

    .summary-table th,
    .summary-table td {
        padding: 5px !important;
    }

    .totals-grid {
        page-break-inside: avoid;
    }

    .print-signature-section {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
        margin: 2rem 0 1rem 0 !important;
        padding: 1.5rem 0 !important;
        border-top: 2px solid #000 !important;
        page-break-inside: avoid !important;
    }

    .signature-line {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .signature-line span {
        display: block !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        color: #000 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .signature-underline {
        display: block !important;
        border-bottom: 2px solid #000 !important;
        height: 40px !important;
        width: 100% !important;
    }

    .signature-underline::after {
        display: none !important;
    }

    .results-footer {
        display: block !important;
        margin-top: 1rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid #999 !important;
    }

    .timestamp {
        display: block !important;
        text-align: center !important;
        font-size: 8px !important;
        color: #666 !important;
        margin-bottom: 0.5rem !important;
    }

    .print-footer-section {
        display: flex !important;
        justify-content: space-between;
        font-size: 8px !important;
        margin-top: 15px;
    }

    .signature-line span {
        font-size: 8px !important;
    }

    .signature-underline {
        height: 35px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .professional-timesheet {
        padding: 1rem;
    }

    .professional-timesheet h1 {
        font-size: 2rem;
    }

    .calculator-card,
    .results-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .timesheet-table {
        font-size: 0.85rem;
    }

    .timesheet-table th,
    .timesheet-table td {
        padding: 0.5rem 0.25rem;
    }

    .time-input {
        max-width: 120px;
    }

    .print-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .print-signature-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .totals-grid {
        grid-template-columns: 1fr;
    }

    .print-signature-section {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
        margin: 2rem 0 1rem 0 !important;
        padding: 1.5rem 0 !important;
        border-top: 2px solid #000 !important;
        page-break-inside: avoid !important;
    }

    .signature-line {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .signature-line span {
        display: block !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        color: #000 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .signature-underline {
        display: block !important;
        border-bottom: 2px solid #000 !important;
        height: 40px !important;
        width: 100% !important;
    }

    .signature-underline::after {
        display: none !important;
    }

    .results-footer {
        display: block !important;
        margin-top: 1rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid #999 !important;
    }

    .timestamp {
        display: block !important;
        text-align: center !important;
        font-size: 8px !important;
        color: #666 !important;
        margin-bottom: 0.5rem !important;
    }
}
