﻿body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f7fa;
    color: #212529;
    margin: 30px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 0.95rem;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
    overflow-x: auto;
}

thead.thead-dark th {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 12px 8px;
}

th,
td {
    border: 1px solid #dee2e6;
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

    td code {
        font-family: monospace;
        font-size: 0.85rem;
        color: #0066cc;
    }

.text-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

.text-warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
}

.btn {
    display: inline-block;
    font-weight: 500;
    color: white;
    background-color: #007bff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
    margin-right: 10px;
}

    .btn:hover {
        background-color: #0056b3;
    }

.btn-secondary {
    background-color: #6c757d;
}

    .btn-secondary:hover {
        background-color: #545b62;
    }

@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        border-radius: 6px;
        overflow: hidden;
        background: white;
    }

    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #eee;
    }

        td::before {
            content: attr(data-label);
            font-weight: bold;
            flex: 1;
            text-align: left;
        }
}
