/**
 * Calculadora de Horas Trabajadas - Styles
 */

/* Reset and general styles */
.cht-calculator-container * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.cht-calculator-container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.cht-calculator h2 {
    color: #333;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
}

/* Time entry styles */
.cht-time-entries {
    margin-bottom: 20px;
}

.cht-entry {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    position: relative;
}

.cht-entry:not(:first-child) {
    border-top: 1px solid #eee;
}

.cht-time-input, .cht-break-input {
    flex: 1;
    min-width: 200px;
}

.cht-time-input label, .cht-break-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.cht-time, .cht-break {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.cht-remove-entry {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ff5555;
    cursor: pointer;
    font-size: 18px;
}

/* Controls */
.cht-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 15px;
}

.cht-button {
    flex: 1;
    padding: 12px 20px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.cht-button:hover {
    background-color: #333333;
}

/* Results */
.cht-results {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
}

.cht-result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cht-result-item:last-child {
    border-bottom: none;
}

.cht-result-label {
    font-weight: 600;
    color: #555;
}

.cht-result-value {
    font-weight: 700;
    color: #000;
    font-size: 18px;
}

/* Responsive styles */
@media (max-width: 600px) {
    .cht-calculator-container {
        padding: 15px;
        margin: 10px;
    }
    
    .cht-entry {
        flex-direction: column;
        gap: 10px;
    }
    
    .cht-time-input, .cht-break-input {
        min-width: 100%;
    }
    
    .cht-controls {
        flex-direction: column;
    }
} 