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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

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


/* Asosiy sahifa uslublari */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

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

/* Header va Navbar */
header {
    background-color: #343a40;
    padding: 10px 0;
}

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

.navbar-brand {
    color: #ffffff;
    font-size: 24px;
    text-decoration: none;
}

.navbar-nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar-nav li {
    margin-left: 20px;
}

.navbar-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}

.navbar-nav a:hover {
    text-decoration: underline;
}

/* Main content */
main {
    padding: 40px 0;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* Login sahifasi uchun uslublar */
.login-main {
    width: 100%;
    max-width: 900px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.login-container {
    display: flex;
    width: 100%;
}

.login-left__item,
.login-rigth__item {
    padding: 40px;
    width: 50%;
}

.login-left__item {
    background-color: #ffffff;
}

.login-rigth__item {
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.parent {
    margin-bottom: 15px;
}

label {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input:focus {
    border-color: #007bff;
    outline: none;
}

.loginbtn {
    background-color: #007bff;
    color: white;
    font-size: 16px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.loginbtn:hover {
    background-color: #0056b3;
}

.alert {
    font-size: 14px;
    color: #d9534f;
}

#password_reset {
    display: block;
    margin-top: 15px;
    text-align: right;
    color: #007bff;
    text-decoration: none;
}

#password_reset:hover {
    text-decoration: underline;
}

.access {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

.register {
    background-color: #28a745;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register a {
    color: white;
    text-decoration: none;
}

.register:hover {
    background-color: #218838;
}

/* Jadval uslublari */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

thead {
    background-color: #343a40;
    color: #ffffff;
}

thead th {
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

tbody td {
    padding: 12px;
    border-bottom: 1px solid #dddddd;
    font-size: 14px;
    color: #333;
}

tbody tr:nth-child(even) {
    background-color: #f7f7f7;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

tbody tr:last-child td {
    border-bottom: none;
}

td {
    white-space: nowrap; /* Jadval kataklarini bir qatorda saqlash */
}

th, td {
    text-align: left;
}

/* Jadval ustunlarini markazlashtirish */
td:last-child, th:last-child {
    text-align: right;
}

/* Jadvalni responsiv qilish */
@media (max-width: 768px) {
    table {
        font-size: 12px;
    }

    thead {
        display: none;
    }

    tbody td {
        display: block;
        text-align: right;
        padding: 10px;
        position: relative;
        border-bottom: 1px solid #ddd;
    }

    tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 0;
        padding-left: 10px;
        font-weight: bold;
        color: #555;
    }

    tbody tr {
        margin-bottom: 10px;
        display: block;
        border: 1px solid #ddd;
        border-radius: 5px;
    }
}

/* Responsive uslublar */
@media (max-width: 768px) {
    .login-main {
        flex-direction: column;
    }

    .login-left__item,
    .login-rigth__item {
        width: 100%;
    }

    .login-rigth__item {
        padding: 20px;
    }
        table {
        font-size: 12px;
    }

    thead {
        display: none;
    }

    tbody td {
        display: block;
        text-align: right;
        padding: 10px;
        position: relative;
        border-bottom: 1px solid #ddd;
    }

    tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 0;
        padding-left: 10px;
        font-weight: bold;
        color: #555;
    }

    tbody tr {
        margin-bottom: 10px;
        display: block;
        border: 1px solid #ddd;
        border-radius: 5px;
    }
}
