@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
}

img {
    width: 100%;
}

input,
button {
    font-family: inherit;
}

/* === LAYOUT === */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
    background-color: #1a1a40;
    color: #fff;
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.logo img {
    border-radius: 10px;
}

.sidebar .logo h3 {
    margin-top: 10px;
    font-size: 18px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.user-profile p {
    font-size: 12px;
    font-weight: 400;
    color: #fff;
}

/* === SIDEBAR NAVIGATION === */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    flex: 1;
    position: absolute;
    bottom: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    width: 100%;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* === OVERLAY === */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.sidebar.show~.overlay {
    display: block;
}

/* === MAIN CONTENT === */
.main-content {
    padding: 20px;
    flex: 1;
    min-height: 100vh;
}

.dashboard-header {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    font-size: 14px;
    color: #333;
}

.form-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.07);
}

.form-card h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #0056b3;
}

.menu-toggle {
    display: none;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background: #f1f3f5;
    border-radius: 8px;
    font-size: 14px;
}

.result ul {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.red {
    padding-bottom: 10px;
}

.parameters {
    padding: 5px 20px;
}

.form-note {
    margin-top: 20px;
    font-size: 13px;
    color: #555;
}

.form-note li {
    margin-bottom: 8px;
}

/* === TABLET STYLES === */
@media (min-width: 768px) {
    .dashboard-container {
        flex-direction: row;
    }

    .sidebar {
        width: 240px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main-content {
        padding: 40px;
    }

    .dashboard-header h1 {
        font-size: 24px;
    }

    .form-card {
        max-width: 100%;
    }
}

/* === DESKTOP STYLES === */
@media (min-width: 1024px) {
    .dashboard-header h1 {
        font-size: 28px;
    }

    .form-card h2 {
        font-size: 22px;
    }

    input,
    button {
        font-size: 16px;
    }
}

/* === MOBILE STYLES === */
@media (max-width: 767px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #333;
        font-size: 24px;
        cursor: pointer;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        height: 100%;
        background-color: #1a1a40;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        padding: 20px;
    }

    .sidebar-nav {
        flex-direction: column;
        gap: 20px;
    }
}