.edps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 0 auto;
}
.edps-card {
    border: 1px solid #fdf6e3; /* Creme bem claro */
    border-radius: 24px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.08); /* Sombra marrom suave */
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden; /* Garante que nada saia do card */
}
.edps-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(93, 64, 55, 0.15);
}
/* Decorativo no topo */
.edps-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #D7CCC8, #FFECB3); /* Marrom claro a mostarda claro */
    33→}

.edps-top {
    display: flex;
    align-items: center;
    gap: 16px;
}
/* Força imagem redonda */
.edps-top img, .edps-top img.avatar {
    border-radius: 50% !important;
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.15);
}
.edps-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: #4E342E; /* Marrom escuro */
}
.edps-badge {
    margin-left: 8px;
    background: #FFCA28; /* Mostarda vibrante */
    color: #3E2723; /* Marrom bem escuro */
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.edps-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.edps-links .button {
    flex: 1 1 auto;
    text-align: center;
    border-radius: 99px;
    padding: 10px 16px;
    background-color: #FFF8E1; /* Creme mostarda */
    color: #5D4037; /* Marrom */
    border: 1px solid #FFECB3;
    transition: all 0.2s;
    font-weight: 600;
    text-decoration: none;
}
.edps-links .button:hover {
    background-color: #FFECB3;
    color: #3E2723;
    transform: translateY(-1px);
}

/* Botão de Materiais */
.edps-materials-wrapper {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #D7CCC8;
}
.edps-open-materials {
    width: 100%;
    background-color: #EFEBE9; /* Marrom bem claro */
    color: #5D4037;
    border: 1px solid #D7CCC8;
    border-radius: 99px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.edps-open-materials:hover {
    background-color: #D7CCC8;
    color: #3E2723;
}
.edps-open-materials::before {
    content: '📂'; /* Ícone de pasta */
    font-size: 1.1em;
}

/* Botão de Avisos (Notes) */
.edps-notes-wrapper {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #FFE0B2;
}
.edps-open-notes {
    width: 100%;
    background-color: #FFF3E0; /* Laranja bem claro */
    color: #E65100; /* Laranja escuro */
    border: 1px solid #FFE0B2;
    border-radius: 99px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.edps-open-notes:hover {
    background-color: #FFE0B2;
    color: #BF360C;
}
.edps-open-notes::before {
    content: '🔔'; /* Ícone de sino */
    font-size: 1.1em;
}

/* Botão de Uploads (Ver atividades) */
.edps-view-uploads-wrapper {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #B2DFDB;
}
.edps-open-uploads {
    width: 100%;
    background-color: #E0F2F1; /* Teal bem claro */
    color: #00695C; /* Teal escuro */
    border: 1px solid #B2DFDB;
    border-radius: 99px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.edps-open-uploads:hover {
    background-color: #B2DFDB;
    color: #004D40;
}
.edps-open-uploads::before {
    content: '📎'; /* Ícone de clipe */
    font-size: 1.1em;
}

/* Modal Styles */
.edps-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999; /* Z-index bem alto */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.edps-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.edps-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(62, 39, 35, 0.6); /* Fundo marrom escuro */
    backdrop-filter: blur(4px);
}
.edps-modal-container {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 4px solid #FFF8E1;
}
.edps-modal.is-open .edps-modal-container {
    transform: translateY(0);
}
.edps-modal-header {
    padding: 20px 28px;
    background: #FFF8E1; /* Cabeçalho creme */
    border-bottom: 1px solid #FFECB3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 24px 24px 0 0;
}
.edps-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #4E342E;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.edps-modal-header h3::before {
    content: '✨';
}
/* Cabeçalho de Avisos */
.edps-modal-header.header-notes {
    background: #FFF3E0;
    border-bottom-color: #FFE0B2;
}
.edps-modal-header.header-notes h3 {
    color: #E65100;
}
.edps-modal-header.header-notes h3::before {
    content: '📢';
}
/* Cabeçalho de Uploads */
.edps-modal-header.header-uploads {
    background: #E0F2F1;
    border-bottom-color: #B2DFDB;
}
.edps-modal-header.header-uploads h3 {
    color: #00695C;
}
.edps-modal-header.header-uploads h3::before {
    content: '📎';
}

.edps-modal-close {
    background: #fff;
    border: 1px solid #FFECB3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #5D4037;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}
.edps-modal-close:hover {
    background: #FFCA28;
    color: #fff;
    border-color: #FFCA28;
}
.edps-modal-content {
    padding: 28px;
    overflow-y: auto;
}

.edps-materials-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.edps-materials-list li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: #FAFAFA;
    border-radius: 16px;
    border: 1px solid #F0F0F0;
    transition: background 0.2s;
}
.edps-materials-list li:hover {
    background: #FFF8E1;
    border-color: #FFECB3;
}
.edps-materials-list li a.button {
    border-radius: 12px;
    background: #fff;
    border: 1px solid #D7CCC8;
    color: #5D4037;
    text-align: left;
    padding: 12px 16px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
}
.edps-materials-list li a.button::before {
    content: '📄'; /* Ícone de documento */
    font-size: 1.2em;
}
.edps-materials-list li a.button:hover {
    border-color: #8D6E63;
    color: #3E2723;
    background: #EFEBE9;
}
.edps-material-desc {
    font-size: 0.9rem;
    color: #795548;
    margin: 0;
    padding: 0 8px;
    line-height: 1.5;
    font-style: italic;
}

/* Lista de Avisos no Modal */
.edps-notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.edps-notes-list li {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #F0F0F0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.edps-notes-list li.note-alerta {
    border-left: 6px solid #FB8C00;
    background: #FFF3E0;
}
.edps-notes-list li.note-urgente {
    border-left: 6px solid #F44336;
    background: #FFEBEE;
}
.edps-notes-list .note-title {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 8px;
}
.edps-notes-list .note-message {
    color: #4B5563;
    line-height: 1.6;
}
.edps-notes-list small {
    display: block;
    margin-top: 12px;
    color: #9CA3AF;
    font-size: 0.85rem;
    font-style: italic;
}

.edps-private {
    margin-top: 12px;
    color: #6b7280;
    font-style: italic;
}
.edps-uploads-wrapper {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #D7CCC8;
}
.edps-upload-btn {
    width: 100%;
    justify-content: center;
    display: flex;
    gap: 8px;
    border-radius: 99px;
    padding: 12px 20px;
    background: #8D6E63;
    color: #fff;
    border: none;
    font-weight: 600;
}
.edps-upload-btn:hover {
    background: #6D4C41;
    color: #fff;
}
.edps-upload-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.edps-upload-item {
    display: flex;
    flex-direction: column;
    background: #FAFAFA;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #F0F0F0;
}
.edps-upload-item a {
    color: #111827;
    font-weight: 500;
    text-decoration: none;
}
.edps-upload-meta {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 2px;
}
.edps-upload-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    margin-top: 12px;
    overflow: hidden;
    display: none;
}
.edps-upload-progress.is-active {
    display: block;
}
.edps-upload-progress__bar {
    height: 100%;
    width: 0;
    background: #2563eb;
    transition: width .2s ease;
}
.edps-upload-status {
    margin-top: 8px;
    font-size: 12px;
    color: #2563eb;
}
.edps-file-missing {
    color: #b91c1c;
    font-size: .85rem;
    font-weight: 600;
}
.edps-upload-empty {
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
.edps-upload-empty p {
    margin: 0;
}

@media (max-width: 600px) {
    .edps-grid { grid-template-columns: 1fr; }
    .edps-card { padding: 20px; }
    .edps-links .button { flex: 1 1 100%; }
}