/* General Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #e0e0e0;
    background-color: #0f172a; /* Dark blue background */
    justify-content: center;
    align-items: center;
    max-width: 100%;
    width: 99.9%;
}

h1, h2 {
    margin: 0 0 20px;
    color: #7dd3fc; /* Light blue headings */
}

button {
    background: linear-gradient(90deg, #3b82f6, #60a5fa); /* Blue gradient */
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: linear-gradient(90deg, #2563eb, #3b82f6); /* Darker blue gradient */
    transform: translateY(-2px);
}

/* Login Section */
#login-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9); /* Semi-transparent dark blue */
}

.form-container {
    background: #1e293b; /* Dark slate */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 300px;
    border: 1px solid #334155; /* Subtle border */
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #334155;
    border-radius: 5px;
    background: #0f172a;
    color: #e0e0e0;
}

/* Dashboard Section */
.hidden {
    display: none;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 3% 0%;
    background: rgba(15, 23, 42, 0.95); /* Semi-transparent dark blue */
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #334155;
    img{
        height: 8vh;
        width: auto;
    }
    button{
        margin-right: 5%;
        height: 7vh;
        width: auto;
    }
}

.machines-container {
    margin: 15vh 5%;
    padding: 20px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 4vh auto;
}

.card {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 200px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #334155;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: #60a5fa; /* Light blue accent */
}

#machine-details {
    margin: 15vh 5%;
    padding: 20px;
    width: 100%;
    background: #1e293b;
    border-radius: 8px;
}

.tablinks {
    padding: 10px 20px;
    background: #334155;
    color: #e0e0e0;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.tablinks.active {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    color: white;
}

.tabcontent {
    display: none;
    padding: 20px;
    background: #1e293b;
    border: 1px solid #334155;
    margin: 20px 0;
    color: #e0e0e0;
}

#back-btn {
    margin-top: 20px;
}

/* Eye Icon */
.eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
}

.input-container {
    position: relative;
    margin-bottom: 15px;
}

.error-message {
    color: #f87171; /* Soft red */
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.editable{
    color: #e0e0e0;
    background-color: #1e293b;
    border: 1px solid #334155;
}

table{
    text-align: center;
    color: #e0e0e0;
}

.filters{
    border: 1px solid #334155;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 3%;
    margin: 5% auto;
    background: #1e293b;
}

.buttons{
     display: flex; 
     justify-content: space-between; 
     align-items: center; 
}

.summary{  
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: #1e293b;
    padding: 15px;
    border-radius: 8px;
}

.date{
    display: grid;
}

@media (max-width: 480px) {
    .card {
      flex: 1 1 100%;
    }
    .header,
    .footer {
      font-size: 16px;
      padding: 15px 0;
    }
    .buttons{
        display: block; 
    }
    .datewisefilter{
        display: flex;
        justify-content: space-between; 
        align-items: center; 
    }
}