/* Основные стили */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.bd-menu {
    display: flex;
    list-style: none;
    padding: 0;
}

.bd-menu li {
    margin-left: 20px;
}

.bd-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.bd-menu a:hover {
    color: #3498db;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}

/* Таблицы */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.reports {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reports:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.reports form {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.report-group {
    display: flex;
    align-items: center;
}

.report-group label {
    margin-right: 5px;
    font-weight: 500;
}

.report-group select, .report-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    width: 80%;
    max-width: 300px;
}

/* Кнопки */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Графики */
.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.chart-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Страница входа */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.login-button {
    margin-top: 20px;
}

/* Выпадающее меню */
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #555;
}

/* Футер */
.footer {
    text-align: center;
}

/* Дополнительные фильтры */
.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 5px;
    font-weight: 500;
    max-width: 300px;
    width: 80%;
}

.filter-group select, .filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    width: 80%;
    max-width: 300px;
}

/* Стили для calculations.html */
.calc-period-filters {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.calc-period-filters:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.calc-period-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.calc-filters form {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.calc-filter-group {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.calc-filter-group label {
    margin-right: 5px;
    font-weight: 500;
}

.calc-filter-group select, .calc-filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    width: 160px;
}

.calc-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    min-width: 200px;
}

.calc-btn-primary {
    background-color: #3498db;
    color: white;
}

.calc-btn-primary:hover {
    background-color: #2980b9;
}

.calc-report-table {
    width: 100%;
}

.calc-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calc-table th,
.calc-table td {
    border: 1px solid #ddd;
    overflow-wrap: break-word;
    padding: 12px 5px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.calc-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.calc-table-hover tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.calc-table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

/* Стили для checkin.html */
.check-filters {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.check-filters:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.check-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;

}

.check-filter-group {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.check-filter-group label {
    margin-right: 5px;
    font-weight: 500;
    max-width: 300px;
    width: 80%;
}

.check-filter-group select, .check-filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    width: 160px;
}

.check-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    min-width: 200px;
}

.check-btn-primary {
    background-color: #3498db;
    color: white;
}

.check-btn-primary:hover {
    background-color: #2980b9;
}

.check-table-container {
    /* Пустой стиль, для совместимости */
}

.check-data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.check-data-table th, .check-data-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.check-data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.check-data-table tr:last-child td {
    border-bottom: none;
}

.check-data-table tr:hover {
    background-color: #f8f9fa;
}

/* Стили для rewards.html */
.rew-filters {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.rew-filters:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.rew-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.rew-filter-group {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.rew-filter-group label {
    margin-right: 5px;
    font-weight: 500;
    max-width: 300px;
    width: 80%;
}

.rew-filter-group select, .rew-filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    width: 160px;
}

.rew-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    min-width: 200px;
}

.rew-btn-primary {
    background-color: #3498db;
    color: white;
}

.rew-btn-primary:hover {
    background-color: #2980b9;
}

.rew-table-container {
    /* Пустой стиль, для совместимости */
}

.rew-data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rew-data-table th, .rew-data-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.rew-data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.rew-data-table tr:last-child td {
    border-bottom: none;
}

.rew-data-table tr:hover {
    background-color: #f8f9fa;
}

/* Стили для reports.html */
.rep-stats-reports {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.rep-stats-reports-block {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.rep-stats-reports-mini {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 32%;
    box-sizing: border-box;
}

.rep-stats-reports-mini td:first-child {
    text-align: left;
}

.rep-report-table {
    margin-top: 20px;
}

.rep-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.rep-stats-table th,
.rep-stats-table td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
}

.rep-stats-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.rep-stats-table-bordered th,
.rep-stats-table-bordered td {
    border: 1px solid #ddd;
}

.rep-stats-table-hover tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.rep-stats-table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

.rep-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.rep-table th,
.rep-table td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
}

.rep-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.rep-table-bordered th,
.rep-table-bordered td {
    border: 1px solid #ddd;
}

.rep-table-hover tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.rep-table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

/* Стили для charts.html */
.charts-charts-reports {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.charts-reports {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.charts-reports:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.charts-reports form {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.charts-report-group {
    display: flex;
    align-items: center;
}

.charts-report-group label {
    margin-right: 5px;
    font-weight: 500;
}

.charts-report-group select, .charts-report-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    width: 80%;
    max-width: 300px;
}

.charts-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.charts-btn-primary {
    background-color: #3498db;
    color: white;
}

.charts-btn-primary:hover {
    background-color: #2980b9;
}

.charts-chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.charts-chart-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.charts-chart-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Стили для users.html */
.users-filters {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.users-filters:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.users-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.users-filter-group {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.users-filter-group label {
    margin-right: 5px;
    font-weight: 500;
    max-width: 300px;
    width: 80%;
}

.users-filter-group select, .users-filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    width: 160px;
}

.users-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    min-width: 200px;
}

.users-btn-primary {
    background-color: #3498db;
    color: white;
}

.users-btn-primary:hover {
    background-color: #2980b9;
}

.users-table-container {
    width: 100%;
}

.users-data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

.users-data-table th, .users-data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    overflow-wrap: break-word;
}

.users-data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.users-data-table tr:last-child td {
    border-bottom: none;
}

.users-data-table tr:hover {
    background-color: #f8f9fa;
}

/* Стили для index.html */
.index-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.index-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.index-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.index-card-title {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.index-card-stats-container {
    display: flex;
    flex-direction: column;
}

.index-card-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.index-card-info-container {
    display: flex;
    width: 100%;
    justify-content: right;
}

.index-card-details {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

.index-detail-item {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: right;
}

.index-card-period {
    display: flex;
    flex-direction: column;
}

.index-period-item {
    color: #6c757d;
    margin-bottom: 5px;
    text-align: right;
}

.index-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.index-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.index-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.index-btn-secondary:hover {
    background-color: #7f8c8d;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    .bd-menu {
        margin: 10px 0;
        justify-content: center;
        padding: 0;
    }

    .bd-menu li {
        margin-left: 0;
    }

    .nav-menu {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    .nav-menu li {
        margin: 5px 10px;
    }

    .reports {
        min-width: auto;
        padding: 15px;
    }

    .report-group select,
    .report-group input {
        width: 100%;
        max-width: none;
    }

    .charts-reports {
        min-width: auto;
        padding: 15px;
    }

    .charts-charts-reports {
        grid-template-columns: 1fr;
    }

    .charts-chart-container {
        width: 90%;
        overflow-x: auto;
        padding: 20px;
    }

    .charts-chart-image {
        max-width: 100%;
        height: auto;
    }

    .data-table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
    }

    .table {
        font-size: 14px;
    }

    .table th,
    .table td {
        padding: 5px;
    }

    .calc-period-filters form {
        flex-direction: column;
        align-items: center;
    }

    .calc-filter-group,
    .calc-btn {
        width: 100%;
        max-width: 300px;
    }

    .calc-filter-group select,
    .calc-filter-group input {
        width: 100%;
    }

    .calc-table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
    }

    .check-filters form {
        flex-direction: column;
        align-items: center;
    }

    .check-filter-group,
    .check-btn {
        width: 100%;
        max-width: 300px;
    }

    .check-filter-group select,
    .check-filter-group input {
        width: 100%;
    }

    .check-data-table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
    }

    .rew-filters form {
        flex-direction: column;
        align-items: center;
    }

    .rew-filter-group,
    .rew-btn {
        width: 100%;
        max-width: 300px;
    }

    .rew-filter-group select,
    .rew-filter-group input {
        width: 100%;
    }

    .rew-data-table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
    }

    .rep-stats-reports-mini {
        width: 100%;
    }

    .rep-stats-table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
    }

    .rep-stats-table th,
    .rep-stats-table td {
        padding: 5px;
    }

    .rep-table {
        font-size: 14px;
    }

    .rep-table th,
    .rep-table td {
        padding: 5px;
    }

    .charts-report-group select,
    .charts-report-group input {
        width: 100%;
        max-width: none;
    }

    .users-filters form {
        flex-direction: column;
        align-items: center;
    }

    .users-filter-group,
    .users-btn {
        width: 100%;
        max-width: 300px;
    }

    .users-filter-group select,
    .users-filter-group input {
        width: 100%;
    }

    .users-data-table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
    }

    .index-actions {
        align-items: center;
    }

    .index-btn {
        max-width: 300px;
    }

    .index-stats-cards {
        grid-template-columns: 1fr;
    }
}