/* creator.beeknoee.com/assets/css/style.css */

/* Reset & Variables */
:root {
 --primary: #2563eb;
 --secondary: #475569;
 --success: #22c55e;
 --danger: #ef4444;
 --background: #f8fafc;
 --sidebar-width: 200px;
 --header-height: 60px;
 --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05); 
 --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

body {
 display: flex;
 flex-direction: column;    
 font-family: 'Inter', system-ui, sans-serif;
 background: var(--background);
 color: #1a1a1a;
 line-height: 1.5;
}

a.btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    box-sizing: border-box;
    text-align: center;
    font-size: 13px;
}

/* Layout */
.wrapper {
 display: flex;
 flex: 1;
 flex-direction: column;
 min-height: 100vh;
 background: var(--background);
}

.sidebar {
 width: var(--sidebar-width);
 background: #1e293b;
 color: white;
 padding: 1.5rem;
 position: fixed;
 height: 100vh;
 box-shadow: var(--shadow);
 z-index: 50;
}

.logo {
 padding: 1.5rem 0;
 margin-bottom: 2rem;
 border-bottom: 1px solid rgba(255,255,255,0.1);
 text-align: center;
}

.logo h2 {
 font-size: 1.75rem;
 font-weight: 700;
 letter-spacing: -0.5px;
}

.nav-menu ul {
 list-style: none;
}

.nav-menu li {
 margin-bottom: 0.5rem;
}

.nav-menu a {
 display: block;
 padding: 0.875rem 1.25rem;
 color: rgba(255,255,255,0.8);
 text-decoration: none;
 border-radius: 0.5rem;
 transition: all 0.2s;
 font-weight: 500;
}

.nav-menu a:hover {
 background: rgba(255,255,255,0.1);
 color: white;
 transform: translateX(4px);
}

.main-content {
 margin-left: var(--sidebar-width);
 display: flex; 
 flex-direction: column;
 flex: 1;
 padding: calc(var(--header-height) + 2rem) 2rem 1rem;
 min-height: 100vh;
}

.main-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 0 2rem;
 background: white;
 box-shadow: var(--shadow-sm);
 position: fixed;
 top: 0;
 right: 0;
 left: var(--sidebar-width);
 height: var(--header-height);
 z-index: 40;
}

