body {
    font-family: Arial, sans-serif;
    background: #f7f9fa;
    margin: 0;
    padding: 0 0 40px 0;
}


h1 {
    color: #2c3e50;
    text-align: center;
    margin-top: 30px;
}

button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 18px;
    margin: 5px 3px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

button.shutdown {
    background: #e74c3c;
}
button.shutdown:hover {
    background: #c0392b;
}

button.start {
    background: #27ae60;
}
button.start:hover {
    background: #1e8449;
}

table {
    border-collapse: collapse;
    margin: 30px auto 0 auto;
    width: 90%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
}

td {
    border: 1px solid #e1e4e8;
    padding: 10px 12px;
    text-align: left;
}

th {
    background: #f0f4f8;
    border: 1px solid #e1e4e8;
    padding: 10px 12px;
    color: #34495e;
    font-weight: 600;
    text-align: center;
}

tr:nth-child(even) {
    background: #f9fbfc;
}

tr:last-child td {
    font-weight: bold;
    background: #eaf6fb;
}

.pricelist-table {
    margin: 20px auto;
    width: 90%;
    border-collapse: collapse;
    background: #fff;
}
.pricelist-table th, .pricelist-table td {
    border: 1px solid #e1e4e8;
    padding: 8px 10px;
    text-align: left;
}
.pricelist-table th {
    background: #f0f4f8;
}

.actions > div {
    gap: 7px;
}

/* Navigation styles */
.main-nav {
    background: #1976d2;
    color: #fff;
    width: 100%;
    position: relative;
    z-index: 100;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    height: 56px;
}
.nav-logo {
    font-weight: bold;
    font-size: 1.2em;
    padding: 12px 0;
    flex: 1 0 auto;
    text-align: left;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    margin-left: auto;
}
.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.nav-menu li a {
    display: block;
    padding: 16px 18px;
    color: #fff;
    text-decoration: none;
}
.nav-menu li a:hover {
    background: #1565c0;
}


/* Container for the login form */
.login-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 32px 24px;
    margin: 40px auto;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title styling */
.login-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #2c3e50;
    text-align: center;
}

/* Form group spacing */
.form-group {
    margin-bottom: 18px;
    width: 100%;
}

/* Label styling */
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #34495e;
}

/* Input styling */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 1rem;
    background: #f9f9f9;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #2980b9;
    outline: none;
    background: #fff;
}

/* Button styling */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: #7eac38;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1c5980;
}

/* Error messages */
.form-errors {
    margin-bottom: 12px;
    color: #e74c3c;
    font-size: 0.95rem;
}

.error {
    margin-bottom: 4px;
}

/* Links below the form */
.login-links {
    margin-top: 18px;
    text-align: center;
    font-size: 0.98rem;
}

.login-links a {
    color: #2980b9;
    text-decoration: none;
    margin: 0 6px;
}

.login-links a:hover {
    text-decoration: underline;
}

.price-box-row {
    display: flex;
    gap: 24px;
    margin: 24px;
}

.price-box {
    flex: 1;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.min-price {
    background: #e3f2fd;
}

.max-price {
    background: #ffebee;
}

.cur-price {
    background: #fff3e0;
}

.price-title {
    font-size: 1em;
    font-weight: bold;
}

.min-price .price-title {
    color: #1976d2;
}

.max-price .price-title {
    color: #d32f2f;
}

.price-value {
    font-size: 2em;
    font-weight: bold;
}

.price-unit {
    font-size: 0.7em;
}

.interval-box-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.interval-box {
    flex: 1;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.prev-intervals {
    background: #f3e5f5;
}

.next-intervals {
    background: #e8f5e9;
}

.interval-title {
    font-size: 1.1em;
    font-weight: bold;
}

.prev-intervals .interval-title {
    color: #6a1b9a;
}

.next-intervals .interval-title {
    color: #388e3c;
}

.interval-list {
    margin-top: 8px;
}

.interval-item {
    font-size: 1.2em;
}

.interval-time {
    font-weight: bold;
}

.interval-price .price-unit {
    font-size: 0.8em;
}

.connect-title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 2em;
    color: #1976d2;
}

.connect-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.connect-label {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.connect-select {
    padding: 8px;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #bdbdbd;
    margin-bottom: 16px;
}

.connect-btn {
    padding: 10px 0;
    font-size: 1.1em;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.connect-btn:hover {
    background: #1565c0;
}

.connect-selected {
    margin-top: 20px;
    text-align: center;
    font-size: 1.1em;
    color: #388e3c;
}

/* Responsive styles */
@media (max-width: 700px) {
    table, th, td {
        font-size: 13px;
    }
    table {
        width: 100%;
    }
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1976d2;
        position: absolute;
        left: 0;
        top: 56px;
        z-index: 1000;
    }
    .nav-menu.nav-menu-visible {
        display: flex;
    }
    .nav-menu li a {
        padding: 14px 10px;
        border-top: 1px solid #1565c0;
    }
    .nav-container {
        flex-direction: row;
        position: relative;
        height: 56px;
    }
    .nav-logo {
        flex: 1 0 auto;
        text-align: left;
        padding-left: 0;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
    }

    .plants-table .btn {
        padding: 6px 8px;
        font-size: 0.9rem;
    }

    /* reduce padding and wrap long text */
    .plants-table td, .plants-table th {
        padding: 8px 6px;
        white-space: nowrap;
        font-size: 13px;
    }

    /* Make price-box-row responsive for mobile */
    .price-box-row {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 24px;
    }

    .price-box {
        flex: 1 1 180px;
        min-width: 140px;
        background: #f7f7f7;
        border-radius: 8px;
        padding: 12px 16px;
        box-sizing: border-box;
        margin-bottom: 8px;
    }
    .min-price {
        background: #e3f2fd;
    }
}

