body{
    font-family: Arial, Helvetica, sans-serif;
    background-color:#f5f5f5;
    margin:20px;
}

h1{
    text-align:center;
}

.search-container{
    width:100%;
    margin-bottom:20px;
    padding:10px;
    border:2px solid #888;
    background:#fff;
}

.search-container input[type="text"]{
    width:70%;
    padding:8px;
    font-size:16px;
    margin-right:10px;
    border:2px solid #444;
}

.search-container input[type="submit"]{
    padding:8px 16px;
    font-size:16px;
}

.main-layout{
    display:flex;
    gap:20px;
}

.records-panel{
    flex:2;
    border:2px solid #444;
    padding:15px;
    background:#fff;
    max-height:80vh;
    overflow-y:auto;
}

.sort-links{
    margin-bottom:15px;
    font-weight:bold;
}

.sort-links a{
    text-decoration:none;
    margin-right:8px;
    color:#007BFF;
}

.sort-links a:hover{
    text-decoration:underline;
}

.form-panel{
    flex:1;
    border:2px solid #444;
    padding:20px;
    background:#fff;
}

.card{
    border:1px solid #aaa;
    border-radius:8px;
    background:#fafafa;
    margin-bottom:15px;
    padding:15px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.card h2{
    margin-top:0;
    border-bottom:1px solid #ddd;
    padding-bottom:5px;
}

.card-info p{
    margin:5px 0;
}

.card-actions{
    margin-top:10px;
}

.edit-btn{
    padding:6px 12px;
    background:#4CAF50;
    color:white;
    text-decoration:none;
    border-radius:4px;
}

.edit-btn:hover{
    background:#3c8f40;
}

.form-panel input[type="text"],
.form-panel input[type="password"]{
    width:95%;     
    padding:8px;
    margin-bottom:10px;
    border:2px solid #444;
    border-radius:4px;
}

.form-panel input[type="submit"]{
    padding:10px 20px;
    background:#007BFF;
    color:white;
    border:none;
    border-radius:5px;
    cursor:pointer;
}

.form-panel input[type="submit"]:hover{
    background:#0056b3;
}

.message{
    color:green;
    font-weight:bold;
}

.pagination{
    margin-top:15px;
    text-align:center;
}

.navigation{
    padding:6px 12px;
    margin:0 3px;
    background:#ddd;
    border-radius:5px;
    text-decoration:none;
    color:#000;
}

.navigation:hover{
    background:#bbb;
}