body { font-family: Arial, sans-serif; margin:0; background:#f7f4ee; color:#333; }
header { background:#8b1e3f; color:#fff; padding:18px 30px; }
header h1 { margin:0; font-size:30px; }
nav { background:#5c1027; padding:12px 30px; }
nav a { color:#fff; text-decoration:none; margin-right:18px; font-weight:bold; }
.container { width:90%; max-width:1100px; margin:25px auto; background:#fff; padding:25px; border-radius:12px; box-shadow:0 2px 10px #0001; }
.hero { background:linear-gradient(120deg,#8b1e3f,#d29b2f); color:white; padding:50px; border-radius:14px; text-align:center; }
.hero h2 { font-size:38px; margin:0 0 12px; }
.btn { background:#8b1e3f; color:white; padding:10px 18px; border-radius:8px; text-decoration:none; border:0; cursor:pointer; display:inline-block; }
input, select, textarea { width:100%; padding:10px; margin:6px 0 15px; border:1px solid #ccc; border-radius:8px; box-sizing:border-box; }
label { font-weight:bold; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.card { border:1px solid #eee; padding:15px; border-radius:12px; background:#fffdf9; }
.card img { width:100%; height:220px; object-fit:cover; border-radius:10px; background:#eee; }
table { width:100%; border-collapse:collapse; margin-top:15px; }
th, td { border:1px solid #ddd; padding:10px; text-align:left; }
th { background:#8b1e3f; color:#fff; }
.notice { padding:12px; background:#fff4cf; border-radius:8px; margin-bottom:15px; }
footer { text-align:center; padding:25px; color:#777; }
.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin-bottom:30px;
}

.card{
background:#fff;
padding:20px;
border-radius:10px;
box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.card h3{
font-size:32px;
margin:0;
color:#8b1238;
}
.chat-box{
height:450px;
overflow-y:auto;
padding:15px;
background:#f7f7f7;
border-radius:10px;
margin-bottom:20px;
}

.my-msg{
background:#8b1238;
color:#fff;
padding:10px;
margin:10px;
border-radius:10px;
text-align:right;
}

.other-msg{
background:#eee;
padding:10px;
margin:10px;
border-radius:10px;
}
.chat-box{
height:420px;
overflow-y:auto;
padding:15px;
background:#f7f7f7;
border-radius:10px;
margin-bottom:20px;
}

.my-msg{
background:#8b1238;
color:#fff;
padding:10px 14px;
margin:10px 0 10px auto;
border-radius:12px;
max-width:70%;
text-align:right;
}

.other-msg{
background:#eee;
color:#222;
padding:10px 14px;
margin:10px auto 10px 0;
border-radius:12px;
max-width:70%;
text-align:left;
}

.chat-box small{
font-size:11px;
opacity:.75;
}

textarea{
width:100%;
min-height:90px;
padding:12px;
border-radius:8px;
border:1px solid #ccc;
}
input[type=password]{
width:100%;
}
.grid > div{
display:flex;
flex-direction:column;
}

.grid input,
.grid select,
.grid textarea{
width:100%;
height:46px;
box-sizing:border-box;
padding:10px;
border:1px solid #ccc;
border-radius:6px;
font-size:15px;
}

.grid input[type=file]{
padding:8px;
}
.search-box{
background:#fff;
padding:25px;
border-radius:14px;
box-shadow:0 4px 15px rgba(0,0,0,.08);
margin-bottom:25px;
}

.search-box h2{
color:#8b1238;
margin-bottom:20px;
}

.search-box .grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:18px;
}

.search-box input,
.search-box select{
width:100%;
height:46px;
padding:10px;
border:1px solid #ccc;
border-radius:8px;
box-sizing:border-box;
}

.profile-card{
background:#fff;
padding:18px;
border-radius:14px;
box-shadow:0 4px 15px rgba(0,0,0,.08);
text-align:center;
}

.profile-card img{
width:150px;
height:180px;
object-fit:cover;
border-radius:12px;
}

@media(max-width:900px){
.search-box .grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:600px){
.search-box .grid{
grid-template-columns:1fr;
}
}