/* Файл: assets/css/style.css */

body {
    margin: 0;
    padding: 0;
    font-family: 'Oswald', sans-serif;
    background: #f2f2f2;
    color: #333;
}

/* Логин форма */
.login-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: auto;
    margin-top: 10vh;
}
.logo {
    max-width: 240px;
    margin-bottom: 20px;
}
h2 {
    margin-bottom: 20px;
    color: #007FB0;
}
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}
button {
    width: 100%;
    padding: 12px;
    background-color: #007FB0;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
button:hover {
    background-color: #005f84;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

/* Дашборд */
.sidebar {
    width: 220px;
    background: #007FB0;
    color: white;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.logo-box {
    background: white;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}
.logo-mini {
    max-width: 160px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar ul li {
    margin: 15px 0;
}
.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar ul li a:hover {
    text-decoration: underline;
}
.admin-menu {
    width: 100%;
    margin-top: auto;
}
.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-content {
    margin-left: 240px;
    padding: 30px;
}
.welcome {
    text-align: center;
    color: #007FB0;
    margin-bottom: 30px;
}
.cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.card {
    background: #f4f4f4;
    border-radius: 10px;
    padding: 25px;
    width: 32%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
}
.card.green { border-left: 8px solid #8DC63F; }
.card.yellow { border-left: 8px solid #ffc107; }
.card.red { border-left: 8px solid #dc3545; }
.card a {
    color: inherit;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

/* Респонсив дизайн */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }
    .logo-box {
        width: 100%;
        margin-bottom: 10px;
    }
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    .cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 90%;
    }
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .sidebar ul li {
        margin: 10px;
    }
    .admin-menu {
        width: 100%;
        margin-top: 10px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    .admin-menu li {
        margin: 10px;
    }
}
/* Tablica */
.form-container {
    margin-left: 240px;
    padding: 30px;
    background: #f9f9f9;
}

table {
    border-collapse: collapse;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

table th, table td {
    padding: 14px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 15px;
}

table th {
    background-color: #007FB0;
    color: white;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #eaf7fb;
}

a.btn {
    color: #007FB0;
    font-weight: bold;
    text-decoration: none;
}

a.btn:hover {
    text-decoration: underline;
}
