body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.actions {
    text-align: center;
    margin-bottom: 2rem;
}

#add-entry-btn {
    background-color: #5cb85c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#add-entry-btn:hover {
    background-color: #4cae4c;
}


.filter-section {
    margin-bottom: 2rem;
    background: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.filter-section label {
    margin-right: 0.5rem;
    font-weight: bold;
}
.filter-section select {
   padding: 8px;
   border-radius: 4px;
   border: 1px solid #ccc;
}


.listings-container h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.list {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */ /* Example grid layout */
    gap: 1.5rem;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 5px solid #ccc; /* Default border */
    margin-bottom: 1rem; /* Use margin instead of gap if not using grid */
}

/* Color coding by major */
 .card.major-ai { border-left-color: #007bff; }
 .card.major-se { border-left-color: #28a745; }
 .card.major-net { border-left-color: #fd7e14; }


.card h3 {
    margin-top: 0;
    color: #333;
}
.card p {
    margin-bottom: 0.5rem;
}
.card .label {
    font-weight: bold;
}
.card .major-tag {
    display: inline-block;
    padding: 0.2em 0.6em;
    font-size: 0.8em;
    border-radius: 4px;
    color: white;
    margin-bottom: 0.5rem;
}
 .major-tag.major-ai { background-color: #007bff; }
 .major-tag.major-se { background-color: #28a745; }
 .major-tag.major-net { background-color: #fd7e14; }


/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more specific */
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
}

#entry-form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-weight: bold;
}
#entry-form input[type="text"],
#entry-form input[type="email"],
#entry-form input[type="tel"],
#entry-form input[type="number"],
#entry-form select,
#entry-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important */
}
#entry-form textarea {
    resize: vertical;
}
#entry-form button[type="submit"] {
     background-color: #5cb85c;
     color: white;
     padding: 12px 25px;
     border: none;
     border-radius: 5px;
     font-size: 1.1em;
     cursor: pointer;
     transition: background-color 0.3s ease;
     margin-top: 1.5rem;
}
 #entry-form button[type="submit"]:hover {
     background-color: #4cae4c;
 }

#form-status {
    margin-top: 1rem;
    font-weight: bold;
}
.success { color: green; }
.error { color: red; }


footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem 0;
    color: #666;
    font-size: 0.9em;
}

/* Basic Responsive */
@media (max-width: 768px) {
    .list {
         grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}