/* ================= STORIES STYLE LINK================= */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Code&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap");
@import url("https://chanhoang.name.vn/Incfiles/style.css?v=1754627659");
@import url("https://hvxs.vsites.net/585_header.css");
@import url("https://hvxs.vsites.net/585_stories.css");

body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  background: #f9f9fb;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
.story {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.story-content {
  display: block;
  font-size: 15px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.6;
}

.story-date {
  font-size: 13px;
  color: #888;
  text-align: right;
}

/* Container chính */
.stories-list-group {
  margin-top: 16px;
}

/* Bài viết */
.stories-post {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stories-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Nội dung bài viết */
.story-content {
  display: block;
  font-size: 15px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.6; /* vừa đủ để chữ không dính */
  
}


/* Ngày tháng */
.stories-date,
.stories-post p {
  font-size: 13px;
  color: #888;
  text-align: right;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

/* Form thêm bài viết */
.stories-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 15px;
  resize: vertical;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

.stories-form button {
  background: #007bff;
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.stories-form button:hover {
  background: #0056b3;
}

/* Liên kết sửa/xóa */
.stories-post a {
  font-size: 13px;
  color: #007bff;
  margin-right: 8px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.stories-post a:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* Phân trang */
.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 0 3px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.pagination a:hover {
  background: #007bff;
  color: #fff;
}

.pagination a.current {
  background: #007bff;
  color: white;
  border-color: #007bff;
  pointer-events: none;
}

.pagination button {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 0 3px;
  background: white;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pagination button:hover {
  background: #007bff;
  color: #fff;
}

.pagination button.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
  pointer-events: none;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.breadcrumb {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 16px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 12px 12px 0 0;
}

.card-body {
    padding: 28px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    font-weight: 500;
    color: #333;
}

input.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: 0.3s ease;
}

input.form-control:focus {
    border-color: #2575fc;
    box-shadow: 0 0 6px rgba(37, 117, 252, 0.4);
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
    accent-color: #2575fc;
}

.btn-primary {
    background: #2575fc;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: #1a5edb;
}

a {
    color: #2575fc;
    text-decoration: none;
    font-size: 14px;
}

a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}