* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #fff;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2575fc;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.subtitle {
    color: #333;
    font-size: 1.2rem;
}

.content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-section {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.display-section {
    flex: 2;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

h2 {
    color: #2575fc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00BFFF;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #00BFFF;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

button {
    background: #2575fc;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background: #00BFFF;
}

.person-type {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.type-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.type-btn.active {
    background: #2575fc;
    color: white;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #2575fc;
    color: white;
}

.person-list {
    max-height: 500px;
    overflow-y: auto;
}

.person-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2575fc;
}

.person-card.student {
    border-left-color: #2575fc;
}

.person-card.teacher {
    border-left-color: #2575fc;
}

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

.person-name {
    font-size: 18px;
    font-weight: 600;
    color: #00BFFF;
}

.student .person-name {
    color: #00BFFF;
}

.teacher .person-name {
    color: #ff9800;
}

.person-type-badge {
    background: #f1f1f1;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.student .person-type-badge {
    background: #c7f1ff;
    color: #00BFFF;
}

.teacher .person-type-badge {
    background: #fff3e0;
    color: #ff9800;
}

.person-details {
    margin-top: 10px;
}

.person-detail {
    margin-bottom: 5px;
    display: flex;
}

.detail-label {
    font-weight: 600;
    min-width: 100px;
    color: #6a11cb;
}

.empty-list {
    text-align: center;
    padding: 30px;
    color: #888;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
}