/* Tool-specific styles only - base styles are in tool-layout.css */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #141414;
    border-bottom: 1px solid #374151;
    z-index: 100;
}

    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

    margin-top: 60px;
    padding: 48px 24px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    max-width: 720px;
    margin: 0 auto;
}

.tool-main {
    flex: 1;
    padding: 32px 24px 120px;
}

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
}

.settings-title {
    font-size: 18px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 4px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.setting-item > label,
.setting-content > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.setting-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.text-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.text-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.text-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-input::placeholder {
    color: #6b7280;
}

.select-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.select-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.select-input option {
    background-color: #1a1a1a;
}

.time-input {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    width: 100%;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.time-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.time-input::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

label.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #e5e7eb;
}

label.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 4px;
    position: relative;
    transition: all 150ms ease;
    flex-shrink: 0;
}

label.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

label.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

label.checkbox-label input[type="checkbox"]:disabled + .checkbox-custom {
    opacity: 0.5;
    cursor: not-allowed;
}

.pro-features-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pro-feature {
    position: relative;
    opacity: 0.6;
}

.pro-feature.unlocked {
    opacity: 1;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.day-entry {
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 150ms ease;
}

.day-entry:hover {
    border-color: #374151;
}

.day-entry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.day-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.day-date {
    font-size: 13px;
    color: #6b7280;
}

.night-shift-badge {
    font-size: 11px;
    font-weight: 500;
    color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.day-entry-fields {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.time-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-field label {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}

.break-field {
    flex: 0.7;
}

.break-input {
    padding: 10px 12px;
}

.day-entry-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}

.daily-total-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.daily-total-value {
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
    min-width: 60px;
    text-align: right;
}

.daily-total-value.has-value {
    color: #10b981;
}

.double-time-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 26px;
}

.double-time-settings label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.warning-message {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.button-primary {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
    flex: 1;
}

.button-secondary {
    background-color: #1a1a1a;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.button-danger {
    border-color: #dc2626;
    color: #fca5a5;
}

.button-danger:hover {
    background-color: #7f1d1d;
}

.output-section {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 16px 12px;
    background-color: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #e5e7eb;
}

.stat-highlight {
    color: #10b981;
}

.overtime-stats {
    border-top: 1px solid #374151;
    padding-top: 12px;
}

.table-container {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
}

.timesheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.timesheet-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.timesheet-table th {
    background-color: #1a1a1a;
    color: #9ca3af;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #374151;
}

.timesheet-table td {
    padding: 10px 12px;
    color: #e5e7eb;
    border-bottom: 1px solid #1a1a1a;
}

.timesheet-table tbody tr:nth-child(odd) {
    background-color: #141414;
}

.timesheet-table tbody tr:nth-child(even) {
    background-color: #0f0f0f;
}

.timesheet-table tbody tr:hover {
    background-color: #1a1a1a;
}

.timesheet-table .col-hours {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.timesheet-table tfoot .total-row {
    background-color: #1a1a1a;
    border-top: 2px solid #374151;
}

.timesheet-table tfoot .total-row td {
    font-weight: 600;
    color: #ffffff;
    padding: 12px;
    border-bottom: none;
}

.output-actions {
    display: flex;
    gap: 12px;
}

.pro-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

.pro-action-buttons {
    display: flex;
    gap: 12px;
}

.pro-feature-btn {
    position: relative;
}

.saved-timesheets-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

.save-new {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.save-new .text-input {
    flex: 1;
}

.saved-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.saved-actions {
    display: flex;
    gap: 8px;
}

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #10b981;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms ease;
}

.toast.toast-visible {
    opacity: 1;
}

.pro-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.pro-cta-text {
    font-size: 14px;
    color: #d1d5db;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.modal-overlay.modal-hidden {
    display: none;
}

.modal-overlay.modal-visible {
    display: flex;
}

.modal {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #e5e7eb;
}

.modal-content {
    padding: 24px;
}

.pro-features-list {
    margin-bottom: 24px;
}

.pro-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.feature-check {
    width: 20px;
    height: 20px;
    background-color: #059669;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    color: #e5e7eb;
}

.modal-cta {
    width: 100%;
    display: block;
}

.footer {
    background-color: #0a0a0a;
    border-top: 1px solid #374151;
    padding: 32px 24px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    color: #6b7280;
}

.error-message {
    background-color: #7f1d1d;
    border: 1px solid #dc2626;
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 8px;
}

.success-message {
    background-color: #064e3b;
    border: 1px solid #059669;
    color: #6ee7b7;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 8px;
}

.modal-hidden {
    display: none;
}

body.printing {
    overflow: visible;
}

@media (max-width: 768px) {
        padding: 32px 16px;
    }

        font-size: 28px;
        line-height: 36px;
    }

        font-size: 14px;
    }

    .tool-main {
        padding: 24px 16px 100px;
    }

    .tool-container {
        gap: 32px;
    }

    .settings-group {
        padding: 16px;
    }

    .output-section {
        padding: 16px;
    }

    .stat-value {
        font-size: 16px;
    }

    .day-entry-fields {
        flex-wrap: wrap;
    }

    .time-field {
        flex: 1 1 calc(50% - 6px);
    }

    .break-field {
        flex: 1 1 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .output-actions {
        flex-direction: column;
    }

    .pro-action-buttons {
        flex-direction: column;
    }

    .save-new {
        flex-direction: column;
    }

    .saved-actions {
        flex-direction: column;
    }

    .pro-cta-content {
        flex-direction: column;
        gap: 10px;
    }

        padding: 0 16px;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .day-entry-fields {
        flex-direction: column;
    }

    .time-field {
        flex: 1 1 100%;
    }

    .break-field {
        flex: 1 1 100%;
    }

    .day-entry {
        padding: 12px;
    }
}

@media print {
    * {
        color: #000000 !important;
        border-color: #cccccc !important;
    }

    body {
        color: #000000 !important;
    }

    .nav,
    .hero-trust,
    .input-section,
    .pro-cta-bar,
    .output-actions,
    .pro-actions,
    .saved-timesheets-section,
    .modal-overlay,
    .toast,
    .warning-message,
    .action-buttons {
        display: none !important;
    }

        margin-top: 0;
        padding: 16px 0;
    }

        font-size: 24px;
        color: #000000 !important;
    }

        color: #333333 !important;
    }

    .tool-main {
        padding: 0;
    }

    .tool-container {
        max-width: 100%;
        gap: 16px;
    }

    .output-section {
        border: none !important;
        padding: 0;
    }

    .output-section.section-hidden {
        display: flex !important;
    }

    .stat-card {
        border: 1px solid #cccccc !important;
    }

    .stat-value {
        color: #000000 !important;
    }

    .stat-highlight {
        color: #000000 !important;
        font-weight: 700;
    }

    .timesheet-table th {
        background-color: #e5e5e5 !important;
        color: #000000 !important;
    }

    .timesheet-table td {
        color: #000000 !important;
    }

    .timesheet-table tbody tr:nth-child(odd) {
    }

    .timesheet-table tbody tr:nth-child(even) {
    }

    .timesheet-table tfoot .total-row {
        background-color: #e5e5e5 !important;
    }

    .timesheet-table tfoot .total-row td {
        color: #000000 !important;
    }

    .footer {
        border: none !important;
        padding: 8px 0;
    }

    .footer p {
        color: #666666 !important;
        font-size: 11px;
    }
}