body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1f1f1f;
    color: white;
}

.sidebar {
    width: 230px;
    height: 100vh;
    background: #000;
    position: fixed;
    padding-top: 30px;
}

.sidebar .logo {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 40px;
}

.menu-item {
    display: block;
    padding: 14px 25px;
    text-decoration: none;
    color: #dcdcdc;
    font-size: 18px;
}

.menu-item:hover {
    background: #333;
}

.logout {
    margin-top: 40px;
    color: #ff4d4d;
}

.content {
    margin-left: 250px;
    padding: 25px;
}

.center-box {
    background: #2a2a2a;
    padding: 30px;
    max-width: 400px;
    margin: 50px auto;
    border-radius: 10px;
}

input, select {
    width: 220px;
    padding: 6px;
    margin-top: 3px;
    margin-bottom: 6px;
    border: 1px solid #444;
    background-color: white;
    color: black;
}

button {
    background: #ff6600;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

button:hover {
    background: #cc5200;
}

.table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.table th, .table td {
    border-bottom: 1px solid #555;
    padding: 10px;
}

.card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    width: 200px;
    margin-right: 20px;
}

.cards {
    display: flex;
}

label {
    font-size: 13px;
    margin-top: 4px;
}

textarea {
    width: 500px;
    height: 70px;
    background: white;
    color: black;
}

.oil-grid {
    display: grid;
    grid-template-columns: repeat(6, 120px);
    gap: 15px;
    margin-top: 5px;
}

.oil-grid input {
    width: 100%;
}

form label {
    display: block;
    margin-top: 10px;
}

.form-layout {
    display: grid;
    grid-template-columns: 380px 350px;
    gap: 40px;
    align-items: start;
}

.machine-photo img {
    width: 320px;
    border-radius: 6px;
    border: 1px solid #444;
}

.report-summary{
display:flex;
gap:25px;
margin:25px 0;
flex-wrap:wrap;
}

.summary-box{
background:#1e1e1e;
padding:15px 20px;
border-radius:6px;
border:1px solid #333;
min-width:150px;
}

.summary-box span{
display:block;
font-size:13px;
color:#aaa;
margin-bottom:5px;
}

.summary-box strong{
font-size:20px;
color:#fff;
}

.table th,
.table td {
    text-align: center;
    vertical-align: middle;
}

.report-topbar{
  display:flex;
  gap:14px;
  align-items:flex-end;
  flex-wrap:wrap;            /* në ekran të vogël bie poshtë, në PC rri 1 vijë */
  margin: 8px 0 14px 0;
}

.topbar-field{
  min-width: 260px;
}

.report-topbar label{
  display:block;
  font-size:12px;
  opacity:.85;
  margin:0 0 6px 0;
}

.report-topbar select{
  width:100%;
  height:38px;
  border-radius:6px;
}

.topbar-actions{
  display:flex;
  gap:10px;
  align-items:center;
  white-space:nowrap;
}

.machine-photo{
    position:absolute;
    top:90px;
    left:650px;
}

.chart-block{
page-break-inside: avoid;
break-inside: avoid;
margin-top:30px;
}


/* MOBILE DASHBOARD */
@media (max-width:768px){

.content > div:first-child{
display:flex !important;
flex-wrap:nowrap !important;
overflow-x:auto !important;
gap:15px;
}

.content > div:first-child > div{
min-width:200px;
flex-shrink:0;
}

}

/* MOBILE TOP MENU */
@media (max-width:768px){

.sidebar{
position:fixed;
top:0;
left:0;
width:100%;
height:auto;
display:flex;
flex-direction:row;
overflow-x:auto;
background:#000;
z-index:1000;
}

.sidebar .logo{
display:none;
}

.sidebar a{
padding:12px 15px;
white-space:nowrap;
font-size:14px;
}

.content{
margin-left:0 !important;
margin-top:60px;
}

}

.fuel-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1100px;
}

.fuel-card {
    background: #2a2a2a;
    padding: 24px;
    border-radius: 14px;
    min-height: 120px;
}

.fuel-card h3 {
    margin: 0 0 16px 0;
    color: white;
    font-size: 18px;
}

.fuel-card p {
    margin: 0;
    color: white;
    font-size: 28px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .fuel-cards {
        grid-template-columns: 1fr;
    }
}