← 메인으로
.search-box {
flex: 1;
display: flex;
gap: 10px;
}
.search-box input {
flex: 1;
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 1em;
}
.search-box button {
padding: 10px 20px;
background-color: #667eea;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.search-box button:hover {
background-color: #764ba2;
}
.posts-table {
width: 100%;
background: white;
border-collapse: collapse;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.posts-table thead {
background-color: #f8f9fa;
border-bottom: 2px solid #ddd;
}
.posts-table th {
padding: 15px;
text-align: left;
font-weight: 600;
color: #666;
}
.posts-table td {
padding: 15px;
border-bottom: 1px solid #eee;
}
.posts-table tr:hover {
background-color: #f9f9f9;
}
.post-row {
cursor: pointer;
transition: background-color 0.2s;
}
.post-title {
color: #667eea;
font-weight: 500;
text-decoration: none;
}
.post-title:hover {
text-decoration: underline;
}
.status-badge {
display: inline-block;
padding: 4px 8px;
border-radius: 3px;
font-size: 0.85em;
font-weight: 600;
margin-right: 8px;
}
.status-important {
background-color: #ffe5e5;
color: #d32f2f;
}
.status-normal {
background-color: #e8f5e9;
color: #388e3c;
}
.post-detail {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
margin-bottom: 30px;
}
.post-header {
border-bottom: 1px solid #eee;
padding-bottom: 20px;
margin-bottom: 20px;
}
.post-header h2 {
margin-bottom: 10px;
color: #333;
font-size: 1.8em;
}
.post-meta {
color: #999;
font-size: 0.95em;
line-height: 1.6;
}
.post-meta strong {
color: #333;
}
.post-content {
line-height: 1.8;
color: #555;
margin: 20px 0;
word-break: break-word;
}
.post-content p {
margin-bottom: 10px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #333;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 5px;
font-family: inherit;
font-size: 1em;
}
.form-group textarea {
resize: vertical;
min-height: 250px;
}
.form-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
}
.pagination {
display: flex;
justify-content: center;
gap: 5px;
margin-top: 30px;
}
.pagination a,
.pagination span {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 5px;
text-decoration: none;
color: #667eea;
}
.pagination a:hover {
background-color: #667eea;
color: white;
}
.pagination .active {
background-color: #667eea;
color: white;
border-color: #667eea;
}
.empty-message {
text-align: center;
padding: 40px;
color: #999;
}
.back-link {
display: inline-block;
margin-bottom: 20px;
color: #667eea;
text-decoration: none;
font-weight: 500;
}
.back-link:hover {
text-decoration: underline;
}
.comment-section {
margin-top: 30px;
border-top: 1px solid #eee;
padding-top: 30px;
}
.comment {
background: #f9f9f9;
padding: 15px;
border-radius: 5px;
margin-bottom: 15px;
}
.comment-author {
font-weight: 600;
margin-bottom: 5px;
}
.comment-date {
color: #999;
font-size: 0.9em;
margin-bottom: 10px;
}
.comment-text {
color: #555;
line-height: 1.6;
}
@media (max-width: 600px) {
.controls {
flex-direction: column-reverse;
}
.search-box {
width: 100%;
}
.posts-table {
font-size: 0.9em;
}
.posts-table th,
.posts-table td {
padding: 10px;
}
}
.user-nav {
background-color: #f8f9fa;
padding: 15px 20px;
border-radius: 8px;
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.user-info {
display: flex;
align-items: center;
gap: 15px;
}
.user-badge {
background-color: #667eea;
color: white;
padding: 5px 12px;
border-radius: 20px;
font-size: 0.85em;
font-weight: 600;
}
.user-name {
font-weight: 600;
color: #333;
}
.auth-links {
display: flex;
gap: 10px;
}
.auth-links a {
padding: 8px 15px;
border-radius: 5px;
text-decoration: none;
font-size: 0.9em;
font-weight: 500;
transition: background-color 0.3s;
}
.auth-links a.btn-logout {
background-color: #e74c3c;
color: white;
}
.auth-links a.btn-logout:hover {
background-color: #c0392b;
}
.auth-links a.btn-login {
background-color: #667eea;
color: white;
}
.auth-links a.btn-login:hover {
background-color: #764ba2;
}