/* Free Payroll Time Calculator Styles */
:root {
    --fptc-primary: #059669; /* Emerald */
    --fptc-primary-hover: #047857;
    --fptc-secondary: #10b981;
    --fptc-bg: #f0fdf4;
    --fptc-card: #ffffff;
    --fptc-text: #065f46;
    --fptc-text-muted: #047857;
    --fptc-border: #a7f3d0;
    --fptc-error: #dc2626;
    --fptc-radius: 12px;
}

.fptc-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 900px;
    margin: 2rem auto;
    background: var(--fptc-card);
    padding: 2rem;
    border-radius: var(--fptc-radius);
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--fptc-border);
    box-sizing: border-box;
}

.fptc-wrapper * {
    box-sizing: border-box;
}

.fptc-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fptc-icon {
    color: var(--fptc-primary);
    margin-bottom: 0.5rem;
}

.fptc-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    color: var(--fptc-text);
}

.fptc-header p {
    margin: 0;
    color: var(--fptc-text-muted);
    font-size: 0.95rem;
}

.fptc-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.fptc-input-section,
.fptc-options-section {
    background: var(--fptc-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--fptc-border);
}

.fptc-input-section h3,
.fptc-options-section h3 {
    margin: 0 0 1rem 0;
    color: var(--fptc-text);
    font-size: 1.1rem;
}

.fptc-employees-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.fptc-employee-card {
    background: var(--fptc-card);
    padding: 1.5rem;
    border: 2px solid var(--fptc-border);
    border-radius: 8px;
}

.fptc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fptc-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fptc-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fptc-text);
}

.fptc-form-group input {
    padding: 0.65rem;
    border: 1px solid var(--fptc-border);
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--fptc-bg);
    color: var(--fptc-text);
}

.fptc-form-group input:focus {
    outline: 2px solid var(--fptc-primary);
    border-color: transparent;
}

.fptc-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    color: var(--fptc-text);
    font-weight: 500;
}

.fptc-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.fptc-remove-btn {
    background: var(--fptc-error);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}

.fptc-remove-btn:hover {
    background: #b91c1c;
}

.fptc-btn-primary,
.fptc-btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.fptc-btn-primary {
    background: var(--fptc-primary);
    color: white;
    margin-top: 1rem;
}

.fptc-btn-primary:hover {
    background: var(--fptc-primary-hover);
}

.fptc-btn-secondary {
    background: var(--fptc-secondary);
    color: white;
    margin-top: 0;
}

.fptc-btn-secondary:hover {
    background: var(--fptc-primary);
}

.fptc-results {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 2rem;
    border: 2px solid var(--fptc-border);
    border-radius: 12px;
    animation: slideDown 0.4s ease-out;
}

.fptc-results.hidden {
    display: none;
}

.fptc-results h3 {
    margin: 0 0 1.5rem 0;
    color: var(--fptc-text);
    font-size: 1.3rem;
}

.fptc-results-table {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

table.fptc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

table.fptc-table th {
    background: var(--fptc-primary);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

table.fptc-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--fptc-border);
    color: var(--fptc-text);
}

table.fptc-table tr:last-child td {
    border-bottom: 2px solid var(--fptc-primary);
}

.fptc-grand-total {
    background: var(--fptc-card);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--fptc-primary);
}

.fptc-grand-total-label {
    font-size: 1.1rem;
    color: var(--fptc-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.fptc-grand-total-amount {
    font-size: 2.5rem;
    color: var(--fptc-primary);
    font-weight: 700;
}

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

@media (max-width: 768px) {
    .fptc-wrapper {
        margin: 1rem;
        padding: 1.5rem;
    }

    .fptc-form-row {
        grid-template-columns: 1fr;
    }

    .fptc-grand-total-amount {
        font-size: 2rem;
    }
}
