body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 15px;
}

h2 {
    margin-bottom: 15px;
    text-align: center;
    line-height: 1;
}

.container {
    max-width: 1000px;
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* login */
.g_id_signin {
    margin: 10px auto;
    width: fit-content;
}

/* student info */
.container-space-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    flex-flow: row wrap;
}

.student-info {
    display: flex;
    flex-direction: column; 
    gap: 8px; 
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-flow: row wrap;
}

.label {
    line-height: 2.2;
    padding-right: 1em; 
    font-weight: bold;
}

/* show activities */
.activity-table {
    border-collapse: collapse;
    margin: 20px 0;
    width: 100%;
}

.activity-table th,
.activity-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

.activity-table thead tr {
    background-color: #f2f2f2;
    font-weight: bold;
}

.activity-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.activity-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* show reflection */
#reflection {
    font-family: Arial, sans-serif;
    white-space: pre-wrap; /* Preserve line breaks but wrap long lines */
    padding: 1em;
    line-height: 1.5;
}

/* no activities or no reflections */
#no-records-message {
    color: #7f8c8d;
    text-align: center;
    font-style: italic;
}

/* edit reflection */
#reflectionText {
    width: 97%;
    height: 600px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    resize: none;
}

/* New activity */
.date-type-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
}

.date-type-label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px; /* space between label and radio buttons */
}

.radio-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px; /* spacing between radio buttons */
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="date"] {
    width: 220px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 5px;
    cursor: pointer;
    background-color: white;
}

input[type="text"] {
    width: 98%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 5px;
}


/* Buttons */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.small-btn {
    margin: 3px;
    padding: 5px 10px;
}

.btn-green {
    background-color: #56c769;
    color: white;
}

.btn-green:hover {
    background-color: #33a747;
}

.btn-blue {
    background-color: #1a73e9;
    color: white;
}

.btn-blue:hover {
    background-color: #165fbe;
}

.btn-purple {
    background-color: #c230ae;
    color: white;
}

.btn-purple:hover {
    background-color: #771a72;
}

.btn-red {
    background-color: #f44336;
    color: white;
}

.btn-red:hover {
    background-color: #d32f2f;
}


/* instructions */

h3 {
    color: #1a73e9;
    margin-top: 1.5em; /* More space before headings */
    margin-bottom: 0.75em; /* Space after headings */
}
ul {
    padding-left: 30px;
    line-height: 1.8; /* Slightly more spacing for list items */
    margin-bottom: 1em; /* Space between list sections */
}
li {
    margin-bottom: 8px;
    margin-bottom: 0.5em; /* Space between individual list items */
}

.deadline {
    color: #e74c3c;
    font-weight: bold;
}

@media (max-width: 600px) {
    .action-buttons {
        margin: 15px auto 0;
    }
    
    .action-buttons button {
        padding: 5px 10px;
    }

    input[type="date"],
    input[type="text"] {
        background-color: white;
    }

    .activity-table {
        display: block;
        width: 100%;
    }
    
    .activity-table thead {
        display: none;
    }
    
    .activity-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
    }
    
    .activity-table td {
        display: block;
        text-align: left;
        padding-left: 100px;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }
    
    .activity-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        text-align: left;
        font-weight: bold;
        width: 95px; 
    }

}



