/* Estilo geral do corpo da página */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* Cabeçalho */
header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 5px;
}

/* Container principal */
main {
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo do formulário */
.form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.form-container h2 {
    margin-top: 0;
    color: #34495e;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

input[type="text"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
}

input[type="color"] {
    width: 100%;
    height: 45px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"] {
    grid-column: 1 / -1;
    background-color: #3498db;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}

/* Lista de atividades */
.activities-list-container h2 {
    color: #34495e;
}

#activities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.activity-card {
    background-color: #fff;
    border-left: 8px solid; /* A cor será definida pelo JS */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    word-wrap: break-word;
    position: relative;
    display: flex;
    flex-direction: column;
}

.activity-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.activity-card .context {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.activity-card strong {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #34495e;
}

.activity-card pre {
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    flex-grow: 1;
}

.activity-card .attachments {
    margin-top: 15px;
}

.activity-card .attachments a {
    color: #3498db;
    text-decoration: none;
    word-break: break-all;
}

.activity-card .attachments a:hover {
    text-decoration: underline;
}

.delete-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background: #c0392b;
}
