﻿/* ==================== ESTILOS DA TABELA ==================== */
.table-material-you {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px; /* Espaçamento vertical entre as linhas */
    margin-top: 10px;
}

.table-material-you th,
.table-material-you td {
    padding: 16px;
    vertical-align: middle;
    background-color: #fff;
    height: 56px; /* Altura fixa para as células */
    box-sizing: border-box; /* Garante que o padding não afete a altura */
}

.table-material-you th {
    background-color: #f5f5f5;
    color: #202124;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e0e0e0;
}

.table-material-you tbody tr {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.table-material-you tbody td {
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #202124;
}

/* Badges na tabela */
.table-material-you .badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-material-you .badge-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.table-material-you .badge-secondary {
    background-color: #f5f5f5;
    color: #757575;
}

/* Ações na tabela */
.table-material-you .actions {
    display: flex;
    justify-content: flex-end;
}

.table-material-you .desktop-actions {
    display: flex;
    gap: 8px;
}

.table-material-you .mobile-actions {
    display: none;
}

/* Responsividade da tabela */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }

    .table-material-you th,
    .table-material-you td {
        white-space: nowrap;
        padding: 12px;
    }

    .table-material-you .desktop-actions {
        display: none;
    }

    .table-material-you .mobile-actions {
        display: block;
    }
}

/* ==================== ESTILOS DOS CARDS ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.custom-card {
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px #212429 solid;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.00);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-content {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-left {
    display: flex;
    align-items: center;
}

.card-icon {
    font-size: 1.5rem;
    color: #4F5153;
    margin-right: 15px;
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
    margin-top: 4px !important;
    margin: 0;
}

.card-arrow {
    font-size: 1rem;
    color: #4F5153;
    transition: transform 0.3s ease;
}

.custom-card:hover .card-arrow {
    transform: translateX(5px);
    color: #2b6bc3;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Badges nos cards */
.card-grid .badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.card-grid .badge-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.card-grid .badge-secondary {
    background-color: #f5f5f5;
    color: #757575;
}

/* ==================== ESTILOS DE PESQUISA ==================== */
.reference-search-container {
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: auto;
}

.reference-search-wrapper {
    background: #e9edf6;
    border-radius: 50px;
    height: 48px;
    display: flex;
    align-items: center;
    transition: background 0.3s, box-shadow 0.3s;
}

.reference-search-wrapper:focus-within {
    background: #fff;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.reference-search-icon {
    margin-left: 16px;
    color: #5f6368;
}

.reference-search-input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    padding: 2px 16px;
    font-size: 16px;
    color: #000;
    font-weight: 400;
}

.reference-search-input::placeholder {
    color: #9aa0a6;
    opacity: 1;
}

/* ==================== ESTILOS DE RESULTADOS ==================== */
.results-section {
    margin-top: 20px;
    padding: 0px 0px;
}

.result-item {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    text-decoration: none; /* Remove sublinhado */
    color: inherit; /* Mantém a cor do texto */
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.result-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #4285f4;
}

.result-details {
    flex-grow: 1;
}

.result-title {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 5px;
}

.result-info {
    font-size: 14px;
    color: #5f6368;
}

.result-extra {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 10px;
}

.result-stars {
    color: #FFC107;
    font-size: 14px;
	letter-spacing: 2px;
}

.result-stars .filled {
    color: #56595d; /* Cor das estrelas preenchidas */
}

.result-stars .empty {
    color: #e0e0e0; /* Cor das estrelas vazias */
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 4px;
}

.result-tag {
    font-size: 12px;
    color: #34A853;
    background-color: #E8F5E9;
    padding: 2px 6px;
    border-radius: 12px;
    margin-top: 4px;
    margin-left: 4px;
    display: flex;
    align-items: center;
}

.result-tag i {
    margin-right: 4px;
    font-size: 10px;
}

/* ==================== ESTILOS GERAIS ==================== */
.thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(0, 0, 0, 0.2);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Classe para o shadow vermelho */
.card-shadow-red {
    box-shadow: 0 1px 2px rgba(255, 0, 0, 0.5);
}

/* Responsividade geral */
@media (max-width: 768px) {
    .reference-search-input {
        font-size: 14px;
    }

    .hide-on-mobile {
        display: none;
    }
}