/* Utility Classes for Colors */
body {
    background-color: #bcaaa4 !important; /* Removed pinkish tone, trying neutral khaki/brown */
    background-color: #b5ad9a !important;
    color: #101827;
}

.text-success {
    color: #27ae60 !important;
}

.text-danger {
    color: #e74c3c !important;
}

.text-warning {
    color: #f1c40f !important;
}

.bg-success {
    background-color: #2ecc71 !important;
}

.bg-danger {
    background-color: #e74c3c !important;
}

.bg-warning {
    background-color: #f1c40f !important;
}

.bg-info {
    background-color: #3498db !important;
}

/* Dashboard */
.dashboard h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e1e1e1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

.service-card .icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.cs_primary_bg {
    background-color: #101827;
}

.cs_primary_color {
    color: #101827;
}

.cs_secondary_bg {
    background-color: #f5f5f7;
}

.cs_ternary_color {
    color: #6b7280;
}

.cs_accent_color {
    color: #9ca3af;
}

.cs_btn.cs_style_2 {
    background-color: #111827;
    border-radius: 999px;
    padding-inline: 22px;
}

.cs_btn.cs_style_2:hover {
    background-color: #020617;
}

.cs_nav_list > li > a {
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Dark Header Overrides */
.cs_site_header.cs_style_1 {
    background-color: #26211c !important; /* Dark brown/black */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    border-bottom: 1px solid #3e362e !important;
}

.cs_site_header.cs_style_1 .cs_nav_list > li > a,
.cs_site_header.cs_style_1 .cs_header_btns,
.cs_site_header.cs_style_1 .cs_header_btns span {
    color: #e8e6e3 !important;
}

.cs_site_header.cs_style_1 .cs_nav_list > li > a:hover {
    color: #b5ad9a !important;
}

.cs_site_header.cs_style_1 .cs_btn {
    background-color: #e8e6e3 !important;
    color: #26211c !important;
}

.cs_site_header.cs_style_1 .cs_btn:hover {
    background-color: #fff !important;
}



.cs_footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

/* Reports */
.report-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filters-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 0.85rem; /* Reduced font size for reports */
}

.report-table th, .report-table td {
    padding: 8px 12px; /* Reduced padding */
    text-align: left;
    border-bottom: 1px solid #eee;
}

.report-table th {
    background-color: #2c3e50;
    color: white;
}

.report-table tr:hover {
    background-color: #f8f9fa;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    background: white;
    border-radius: 8px;
}
.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.service-icon {
    font-size: 2.5rem;
}

.placeholder-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #1e3a8a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
    text-decoration: none;
}

.action-btn:hover {
    background-color: #1e40af;
    color: white;
    text-decoration: none;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #7f8c8d;
    text-decoration: none;
}

.back-link:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Auth Pages (Login/Register) */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Garante que padding não aumente a largura */
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Compact Form Layout */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row .form-group {
    flex: 1;
    min-width: 140px;
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.form-group input, .form-group select {
    padding: 6px;
    font-size: 0.9rem;
}

/* Table Actions Flex Container */
.table-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-start; /* Default alignment */
}

.table-actions.justify-content-end {
    justify-content: flex-end;
}

/* Responsive Table Value Adjustments */
.table td, .table th {
    font-size: 0.9rem; /* Slightly smaller base font */
    vertical-align: middle;
}

/* Compact values for monetary/numeric columns to prevent wrapping */
.table td.value-cell, 
.table td:nth-child(n+4) { /* Heuristic: usually later columns are values */
    white-space: nowrap;
    font-size: 0.85rem; /* Even smaller for values */
}

/* Ensure buttons don't wrap awkwardly */
.table-actions .btn {
    white-space: nowrap;
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .user-info {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    main {
        padding: 1rem 0;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .action-buttons,
    .placeholder-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons .action-btn,
    .placeholder-actions .action-btn {
        width: 100%;
        justify-content: center;
    }

    .auth-box {
        padding: 1.5rem;
    }

    .table-actions {
        flex-wrap: wrap;
    }

    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .table thead,
    .table tbody,
    .table tr,
    .table th,
    .table td {
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 1.25rem;
    }

    .action-btn {
        padding: 8px 14px;
        font-size: 0.95rem;
    }

    .dashboard h2 {
        font-size: 1.2rem;
    }
}

/* Watermark Styles */
#background-watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: space-around;
    opacity: 0.05;
    overflow: hidden;
    pointer-events: none;
    padding: 20px;
}

#background-watermark img {
    width: 150px;
    height: auto;
    margin: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transform: rotate(-20deg);
}

/* Admin Users Table Styles - Compact Version */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    font-size: 0.75rem; /* Smaller base font */
}

.admin-table thead th {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 6px 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    border-bottom: 2px solid #34495e;
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.1s;
}

.admin-table tbody tr:nth-of-type(even) {
    background-color: #f8f9fa;
}

.admin-table tbody tr:hover {
    background-color: #e8f4f8;
}

.admin-table td {
    padding: 4px 6px;
    vertical-align: middle;
    color: #2c3e50;
}

/* Make inputs inside the table very compact */
.admin-table input.form-control,
.admin-table select.form-control {
    background-color: #ffffff;
    border: 1px solid #bdc3c7;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    padding: 2px 4px;
    font-size: 0.75rem;
    height: 26px; /* Fixed small height */
    border-radius: 3px;
    width: 100%; /* Default to full width of cell/container */
}

.admin-table input.form-control:focus,
.admin-table select.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.3);
    background-color: #fff;
}

.admin-table .table-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
}

.admin-table .action-btn {
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 3px;
    height: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
