body {
    padding: 0;
    margin: 0;
    background-color: beige;
}
main {
    padding: 1em 10%;
}
header {
    padding: 0.5em 10% ;
    background-color:white;
    display: flex;
    justify-content: space-between;
}
header a{
    text-decoration: none;
    color:gray;
}
header h2 {
    margin: 0;
    font-size: medium;
}
form {
    margin: 1em;
}

input[type="text"], input[type="password"], input[type="number"],select {
    padding: 0.5em;
    border: 1px solid lightgray;
    border-radius: 4px;
    width: 20em;
    margin-bottom:0.5em;
}

input[type="number"] {
    width: 5em;
    text-align: right;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    cursor: pointer;
}

textarea {
    width: 30em;
    height: 8em;
    max-width: 100%;
}

.operation {
    display: flex;
    gap: 1em;
    margin: 1em;
    justify-content: center;
}

.operation a {
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 4px;
}

.operation .btn{
    background-color: blue;
    color: white;
}

.operation .update{
    background-color: #4CAF50;
    color: white;
}

.operation .del, input.del {
    background-color: #f44336;
    color: white;
}

.operation a:hover, input[type="submit"]:hover {
    opacity: 0.8;
}

table {
    border-collapse: collapse;
    margin: 1em auto;
}
td,th {
    border:1px solid gray;
    padding: 0.2em 1em;
}
th {
    background-color: #4CAF50;
    color:white;
}

pre {
    white-space:pre-wrap;
}

.btn-link {
    display: inline-block;
    padding: 0.5em 1.2em;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-link:hover {
    opacity: 0.9;
}

.btn-link:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: #2f855a;
    color: #ffffff;
    border-color: #2f855a;
}

.btn-secondary {
    background-color: #2b6cb0;
    color: #ffffff;
    border-color: #2b6cb0;
}

.btn-ghost {
    background-color: transparent;
    color: #2b6cb0;
    border-color: #2b6cb0;
}

.btn-danger {
    background-color: #c53030;
    color: #ffffff;
    border-color: #c53030;
}

.project-list {
    display: grid;
    gap: 0.75em;
    margin: 1em 0;
}

.project-card {
    display: block;
    padding: 0.9em 1.1em;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #ffffff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.2s ease;
}

.project-card--inactive {
    background-color: #d1d5db;
    border-color: #94a3b8;
}

.project-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #cbd5e0;
}

.project-card__title {
    font-weight: 700;
    margin-bottom: 0.3em;
}

.project-card__meta {
    font-size: 0.9em;
    color: #4a5568;
}

.project-detail {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1em 1.2em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.project-detail--inactive {
    background-color: #d1d5db;
    border-color: #94a3b8;
}

.plan-detail {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1em 1.2em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.plan-detail--inactive {
    background-color: #d1d5db;
    border-color: #94a3b8;
}

.member-list {
    display: grid;
    gap: 0.5em;
    margin: 0.5em 0 1.5em;
}

.member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6em 0.9em;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #ffffff;
}

.member-name {
    font-weight: 600;
}

.member-action {
    margin: 0;
}

.plan-list {
    display: grid;
    gap: 0.75em;
    margin: 0.5em 0 1.5em;
}

.plan-card {
    display: block;
    padding: 0.8em 1em;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #ffffff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.2s ease;
}

.plan-card--inactive {
    background-color: #d1d5db;
    border-color: #94a3b8;
}

.plan-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #cbd5e0;
}

.plan-card__title {
    font-weight: 700;
    margin-bottom: 0.25em;
}

.plan-card__meta {
    font-size: 0.9em;
    color: #4a5568;
}

.desc-box {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.8em 1em;
    margin: 0.5em 0 1.5em;
}

.desc-box h1, .desc-box h2, .desc-box h3 {
    margin-top: 0.4em;
}

.activity-log-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.activity-log-table th,
.activity-log-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.activity-log-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.activity-log-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.activity-log-table a {
    color: #4CAF50;
    text-decoration: none;
    padding: 0.3em 0.6em;
    border: 1px solid #4CAF50;
    border-radius: 3px;
    display: inline-block;
}

.activity-log-table a:hover {
    background-color: #4CAF50;
    color: white;
}

.activity-log-container {
    margin: 1em 0;
}