.header-left h1 {
 font-size: 1.5rem;
 font-weight: 600;
 background: linear-gradient(to right, var(--primary), #1d4ed8);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

.user-menu {
 display: flex;
 align-items: center;
 gap: 1.5rem;
}

.user-menu span {
 color: #64748b;
 font-weight: 500;
}

.user-menu a {
 color: var(--primary);
 text-decoration: none;
 font-weight: 500;
 padding: 0.5rem 1rem;
 border-radius: 0.375rem;
 transition: all 0.2s;
}

.user-menu a:hover {
 background: #f1f5f9;
}

/* Components */
.btn {
 display: inline-flex;
 align-items: center;
 padding: 0.625rem 1.25rem;
 border-radius: 0.5rem;
 border: none;
 font-weight: 500;
 cursor: pointer;
 transition: all 0.2s;
 gap: 0.5rem;
 font-size: 12px;
}

.btn:hover {
 transform: translateY(-1px);
}

.btn-primary {
 background: var(--primary);
 color: white;
}

.btn-primary:hover {
 background: #1d4ed8;
 box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

.btn-secondary {
 background: var(--secondary);
 color: white;
}

.btn-secondary:hover {
 background: #334155;
 box-shadow: 0 4px 12px rgba(71,85,105,0.2);
}

.btn-danger {
 background: var(--danger);
 color: white;
}

.btn-danger:hover {
 background: #dc2626;
 box-shadow: 0 4px 12px rgba(239,68,68,0.2);
}

.page-content {
 background: white;
 border-radius: 0.75rem;
 box-shadow: var(--shadow);
 padding: 2rem;
}

.page-header {
 margin-bottom: 2rem;
 padding-bottom: 1.5rem;
 border-bottom: 2px solid #f1f5f9;
}

.page-title {
 font-size: 1.875rem;
 font-weight: 700;
 color: #1e293b;
 letter-spacing: -0.5px;
}

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

.form-group {
 margin-bottom: 1.5rem;
}

.form-group label {
 display: block;
 margin-bottom: 0.5rem;
 font-weight: 500;
 color: #374151;
}

.form-control {
 width: 100%;
 padding: 0.75rem 1rem;
 border: 1px solid #d1d5db;
 border-radius: 0.5rem;
 background: white;
 transition: all 0.2s;
 font-size: 1rem;
 color: #1e293b;
}

.form-control:focus {
 outline: none;
 border-color: var(--primary);
 box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

/* Form Groups */
.template-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.template-group select, .question-group select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: white;
  color: #1e293b;
  transition: all 0.2s;
}

.template-group select:focus, .question-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.template-group select option, .question-group select option {
  padding: 0.5rem;
}

.markdown_content-group textarea {
  width:100%;
  height: 500px;
  min-height: 250px;
  min-width: 250px;
  font-family: monospace;
}

.content-preview {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.video_url-group input, 
.image_url-group input, 
.image_url_1-group input, 
.image_url_2-group input, 
.image_url_3-group input, 
.image_url_4-group input,
.source-group input{
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.video_url-group input::placeholder, 
.image_url-group input::placeholder,
.image_url_1-group input::placeholder, 
.image_url_2-group input::placeholder, 
.image_url_3-group input::placeholder, 
.image_url_4-group input::placeholder, 
.source-group input::placeholder {
  color: #94a3b8;
}

.video_url-group input:focus, 
.image_url-group input:focus,
.image_url_1-group input:focus,
.image_url_2-group input:focus, 
.image_url_3-group input:focus, 
.image_url_4-group input:focus, 
.source-group input::focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

textarea.form-control {
 min-height: 150px;
 resize: vertical;
}

select.form-control {
 padding-right: 2.5rem;
 background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
 background-position: right 0.75rem center;
 background-repeat: no-repeat;
 background-size: 1.5em 1.5em;
 -webkit-appearance: none;
 -moz-appearance: none;
 appearance: none;
}

/* Template Form Layout */
.template-form {
    display: grid;
    grid-template-columns: 2fr 3fr;
    column-gap: 2rem;
    padding: 2rem;
    margin-bottom: 15px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}

.template-form .form-left {
    grid-column: 1;
}

.template-form .form-right {
    grid-column: 2;
    grid-row: 1 / span 3;
}

.template-form .form-actions {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.template-form .json-editor {
    height: 100%;
    min-height: 300px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    background: #f8fafc;
}

.template-form .form-group {
    margin-bottom: 1.5rem;
}

.template-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
}

.template-form input,
.template-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.template-form input:focus,
.template-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Tables */
.table-container {
 margin: 2rem 0;
 border-radius: 0.75rem;
 box-shadow: var(--shadow);
 overflow: hidden;
}

.data-table {
 width: 100%;
 border-collapse: collapse;
 background: white;
}

.data-table th {
 text-align: left;
 padding: 1rem 1.5rem;
 background: #f8fafc;
 border-bottom: 2px solid #e2e8f0;
 font-weight: 600;
 color: #475569;
 white-space: nowrap;
}

.data-table td {
 padding: 1rem 1.5rem;
 border-bottom: 1px solid #e2e8f0;
 color: #334155;
}

.data-table tr:last-child td {
 border-bottom: none;
}

.data-table tr:hover {
 background: #f8fafc;
}

.table-actions {
 display: flex;
 gap: 0.5rem;
}

/* Footer */
.footer{
  margin-top: auto;
  width: 100%;
}

.main-footer {
  text-align: center;
  padding: 1rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
}

.main-footer p {
 font-size: 0.875rem;
}

/* Cards */
.card {
 background: white;
 border-radius: 0.75rem;
 box-shadow: var(--shadow);
 transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
 transform: translateY(-2px);
 box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-header {
 padding: 1.5rem;
 border-bottom: 1px solid #e2e8f0;
}

.card-body {
 padding: 1.5rem;
}

.card-title {
 font-size: 1.25rem;
 font-weight: 600;
 color: #1e293b;
 margin-bottom: 0.5rem;
}

/* Stats */
.stats-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 1.5rem;
 margin-bottom: 2rem;
}

.stat-card {
 background: white;
 padding: 1.5rem;
 border-radius: 0.75rem;
 box-shadow: var(--shadow);
}

.stat-title {
 font-size: 0.875rem;
 font-weight: 500;
 color: #64748b;
 text-transform: uppercase;
 letter-spacing: 0.05em;
 margin-bottom: 0.5rem;
}

.stat-value {
 font-size: 2rem;
 font-weight: 700;
 color: #1e293b;
 line-height: 1;
}

.stat-description {
 margin-top: 0.5rem;
 color: #64748b;
 font-size: 0.875rem;
}

/* Auth Pages */
.auth-page {
 min-height: 100vh;
 background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 2rem;
}

.auth-container {
 width: 100%;
 max-width: 420px;
}

.auth-box {
 background: white;
 padding: 2.5rem;
 border-radius: 1rem;
 box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.auth-logo {
 text-align: center;
 margin-bottom: 2rem;
}

.auth-logo h1 {
 font-size: 2rem;
 font-weight: 700;
 color: #1e293b;
 letter-spacing: -0.5px;
}

.auth-title {
 font-size: 1.5rem;
 font-weight: 600;
 color: #1e293b;
 margin-bottom: 1.5rem;
 text-align: center;
}

.auth-form {
 margin-top: 2rem;
}

.auth-footer {
 text-align: center;
 margin-top: 1.5rem;
 padding-top: 1.5rem;
 border-top: 1px solid #e2e8f0;
}

.auth-links {
 display: flex;
 justify-content: center;
 gap: 1rem;
 margin-top: 1rem;
}

.auth-link {
 color: #64748b;
 text-decoration: none;
 font-size: 0.875rem;
 transition: color 0.2s;
}

.auth-link:hover {
 color: var(--primary);
}

/* Alerts */
.alert {
   padding: 10px 15px;
   border-radius: 4px;
   margin: 10px 0;
}
.alert-success {
   background-color: #d4edda;
   border-color: #c3e6cb;
   color: #155724;
}
.alert-error {
   background-color: #f8d7da;
   border-color: #f5c6cb;
   color: #721c24;
}
.btn-danger {
   background-color: #dc3545;
   border-color: #dc3545;
   color: white;
}
.btn-danger:hover {
   background-color: #c82333;
   border-color: #bd2130;
}

.alert-info {
 background: #eff6ff;
 border: 1px solid #bfdbfe;
 color: #1e40af;
}

/* Breadcrumbs */
.breadcrumbs {
 display: flex;
 align-items: center;
 gap: 0.5rem;
 margin-bottom: 1.5rem;
 color: #64748b;
 font-size: 0.875rem;
}

.breadcrumbs a {
 color: #64748b;
 text-decoration: none;
 transition: color 0.2s;
}

.breadcrumbs a:hover {
 color: var(--primary);
}

.breadcrumbs .separator {
 color: #94a3b8;
}

/* Loaders */
.loader {
 width: 2rem;
 height: 2rem;
 border: 3px solid #e2e8f0;
 border-top-color: var(--primary);
 border-radius: 50%;
 animation: spin 0.8s linear infinite;
}

@keyframes spin {
 to {
   transform: rotate(360deg);
 }
}

/* Badges */
.badge {
 display: inline-flex;
 align-items: center;
 padding: 0.25rem 0.75rem;
 border-radius: 9999px;
 font-size: 0.75rem;
 font-weight: 500;
}

.badge-primary {
 background: #eff6ff;
 color: var(--primary);
}

.badge-success {
 background: #f0fdf4;
 color: var(--success);
}

.badge-warning {
 background: #fffbeb;
 color: #d97706;
}

.badge-danger {
 background: #fef2f2;
 color: var(--danger);
}

/* Tooltips */
.tooltip {
 position: relative;
 display: inline-block;
}

.tooltip-content {
 position: absolute;
 bottom: 100%;
 left: 50%;
 transform: translateX(-50%);
 padding: 0.5rem 0.75rem;
 background: #1e293b;
 color: white;
 font-size: 0.75rem;
 border-radius: 0.25rem;
 white-space: nowrap;
 opacity: 0;
 visibility: hidden;
 transition: all 0.2s;
}

.tooltip:hover .tooltip-content {
 opacity: 1;
 visibility: visible;
 transform: translateX(-50%) translateY(-0.5rem);
}

/* Dividers */ 
.divider {
 height: 1px;
 background: #e2e8f0;
 margin: 2rem 0;
}

.divider-vertical {
 width: 1px;
 background: #e2e8f0;
 margin: 0 2rem;
 align-self: stretch;
}

/* Empty States */
.empty-state {
 text-align: center;
 padding: 4rem 2rem;
 color: #64748b;
}

.empty-state-icon {
 font-size: 3rem;
 color: #94a3b8;
 margin-bottom: 1.5rem;
}

.empty-state-title {
 font-size: 1.25rem;
 font-weight: 600;
 color: #1e293b;
 margin-bottom: 0.5rem;
}

.empty-state-description {
 max-width: 20rem;
 margin: 0 auto;
}

/* Search */
.search-box {
 position: relative;
}

.search-input {
 width: 100%;
 padding: 0.75rem 1rem 0.75rem 2.5rem;
 border: 1px solid #e2e8f0;
 border-radius: 0.5rem;
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
 background-position: 0.75rem center;
 background-repeat: no-repeat;
 background-size: 1.25rem;
}

.search-input:focus {
 outline: none;
 border-color: var(--primary);
 box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* File Upload */
.file-upload {
 border: 2px dashed #e2e8f0;
 border-radius: 0.5rem;
 padding: 2rem;
 text-align: center;
 background: #f8fafc;
 transition: all 0.2s;
}

.file-upload.dragging {
 border-color: var(--primary);
 background: #eff6ff;
}

.file-upload-icon {
 font-size: 2rem;
 color: #94a3b8;
 margin-bottom: 1rem;
}

.file-upload-text {
 color: #64748b;
 margin-bottom: 1rem;
}

.file-upload-input {
 display: none;
}

/* Progress */
.progress {
 background: #e2e8f0;
 border-radius: 9999px;
 height: 0.5rem;
 overflow: hidden;
}

.progress-bar {
 background: var(--primary);
 height: 100%;
 transition: width 0.3s;
}

/* Modal Styles */
.modal-backdrop {
   position: fixed;
   inset: 0;
   background: rgba(33, 33, 33, 0.75);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 1000;
   backdrop-filter: blur(4px);
}

.modal {
   position: fixed;
   inset: 0;
   display: none;
   background: rgba(33, 33, 33, 0.75);
   z-index: 1000;
   backdrop-filter: blur(4px);
}

.modal-content {
   position: relative;
   background: white;
   width: 90%;
   max-width: 800px;
   max-height: 90vh;
   margin: 5vh auto;
   border-radius: 12px;
   box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
   overflow: auto;
   animation: modalFadeIn 0.3s;
}

.modal-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 1.5rem;
   background: #f8fafc;
   border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
   font-size: 1.25rem;
   font-weight: 600;
   color: #1e293b;
   margin: 0;
}

.close-modal {
   background: none;
   border: none;
   font-size: 1.5rem;
   color: #64748b;
   cursor: pointer;
   padding: 0.5rem;
   border-radius: 0.375rem;
   transition: all 0.2s;
}

.close-modal:hover {
   color: #1e293b;
   background: #e2e8f0;
}

.modal-body {
   padding: 1.5rem;
}

.modal-footer {
   padding: 1.5rem;
   border-top: 1px solid #e2e8f0;
   display: flex;
   justify-content: flex-end;
   gap: 1rem;
}

#previewContent {
   padding: 1.5rem;
}

.preview-meta {
   display: flex;
   flex-wrap: wrap;
   gap: 1.5rem;
   margin-bottom: 1.5rem;
   padding-bottom: 1rem;
   border-bottom: 1px solid #e2e8f0;
}

.preview-meta span {
   font-size: 0.875rem;
   color: #64748b;
}

.preview-meta strong {
   color: #475569;
   margin-right: 0.5rem;
}

.preview-body {
   background: #f8fafc;
   padding: 1.5rem;
   border-radius: 0.5rem;
}

.markdown-content {
   line-height: 1.7;
   color: #1e293b;
}

.video-preview {
   margin-top: 1.5rem;
   padding-top: 1.5rem;
   border-top: 1px solid #e2e8f0;
   border-radius: 0.5rem;
   overflow: hidden;
   box-shadow: var(--shadow);
}

.video-preview video {
   width: 100%;
   display: block;
}

@keyframes modalFadeIn {
   from {
       opacity: 0;
       transform: translateY(-20px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

/* Khi modal hiện, chặn scroll body */
body.modal-open {
   overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 640px) {
   .modal-content {
       width: 95%;
       margin: 2.5vh auto;
   }

   .preview-meta {
       flex-direction: column;
       gap: 0.75rem;
   }

   .modal-header h2 {
       font-size: 1.125rem;
   }
}


/* Template Selection */
.template-select {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 1rem;
 margin: 1.5rem 0;
}

.template-card {
 border: 2px solid #e2e8f0;
 border-radius: 0.5rem;
 padding: 1.5rem;
 cursor: pointer;
 transition: all 0.2s;
}

.template-card:hover {
 border-color: var(--primary);
 background: #f8fafc;
}

.template-card.selected {
 border-color: var(--primary);
 background: #eff6ff;
}

.template-card-title {
 font-weight: 600;
 color: #1e293b;
 margin-bottom: 0.5rem;
}

.template-card-description {
 color: #64748b;
 font-size: 0.875rem;
}

/* Editor */
.editor-toolbar {
 border: 1px solid #e2e8f0;
 border-bottom: none;
 border-radius: 0.5rem 0.5rem 0 0;
 padding: 0.5rem;
 display: flex;
 gap: 0.5rem;
 background: #f8fafc;
}

.editor-btn {
 padding: 0.25rem 0.5rem;
 border: none;
 background: none;
 color: #64748b;
 border-radius: 0.25rem;
 cursor: pointer;
 transition: all 0.2s;
}

.editor-btn:hover {
 background: #e2e8f0;
 color: #1e293b;
}

.editor-content {
 border: 1px solid #e2e8f0;
 border-radius: 0 0 0.5rem 0.5rem;
 min-height: 200px;
 padding: 1rem;
}

/* Preview */
.preview-pane {
 margin-top: 2rem;
 padding: 2rem;
 border: 1px solid #e2e8f0;
 border-radius: 0.5rem;
 background: white;
}

.preview-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 1.5rem;
 padding-bottom: 1rem;
 border-bottom: 1px solid #e2e8f0;
}

.preview-title {
 font-size: 1.25rem;
 font-weight: 600;
 color: #1e293b;
}

/* Status Indicators */
.status-badge {
 display: inline-flex;
 align-items: center;
 padding: 0.25rem 0.75rem;
 border-radius: 9999px;
 font-size: 0.75rem;
 font-weight: 500;
}

.status-draft {
 background: #f1f5f9;
 color: #64748b;
}

.status-pending {
 background: #fffbeb;
 color: #d97706;
}

.status-approved {
 background: #f0fdf4;
 color: #15803d;
}

.status-rejected {
 background: #fef2f2;
 color: #dc2626;
}

/* Rich Text Editor */
.rich-editor {
 border: 1px solid #e2e8f0;
 border-radius: 0.5rem;
 overflow: hidden;
}

.rich-editor-toolbar {
 padding: 0.75rem;
 border-bottom: 1px solid #e2e8f0;
 background: #f8fafc;
 display: flex;
 flex-wrap: wrap;
 gap: 0.5rem;
}

.rich-editor-content {
 padding: 1rem;
 min-height: 200px;
}

/* Approvals Section */
.approvals {
 margin: 0 auto;
}

.answer-card {
 background: white;
 border-radius: 0.75rem;
 box-shadow: var(--shadow);
 margin-bottom: 2rem;
 overflow: hidden;
}

.answer-card-header {
 padding: 1.5rem;
 border-bottom: 1px solid #e2e8f0;
}

.answer-card-content {
 padding: 1.5rem;
}

.answer-card-footer {
 padding: 1.5rem;
 background: #f8fafc;
 border-top: 1px solid #e2e8f0;
}

/* Dashboard Stats */
/* Dashboard Stats */
.dashboard-stats {
 display: flex;
 gap: 1.5rem;
 margin-bottom: 3rem;
 justify-content: space-between;
}

.stat-box {
 flex: 1;
 background: white;
 padding: 1.5rem;
 border-radius: 0.75rem;
 box-shadow: var(--shadow);
}

.stat-label {
 font-size: 0.875rem;
 font-weight: 500;
 color: #64748b;
 text-transform: uppercase;
 letter-spacing: 0.05em;
}

.stat-number {
 font-size: 2rem;
 font-weight: 700;
 color: #1e293b;
 line-height: 1;
 margin: 0.5rem 0;
}

.stat-change {
 font-size: 0.875rem;
 display: flex;
 align-items: center;
 gap: 0.25rem;
}

.stat-change.positive {
 color: var(--success);
}

.stat-change.negative {
 color: var(--danger);
}

/* Activity Logs */
.activity-log {
  margin: 2rem 0;
}

.log-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.log-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.log-content {
  flex: 1;
}

.log-time {
  color: #64748b;
  font-size: 0.875rem;
}

/* Comment Section */
.comments-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.comment {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Filter & Sort */
.filter-bar {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Export Options */
.export-options {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
}

/* Settings Panel */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.setting-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

/*Hiển Thị Thông Báo*/

.message-container {
   position: fixed;
   top: 20px;
   right: 20px;
   z-index: 1000;
}

.alert {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/*Mầu Trạng Thái*/

.status-approved {
  color: green;         /* Màu xanh lá */
  font-weight: bold;
}
.status-pending {
  color: red;           /* Màu đỏ */
  font-weight: bold;
}
.status-rejected {
  color: orange;        /* Màu cam, ví dụ */
  font-weight: bold;
}
.status-deleted {
  color: gray;        /* Hoặc #6c757d, tuỳ ý */
  font-weight: bold;
}

/* Pagination styles - Improved */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem 0;
  padding: 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}

.pagination a {
  color: #4b5563;
  background-color: #f9fafb;
  border-color: #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination a:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.pagination a:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination span.current {
  background-color: #2563eb;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* Navigation buttons (first, prev, next, last) */
.pagination a:first-child,
.pagination a:last-child,
.pagination a:nth-child(2),
.pagination a:nth-last-child(2) {
  font-weight: 600;
  padding: 0 15px;
}

/* Add some emphasis to the navigation icons */
.pagination a:first-child:before,
.pagination a:nth-child(2):before,
.pagination a:nth-last-child(2):after,
.pagination a:last-child:after {
  display: inline-block;
  position: relative;
  transition: transform 0.2s ease;
}

.pagination a:first-child:hover:before,
.pagination a:nth-child(2):hover:before {
  transform: translateX(-2px);
}

.pagination a:nth-last-child(2):hover:after,
.pagination a:last-child:hover:after {
  transform: translateX(2px);
}

/* Pagination info text */
.pagination-info {
  text-align: right;
  color: #6b7280;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .pagination {
    gap: 0.25rem;
  }
  
  .pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
    padding: 0 8px;
  }
  
  .pagination a:first-child,
  .pagination a:last-child,
  .pagination a:nth-child(2),
  .pagination a:nth-last-child(2) {
    padding: 0 10px;
  }
}

/* Adding a subtle fade effect for better visual appeal on hover */
.pagination a {
  position: relative;
  overflow: hidden;
}

.pagination a:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pagination a:hover:after {
  opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .pagination {
    justify-content: center;
    gap: 5px;
  }
  
  .pagination .page-link {
    min-width: 30px;
    height: 30px;
    margin: 0 2px;
    font-size: 13px;
  }
}
