/* ======= Базовые сбросы ======= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
}

/* ======= ТАБЛИЦЫ ======= */
.table-standard {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table-standard th,
.table-standard td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.table-standard th {
    background-color: #f2f2f2;
    font-weight: 600;
    color: #444;
}

.table-standard tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-standard tr:hover {
    background-color: #f1f1f1;
}

/* ======= КНОПКИ ======= */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.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;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* ======= ФОРМЫ ======= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* ======= КАРТОЧКИ ======= */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* ======= УТИЛИТЫ ======= */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.d-block { display: block; }
.d-flex { display: flex; }

/* ======= АДАПТИВНОСТЬ ======= */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        display: block;
    }

    .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}
