@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

body {
    font-family: Ubuntu, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #738678;
    gap: 20px;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.header-left h1 {
    margin: 0;
}

.resume-button {
    margin: 0;
}

.header-nav {
    display: flex;
    gap: 15px;
}

.header-nav a {
    color: white;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.header-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-nav a.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.home-intro {
    padding: 20px;
}

.home-content p {
    max-width: 80%;
}

.home-content h4 {
    max-width: 50%;
}

img {
    width: 50%;
    height: auto;
    margin: 0 auto;
}

#pi-pic {
    /*box-shadow: 8 8 8 3px black; /* creates outline effect */
    border: 3px solid #888;
}

#me-photo {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 300px;
}

#me-photo img {
    max-width: 100%;
    width: 300px;
    height: auto;
    display: block;
    border-radius: 8px;
}

section {
    margin-bottom: 30px;
}

.link-box {
    display: inline-block; /* fits to content size */
    background-color: #f0f0f0; /* light gray */
    padding: 10px 15px; /* space around the link */
    border-radius: 5px; /* rounded corners */
    border: 1px solid #ccc; /* subtle border */
}

.link-box a {
    text-decoration: none; /* removes underline */
    color: #0066cc; /* link color */
    font-family: monospace; /* code-like font for URLs */
}

.link-box a:hover {
    text-decoration: underline; /* underline on hover */
}

/* Clear float after content */
main::after {
    content: "";
    display: table;
    clear: both;
}

/* Current interest section - centered, one-third width */
#current-interest {
    max-width: 70%;
    margin: 0 auto;
}

/* Projects section - half width to sit beside photo */
#projects {
    max-width: 70%;
}

/* Update wrapper styling */
.update-wrapper {
    border: 2px solid #738678;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-wrapper:hover {
    background-color: #e8f4e8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.update-wrapper h4 {
    margin-top: 0;
    color: #738678;
}

.update-snippet {
    color: #333;
    line-height: 1.6;
}

