.calculatrice-container {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background: #f8f9fa;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
} .calculatrice-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
}
.calculatrice-header h2 {
margin: 0 0 15px 0;
font-size: 24px;
font-weight: 600;
}
.calculatrice-controls {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.btn {
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: 500;
transition: all 0.3s ease;
text-decoration: none;
display: inline-block;
text-align: center;
min-width: 120px;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn-primary {
background: #007bff;
color: white;
}
.btn-primary:hover {
background: #0056b3;
}
.btn-secondary {
background: #6c757d;
color: white;
}
.btn-secondary:hover {
background: #545b62;
}
.btn-success {
background: #28a745;
color: white;
}
.btn-success:hover {
background: #1e7e34;
}
.btn-info {
background: #17a2b8;
color: white;
}
.btn-info:hover {
background: #117a8b;
}
.btn-warning {
background: #ffc107;
color: #212529;
}
.btn-warning:hover {
background: #e0a800;
}
.btn-danger {
background: #dc3545;
color: white;
}
.btn-danger:hover {
background: #c82333;
} .calculatrice-table-container {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.calculatrice-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
.calculatrice-table th {
background: #f8f9fa;
padding: 12px 8px;
text-align: center;
font-weight: 600;
border-bottom: 2px solid #dee2e6;
color: #495057;
}
.calculatrice-table td {
padding: 8px;
border-bottom: 1px solid #dee2e6;
text-align: center;
vertical-align: middle;
}
.calculatrice-table tr:hover {
background-color: #e3f2fd !important;
}
.calculatrice-table tr:hover td {
color: #000000 !important;
}
.calculatrice-table tr:hover .time-input {
background-color: #ffffff !important;
color: #000000 !important;
}
.calculatrice-table tr:hover .total-cell {
background-color: #d4edda !important;
color: #155724 !important;
} .time-input {
width: 50px;
height: 35px;
border: 2px solid #e9ecef;
border-radius: 4px;
text-align: center;
font-size: 14px;
font-weight: 500;
transition: border-color 0.3s ease;
}
.time-input:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.time-input.invalid {
border-color: #dc3545;
background-color: #fff5f5;
} .total-cell {
background: #e8f5e8;
font-weight: 600;
color: #155724;
padding: 8px 12px;
border-radius: 4px;
min-width: 80px;
}
.total-row {
background: #e3f2fd;
font-weight: 600;
color: #000000;
}
.total-row:hover {
background: #e3f2fd !important;
}
.total-row td {
border-top: 2px solid #dee2e6;
color: #000000;
}
.total-row td strong {
color: #000000 !important;
}
.total-row:hover td {
color: #000000 !important;
}
.total-row:hover .total-cell {
background-color: #d4edda !important;
color: #155724 !important;
} .include-checkbox {
width: 18px;
height: 18px;
cursor: pointer;
} .line-actions {
display: flex;
gap: 5px;
justify-content: center;
}
.btn-small {
padding: 4px 8px;
font-size: 12px;
min-width: auto;
} .calculatrice-info {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 20px;
}
.format-info, .shortcuts-info {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.format-info h4, .shortcuts-info h4 {
margin: 0 0 15px 0;
color: #ffffff;
font-size: 16px;
font-weight: 600;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 10px;
border-radius: 5px;
margin: -10px -10px 15px -10px;
}
.format-info ul, .shortcuts-info ul {
margin: 0;
padding-left: 20px;
}
.format-info li, .shortcuts-info li {
margin-bottom: 8px;
color: #495057;
font-weight: 500;
}
kbd {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 3px;
padding: 2px 6px;
font-size: 12px;
font-family: monospace;
color: #495057;
} .usage-info {
grid-column: 1 / -1;
background: white;
padding: 25px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-top: 20px;
}
.usage-info h4 {
margin: 0 0 20px 0;
color: #ffffff;
font-size: 18px;
font-weight: 600;
text-align: center;
padding: 15px;
border-radius: 5px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
margin: -25px -25px 20px -25px;
}
.usage-steps {
display: flex;
flex-direction: column;
gap: 20px;
}
.step {
display: flex;
align-items: flex-start;
gap: 15px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
border-left: 4px solid #007bff;
}
.step-number {
background: #007bff;
color: white;
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 14px;
flex-shrink: 0;
}
.step-content {
flex: 1;
}
.step-content strong {
display: block;
color: #495057;
font-size: 16px;
margin-bottom: 8px;
}
.step-content p {
margin: 0;
color: #6c757d;
line-height: 1.5;
} .calculatrice-history {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-top: 20px;
}
.calculatrice-history h3 {
margin: 0 0 15px 0;
color: #495057;
}
.history-item {
border: 1px solid #dee2e6;
border-radius: 4px;
padding: 15px;
margin-bottom: 10px;
background: #f8f9fa;
}
.history-item:hover {
background: #e9ecef;
}
.history-date {
font-weight: 600;
color: #495057;
}
.history-total {
color: #28a745;
font-weight: 600;
} .weekly-table {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.weekly-table th {
background: #495057;
color: white;
padding: 12px 8px;
text-align: center;
font-weight: 600;
}
.weekly-table td {
padding: 8px;
border: 1px solid #dee2e6;
text-align: center;
}
.weekly-total {
background: #e8f5e8;
font-weight: 600;
color: #155724;
} @media (max-width: 768px) {
.calculatrice-container {
padding: 10px;
}
.calculatrice-controls {
flex-direction: column;
}
.btn {
width: 100%;
margin-bottom: 5px;
}
.calculatrice-info {
grid-template-columns: 1fr;
}
.usage-info {
padding: 20px;
}
.step {
flex-direction: column;
text-align: center;
gap: 10px;
}
.step-number {
align-self: center;
}
.calculatrice-table {
font-size: 12px;
}
.time-input {
width: 40px;
height: 30px;
font-size: 12px;
}
.calculatrice-table th,
.calculatrice-table td {
padding: 6px 4px;
}
}
@media (max-width: 480px) {
.calculatrice-table {
font-size: 11px;
}
.time-input {
width: 35px;
height: 28px;
font-size: 11px;
}
.calculatrice-table th,
.calculatrice-table td {
padding: 4px 2px;
}
} @keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.calculatrice-line {
animation: fadeIn 0.3s ease-in-out;
} .calculatrice-line.excluded {
opacity: 0.5;
background-color: #f8f9fa;
}
.calculatrice-line.excluded .time-input {
background-color: #e9ecef;
} .message {
padding: 10px 15px;
border-radius: 4px;
margin: 10px 0;
font-weight: 500;
}
.message.success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.message.error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.message.info {
background-color: #d1ecf1;
color: #0c5460;
border: 1px solid #bee5eb;
} .loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid #007bff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
} .tooltip {
position: relative;
display: inline-block;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 200px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -100px;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
} @media (prefers-color-scheme: dark) {
.calculatrice-container {
background: #2d3748;
color: #e2e8f0;
}
.calculatrice-table-container,
.format-info,
.shortcuts-info,
.calculatrice-history {
background: #4a5568;
color: #e2e8f0;
}
.calculatrice-table th {
background: #2d3748;
color: #e2e8f0;
}
.time-input {
background: #4a5568;
color: #e2e8f0;
border-color: #718096;
}
.time-input:focus {
border-color: #63b3ed;
}
.format-info li, .shortcuts-info li {
color: #e2e8f0;
}
kbd {
background: #2d3748;
color: #e2e8f0;
border-color: #718096;
}
}