/* Template.css */

/* General Body Styles */
body {
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
}

.header .nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header .nav a:hover {
    color: #007bff;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

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

/* Footer Styles */
.footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

/* Card Styles */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #007bff;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

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

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.table th, .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table thead th {
    background-color: #e9ecef;
    font-weight: 600;
}

/* Responsive Card-based Table for Mobile */
@media screen and (max-width: 768px) {
    .table-responsive.card-view .table thead {
        display: none; /* Oculta o cabeçalho da tabela */
    }
    .table-responsive.card-view .table,
    .table-responsive.card-view .table tbody,
    .table-responsive.card-view .table tr,
    .table-responsive.card-view .table td {
        display: block;
        width: 100%;
    }
    .table-responsive.card-view .table tr {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        margin-bottom: 1rem;
        padding: 1rem;
        box-sizing: border-box;
    }
    .table-responsive.card-view .table td {
        padding: 0.5rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        border-bottom: 1px solid #eee;
    }
    .table-responsive.card-view .table td:last-child {
        border-bottom: none;
    }
    .table-responsive.card-view .table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #007bff;
        margin-right: 1rem;
        flex-shrink: 0; /* Impede que o rótulo encolha */
    }
    .table-responsive.card-view .table td .btn {
        padding: 0.25rem 0.5rem; /* Botões menores no modo card */
        font-size: 0.8rem;
    }
}