.read-more {
    color: #0066cc;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

/* Notes page styles */
.password-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.password-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.password-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.password-button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.password-button:hover {
    background: #0056b3;
}

.error-message {
    color: #d9534f;
    margin-top: 10px;
    display: none;
}

.remember-me-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.remember-me-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.remember-me-row label {
    cursor: pointer;
}

.notes-content {
    display: none;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* Notes layout with sidebar */
.notes-layout {
    display: flex;
    gap: 30px;
}

.notes-main {
    flex: 1;
    min-width: 0;
}

.notes-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Mini Calendar Styles */
.calendar-widget {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header h3 {
    margin: 0;
    font-size: 16px;
}

.calendar-nav {
    display: flex;
    gap: 5px;
}

.calendar-nav button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
}

.calendar-nav button:hover {
    background: #0056b3;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #666;
    padding: 5px 0;
}

.calendar-day {
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.calendar-day:hover {
    background: #e0e0e0;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.today {
    font-weight: bold;
    background: #e3f2fd;
}

.calendar-day.has-assignment {
    font-weight: bold;
    background: #ff8200;
    color: white;
    border-radius: 4px;
}

.calendar-day.has-assignment:hover {
    background: #e07300;
}

.calendar-day.today.has-assignment {
    background: #ff8200;
    color: white;
}

/* Upcoming Assignments List */
.upcoming-widget {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
}

.upcoming-widget h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.upcoming-list {
    max-height: 400px;
    overflow-y: auto;
}

.upcoming-item {
    background: white;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 4px solid #007bff;
    cursor: pointer;
}

.upcoming-item:hover {
    background: #f0f0f0;
}

.upcoming-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.upcoming-item-date {
    font-size: 11px;
    font-weight: bold;
}

.upcoming-item-text {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-upcoming {
    color: #666;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}

/* Due date color coding */
.due-overdue {
    border-left-color: #dc3545 !important;
}
.due-overdue .upcoming-item-date {
    color: #dc3545;
}
.due-overdue .assignment-dot {
    background: #dc3545;
}

.due-today {
    border-left-color: #fd7e14 !important;
}
.due-today .upcoming-item-date {
    color: #fd7e14;
}
.due-today .assignment-dot {
    background: #fd7e14;
}

.due-soon {
    border-left-color: #ffc107 !important;
}
.due-soon .upcoming-item-date {
    color: #b38600;
}
.due-soon .assignment-dot {
    background: #ffc107;
}

.due-week {
    border-left-color: #17a2b8 !important;
}
.due-week .upcoming-item-date {
    color: #17a2b8;
}
.due-week .assignment-dot {
    background: #17a2b8;
}

.due-later {
    border-left-color: #28a745 !important;
}
.due-later .upcoming-item-date {
    color: #28a745;
}
.due-later .assignment-dot {
    background: #28a745;
}

/* Due date input in add note form */
.due-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.due-date-row label {
    font-size: 14px;
    color: #666;
}

.due-date-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Link input */
.link-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Link button */
.note-link-button {
    display: inline-block;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
    background: #6f42c1;
    color: white;
    text-decoration: none;
    margin-left: 8px;
    vertical-align: middle;
}

.note-link-button:hover {
    background: #5a32a3;
}

/* Inline editing styles */
.note-item.editing {
    background: #fff;
    border: 2px solid #007bff;
}

.note-edit-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
    resize: vertical;
}

.note-edit-date {
    margin-bottom: 10px;
}

.note-edit-date label {
    font-size: 13px;
    color: #666;
    margin-right: 10px;
}

.edit-actions {
    display: flex;
    gap: 10px;
}

.save-button {
    background: #28a745;
    color: white;
}

.save-button:hover {
    background: #218838;
}

.cancel-button {
    background: #6c757d;
    color: white;
}

.cancel-button:hover {
    background: #545b62;
}

.edit-button {
    background: #007bff;
    color: white;
}

.edit-button:hover {
    background: #0056b3;
}

/* Due date badge on notes */
.note-due-date {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

.note-due-date.due-overdue {
    background: #f8d7da;
    color: #721c24;
}

.note-due-date.due-today {
    background: #ffe5d0;
    color: #974d00;
}

.note-due-date.due-soon {
    background: #fff3cd;
    color: #856404;
}

.note-due-date.due-week {
    background: #d1ecf1;
    color: #0c5460;
}

.note-due-date.due-later {
    background: #d4edda;
    color: #155724;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logout-button {
    padding: 8px 15px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.logout-button:hover {
    background: #545b62;
}

.note-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    position: relative;
}

.note-item.crossed-out .note-text {
    text-decoration: line-through;
    opacity: 0.6;
}

.note-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.note-text {
    margin-bottom: 10px;
}

.note-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.note-actions button {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cross-out-button {
    background: #ffc107;
    color: #333;
}

.cross-out-button:hover {
    background: #e0a800;
}

.delete-button {
    background: #dc3545;
    color: white;
}

.delete-button:hover {
    background: #c82333;
}

.add-note-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.note-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.add-note-button {
    padding: 8px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-note-button:hover {
    background: #218838;
}

/* Comments section styles */
.comments-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    border-top: 2px solid #ddd;
}

.comments-section h2 {
    margin-bottom: 10px;
}

.comments-description {
    color: #666;
    margin-bottom: 20px;
}

.add-comment-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.comment-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.add-comment-button {
    padding: 8px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-comment-button:hover {
    background: #0056b3;
}

.comment-item {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: baseline;
}

.comment-date {
    color: #999;
    font-size: 12px;
}

.comment-text {
    color: #333;
    line-height: 1.5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #me-photo {
        float: none;
        margin: 20px auto;
        max-width: 250px;
    }

    #me-photo img {
        width: 250px;
        margin: 0 auto;
    }

    #projects {
        max-width: 100%;
    }

    #current-interest {
        max-width: 100%;
    }

    main p,
    main h4 {
        max-width: 100%;
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    /* Notes page mobile */
    .notes-layout {
        flex-direction: column;
    }

    .notes-sidebar {
        width: 100%;
        order: -1;
    }

    .calendar-widget,
    .upcoming-widget {
        margin-bottom: 15px;
    }
}
