/* ===========================================
   Time Card Calculator - Tool Specific Styles (Slate Gray/Orange Theme)
   =========================================== */

/* Tool Layout */
.tcc-box {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Settings/Rate Input --- */
.tcc-settings {
    background: #f8fafc; /* Pale Gray BG */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    text-align: left;
}

.tcc-rate-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tcc-label {
    font-size: 1rem;
    font-weight: 600;
    color: #475569; /* Slate Gray Label */
    display: block;
    white-space: nowrap;
}

#hourlyRate {
    width: 150px;
    padding: 10px;
    border: 2px solid #fdba74; /* Light Orange Border */
    border-radius: 6px;
    font-size: 1.1rem;
    text-align: right;
    color: #1f2937;
}
#hourlyRate:focus {
    border-color: #f97316; /* Bright Orange Focus */
    outline: none;
}

/* --- Time Entry Table --- */
.tcc-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: white;
}

.tcc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Ensure space for columns */
}

.tcc-table th {
    background: #64748b; /* Medium Slate Gray Header */
    color: white;
    padding: 12px 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tcc-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
}

.tcc-table tr:last-child td {
    border-bottom: none;
}

.tcc-table input[type="time"], .tcc-table input[type="number"] {
    width: 90%;
    padding: 8px 5px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.tcc-table .total-hours {
    font-weight: 700;
    color: #f97316; /* Bright Orange for Daily Total */
}

/* Action Button */
#addRow {
    background: #f97316; /* Bright Orange */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    display: block;
    width: 100%;
    margin-bottom: 25px;
}
#addRow:hover {
    background: #ea580c;
}

.remove-row {
    background: none;
    border: none;
    color: #94a3b8; /* Light Gray for Delete */
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 5px;
    transition: color 0.2s;
}
.remove-row:hover {
    color: #ef4444; /* Red on hover */
}

/* --- Summary Results --- */
.tcc-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 25px;
    background: #e2e8f0; /* Light Slate Gray BG */
    border-radius: 12px;
}

.tcc-summary-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tcc-summary-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.tcc-summary-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f97316; /* Highlight Orange */
    line-height: 1.1;
}

.tcc-summary-value.pay {
    color: #059669; /* Green for Pay */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .tcc-settings {
        text-align: center;
    }
    .tcc-rate-group {
        flex-direction: column;
        gap: 10px;
    }
    #hourlyRate {
        width: 100%;
        text-align: center;
    }
    .tcc-summary {
        grid-template-columns: 1fr;
    }
    .tcc-table {
        min-width: 500px;
    }
}