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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Nagłówki */
h1, h2, h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 20px;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.3rem;
}

/* Dashboard i kontrolki */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 2px 6px;
    font-size: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-small:hover {
    background-color: #2980b9;
}

.increment-btn {
    background-color: #27ae60;
}

.increment-btn:hover {
    background-color: #219653;
}

.multiply-btn {
    background-color: #f39c12;
}

.multiply-btn:hover {
    background-color: #d35400;
}

.delete-btn {
    background-color: #e74c3c;
    padding: 2px 6px;
    font-size: 12px;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
}

.delete-btn:hover {
    background-color: #c0392b;
}

/* Stanowiska */
.stanowiska-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stanowisko-panel {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Usługi */
.uslugi-list {
    min-height: 100px;
    margin-bottom: 20px;
}

.usluga-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.usluga-item:last-child {
    border-bottom: none;
}

.usluga-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    font-weight: bold;
    text-align: right;
}

.panel-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

/* Tabele */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Sekcje usług */
.service-section {
    margin-bottom: 20px;
}

.service-section h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #34495e;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}

.service-btn {
    padding: 10px 5px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.service-btn:hover {
    background-color: #2980b9;
}

.service-btn.other {
    background-color: #2ecc71;
}

.service-btn.other:hover {
    background-color: #27ae60;
}

/* Ładowanie i aktualizacje */
.loading {
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
}

#last-update {
    font-size: 14px;
    color: #7f8c8d;
    display: inline-flex;
    align-items: center;
}

#last-update.refreshing::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 2px solid #3498db;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-data {
    opacity: 0.6;
    transition: opacity 0.3s;
    animation: pulse 1.5s infinite;
}

/* Animacje */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

/* Powiadomienia */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #2ecc71;
    color: white;
    border-radius: 4px;
    display: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.notification.error {
    background-color: #e74c3c;
}

/* Stopka */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #7f8c8d;
    font-size: 14px;
}
.car-info-section {
    margin-bottom: 20px;
}
.car-info-input {
    padding: 8px;
    width: 70%;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}
.current-car-info {
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}