/* Main CSS styles for FB Tool System */

:root {
  /* Facebook color scheme */
  --fb-blue: #1877F2;
  --fb-blue-hover: #166FE5;
  --fb-gray: #F0F2F5;
  --fb-white: #FFFFFF;
  --fb-dark: #1C1E21;
  --error-red: #FF4D4F;
  --success-green: #52C41A;
  --warning-yellow: #FAAD14;
}

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

body {
  font-family: 'Helvetica', 'Arial', sans-serif;
  font-size: 14px;
  background-color: var(--fb-gray);
  color: var(--fb-dark);
  line-height: 1.5;
}

.navbar {
  background-color: var(--fb-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-brand {
  color: var(--fb-blue) !important;
  font-size: 20px;
  font-weight: bold;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-form {
  background: var(--fb-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-form .form-control {
  height: 48px;
}

.btn-login {
  background-color: var(--fb-blue);
  border-color: var(--fb-blue);
  height: 48px;
  font-size: 16px;
  font-weight: bold;
}

.btn-login:hover {
  background-color: var(--fb-blue-hover);
  border-color: var(--fb-blue-hover);
}

.stats-card {
  background: var(--fb-white);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-card .card-title {
  font-size: 16px;
  color: var(--fb-dark);
  margin-bottom: 10px;
}

.stats-card .card-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--fb-blue);
}
.stats-card:hover{
  background-color: #b7d8fc;

}

.page-table {
  background: var(--fb-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-table th {
  background-color: var(--fb-gray);
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.page-table td {
  vertical-align: middle;
}

.page-id {
  font-family: monospace;
  color: var(--fb-blue);
  font-weight: 500;
}

.page-posts-count {
  font-weight: 600;
  color: var(--fb-blue);
}

.access-token {
  font-family: monospace;
  font-size: 13px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-token.masked {
  color: var(--fb-dark);
  letter-spacing: 2px;
}

.page-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  min-width: 80px;
  text-align: center;
}

.page-status-active {
  background-color: rgba(82, 196, 26, 0.1);
  color: var(--success-green);
}

.page-status-inactive {
  background-color: rgba(255, 77, 79, 0.1);
  color: var(--error-red);
}

.page-status-loading {
  background-color: rgba(250, 173, 20, 0.1);
  color: var(--warning-yellow);
}

.btn-page-action {
  padding: 4px 12px;
  margin: 0 3px;
  min-width: 32px;
  height: 32px;
  font-size: 14px;
}

.page-users {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-table {
  background: var(--fb-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.token-table th {
  background-color: var(--fb-gray);
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.token-table td {
  vertical-align: middle;
}

.token-code {
  font-family: monospace;
  letter-spacing: 1px;
}

.token-code.masked {
  color: var(--fb-dark);
}

.token-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  min-width: 80px;
  text-align: center;
}

.token-status-active {
  background-color: rgba(82, 196, 26, 0.1);
  color: var(--success-green);
}

.token-status-inactive {
  background-color: rgba(255, 77, 79, 0.1);
  color: var(--error-red);
}

.user-table {
  background: var(--fb-white);
  border-radius: 8px;
  overflow: hidden;
}

.status-active {
  color: var(--success-green);
}

.status-inactive {
  color: var(--error-red);
}

.btn-action {
  min-width: 48px;
  height: 32px;
  margin: 0 4px;
}

.modal-content {
  border-radius: 8px;
}

.modal-header {
  background-color: var(--fb-gray);
}

@media (max-width: 1023px) {
  .stats-card .card-value {
    font-size: 20px;
  }

  .navbar-brand {
    font-size: 18px;
  }

  .page-table,
  .token-table {
    font-size: 13px;
  }

  .access-token {
    max-width: 120px;
  }

  .page-users {
    max-width: 150px;
  }
}

@media (max-width: 767px) {
  .stats-card .card-value {
    font-size: 20px;
  }

  .navbar-brand {
    font-size: 16px;
  }

  .user-table,
  .page-table,
  .token-table {
    font-size: 12px;
  }

  .btn-action,
  .btn-page-action {
    padding: 4px 8px;
    font-size: 12px;
    margin: 2px;
  }

  .login-form {
    padding: 20px;
  }

  .page-table td:nth-child(3),
  .page-table th:nth-child(3),
  .page-table td:nth-child(5),
  .page-table th:nth-child(5) {
    display: none;
  }

  .access-token {
    max-width: 80px;
    font-size: 11px;
  }
}

.main-content {
  padding-top: 100px;
  padding-bottom: 30px;
}

.w-90 {
  width: 90%;
}

.text-break-all {
  word-break: break-all;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}
.task-history-table th,
.task-history-table td {
    width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 10px;

}
.form-select-sm{
  cursor: pointer;
}
#taskDetailModal .modal-content {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  font-family: 'Arial', sans-serif;
}

#taskDetailModal .modal-header {
  background-color: #4a90e2;
  color: white;
  border-bottom: none;
  padding: 15px 20px;
}

#taskDetailModal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
}

#taskDetailModal .btn-close {
  filter: invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}

#taskDetailModal .btn-close:hover {
  opacity: 1;
}

#taskDetailModal .modal-body {
  padding: 20px;
  background-color: #f9f9f9;
}

#taskDetailModal .task-detail-content dl {
  margin: 0;
}

#taskDetailModal dt {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  font-size: 1rem;
}

#taskDetailModal dd {
  margin-bottom: 15px;
  color: #555;
  font-size: 0.95rem;
  padding-left: 15px;
  position: relative;
}

#taskDetailModal dd:before {
  content: "•";
  color: #4a90e2;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

#taskDetailModal .task-status {
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

#taskDetailModal .task-status-completed {
  background-color: #e6f4ea;
  color: #2e7d32;
}

#taskDetailModal .modal-dialog {
  max-width: 500px;
  margin: 1.75rem auto;
}

#taskDetailModal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

#taskDetailModal.show .modal-dialog {
  transform: translate(0, 0);
}

@media (max-width: 576px) {
  #taskDetailModal .modal-dialog {
      margin: 1rem;
  }

  #taskDetailModal .modal-title {
      font-size: 1.25rem;
  }

  #taskDetailModal dt, #taskDetailModal dd {
      font-size: 0.9rem;
  }
}
/* Permission Modal Styling */
#permissionModal .modal-content {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  background-color: var(--fb-white);
}

#permissionModal .modal-header {
  background-color: var(--fb-blue);
  color: var(--fb-white);
  border-bottom: none;
  padding: 15px 20px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#permissionModal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#permissionModal .btn-close {
  filter: invert(1); /* White close button */
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

#permissionModal .btn-close:hover {
  opacity: 1;
}

#permissionModal .modal-body {
  padding: 20px;
  background-color: var(--fb-gray); /* Light gray background */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

#permissionModal .form-check {
  margin-bottom: 12px;
  padding-left: 2rem; /* Extra space for checkbox */
  transition: background-color 0.2s ease;
}

#permissionModal .form-check:hover {
  background-color: rgba(24, 119, 242, 0.1); /* Subtle hover effect */
  border-radius: 5px;
}

#permissionModal .form-check-input {
  margin-top: 0.35rem;
  cursor: pointer;
  border: 2px solid var(--fb-dark);
  width: 1.25rem;
  height: 1.25rem;
  transition: all 0.2s ease;
}

#permissionModal .form-check-input:checked {
  background-color: var(--fb-blue);
  border-color: var(--fb-blue);
}

#permissionModal .form-check-label {
  font-size: 1rem;
  color: var(--fb-dark);
  cursor: pointer;
  padding-left: 5px;
  font-weight: 500;
}

#permissionModal .btn-primary {
  background-color: var(--fb-blue);
  border-color: var(--fb-blue);
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#permissionModal .btn-primary:hover {
  background-color: var(--fb-blue-hover);
  border-color: var(--fb-blue-hover);
  transform: translateY(-2px); /* Slight lift effect */
}

#permissionModal .btn-primary:active {
  transform: translateY(0); /* Reset on click */
}

/* Animation for modal entrance */
#permissionModal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translateY(-50px);
}

#permissionModal.show .modal-dialog {
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  #permissionModal .modal-dialog {
    margin: 1rem;
  }

  #permissionModal .modal-title {
    font-size: 1.25rem;
  }

  #permissionModal .form-check-label {
    font-size: 0.95rem;
  }

  #permissionModal .btn-primary {
    font-size: 0.95rem;
    padding: 8px 16px;
  }
}
/* Add Token Modal Styling */
#addTokenModal .modal-content {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  background-color: var(--fb-white);
}

#addTokenModal .modal-header {
  background-color: var(--fb-blue);
  color: var(--fb-white);
  border-bottom: none;
  padding: 15px 20px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#addTokenModal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#addTokenModal .btn-close {
  filter: invert(1); /* White close button */
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

#addTokenModal .btn-close:hover {
  opacity: 1;
}

#addTokenModal .modal-body {
  padding: 20px;
  background-color: var(--fb-gray); /* Light gray background */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

#addTokenModal .form-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fb-dark);
  margin-bottom: 8px;
}

#addTokenModal .input-group {
  position: relative;
}

#addTokenModal .form-control {
  height: 45px;
  border-radius: 6px;
  border: 1px solid #ced4da;
  font-size: 1rem;
  padding: 10px 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#addTokenModal .form-control:focus {
  border-color: var(--fb-blue);
  box-shadow: 0 0 5px rgba(24, 119, 242, 0.3);
  outline: none;
}

#addTokenModal .input-group .btn-outline-secondary {
  height: 45px;
  border-radius: 0 6px 6px 0;
  border: 1px solid #ced4da;
  border-left: none;
  background-color: var(--fb-white);
  color: var(--fb-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
}

#addTokenModal .input-group .btn-outline-secondary:hover {
  background-color: var(--fb-blue);
  color: var(--fb-white);
}

#addTokenModal .input-group .btn-outline-secondary i {
  font-size: 1.2rem;
}

#addTokenModal .form-check {
  margin-bottom: 10px;
  padding-left: 2rem;
}

#addTokenModal .form-check-input {
  margin-top: 0.35rem;
  cursor: pointer;
  border: 2px solid var(--fb-dark);
  width: 1.25rem;
  height: 1.25rem;
  transition: all 0.2s ease;
}

#addTokenModal .form-check-input:checked {
  background-color: var(--fb-blue);
  border-color: var(--fb-blue);
}

#addTokenModal .form-check-label {
  font-size: 1rem;
  color: var(--fb-dark);
  cursor: pointer;
  padding-left: 5px;
  font-weight: 500;
}

#addTokenModal .form-check:hover {
  background-color: rgba(24, 119, 242, 0.1);
  border-radius: 5px;
}

#addTokenModal .btn-primary {
  background-color: var(--fb-blue);
  border-color: var(--fb-blue);
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#addTokenModal .btn-primary:hover {
  background-color: var(--fb-blue-hover);
  border-color: var(--fb-blue-hover);
  transform: translateY(-2px); /* Slight lift effect */
}

#addTokenModal .btn-primary:active {
  transform: translateY(0); /* Reset on click */
}

/* Animation for modal entrance */
#addTokenModal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translateY(-50px);
}

#addTokenModal.show .modal-dialog {
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  #addTokenModal .modal-dialog {
    margin: 1rem;
  }

  #addTokenModal .modal-title {
    font-size: 1.25rem;
  }

  #addTokenModal .form-label,
  #addTokenModal .form-check-label {
    font-size: 0.95rem;
  }

  #addTokenModal .form-control,
  #addTokenModal .input-group .btn-outline-secondary {
    height: 40px;
    font-size: 0.95rem;
  }

  #addTokenModal .btn-primary {
    font-size: 0.95rem;
    padding: 8px 16px;
  }
}
/* Edit Token Modal Styling */
#editTokenModal .modal-content {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  background-color: var(--fb-white);
}

#editTokenModal .modal-header {
  background-color: var(--fb-blue);
  color: var(--fb-white);
  border-bottom: none;
  padding: 15px 20px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#editTokenModal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#editTokenModal .btn-close {
  filter: invert(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

#editTokenModal .btn-close:hover {
  opacity: 1;
}

#editTokenModal .modal-body {
  padding: 20px;
  background-color: var(--fb-gray);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

#editTokenModal .form-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fb-dark);
  margin-bottom: 8px;
}

#editTokenModal .input-group {
  position: relative;
}

#editTokenModal .form-control {
  height: 45px;
  border-radius: 6px;
  border: 1px solid #ced4da;
  font-size: 1rem;
  padding: 10px 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#editTokenModal .form-control:focus {
  border-color: var(--fb-blue);
  box-shadow: 0 0 5px rgba(24, 119, 242, 0.3);
  outline: none;
}

#editTokenModal .input-group .btn-outline-secondary {
  height: 45px;
  border-radius: 0 6px 6px 0;
  border: 1px solid #ced4da;
  border-left: none;
  background-color: var(--fb-white);
  color: var(--fb-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
}

#editTokenModal .input-group .btn-outline-secondary:hover {
  background-color: var(--fb-blue);
  color: var(--fb-white);
}

#editTokenModal .input-group .btn-outline-secondary i {
  font-size: 1.2rem;
}

#editTokenModal .form-select {
  height: 45px;
  border-radius: 6px;
  border: 1px solid #ced4da;
  font-size: 1rem;
  padding: 10px 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

#editTokenModal .form-select:focus {
  border-color: var(--fb-blue);
  box-shadow: 0 0 5px rgba(24, 119, 242, 0.3);
  outline: none;
}

#editTokenModal .btn-primary {
  background-color: var(--fb-blue);
  border-color: var(--fb-blue);
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#editTokenModal .btn-primary:hover {
  background-color: var(--fb-blue-hover);
  border-color: var(--fb-blue-hover);
  transform: translateY(-2px);
}

#editTokenModal .btn-primary:active {
  transform: translateY(0);
}

#editTokenModal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translateY(-50px);
}

#editTokenModal.show .modal-dialog {
  transform: translateY(0);
}

@media (max-width: 576px) {
  #editTokenModal .modal-dialog {
    margin: 1rem;
  }

  #editTokenModal .modal-title {
    font-size: 1.25rem;
  }

  #editTokenModal .form-label {
    font-size: 0.95rem;
  }

  #editTokenModal .form-control,
  #editTokenModal .form-select,
  #editTokenModal .input-group .btn-outline-secondary {
    height: 40px;
    font-size: 0.95rem;
  }

  #editTokenModal .btn-primary {
    font-size: 0.95rem;
    padding: 8px 16px;
  }
}
#pagePermissionModal .modal-content {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
  background-color: var(--fb-white);
}

#pagePermissionModal .modal-header {
  background-color: var(--fb-blue);
  color: var(--fb-white);
  border-bottom: none;
  padding: 15px 20px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#pagePermissionModal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#pagePermissionModal .btn-close {
  filter: invert(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

#pagePermissionModal .btn-close:hover {
  opacity: 1;
}

#pagePermissionModal .modal-body {
  padding: 20px;
  background-color: var(--fb-gray);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

#pagePermissionModal .form-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fb-dark);
  margin-bottom: 8px;
}

#pagePermissionModal .form-select {
  border-radius: 6px;
  border: 1px solid #ced4da;
  font-size: 1rem;
  padding: 10px 15px;
  background-color: var(--fb-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  max-height: 200px;
  overflow-y: auto;
}

#pagePermissionModal .form-select:focus {
  border-color: var(--fb-blue);
  box-shadow: 0 0 5px rgba(24, 119, 242, 0.3);
  outline: none;
}

#pagePermissionModal .form-select option {
  padding: 8px 10px;
  color: var(--fb-dark);
}

#pagePermissionModal .form-select option:hover,
#pagePermissionModal .form-select option:checked {
  background-color: rgba(24, 119, 242, 0.1);
  color: var(--fb-dark);
}

#pagePermissionModal .btn-primary {
  background-color: var(--fb-blue);
  border-color: var(--fb-blue);
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#pagePermissionModal .btn-primary:hover {
  background-color: var(--fb-blue-hover);
  border-color: var(--fb-blue-hover);
  transform: translateY(-2px);
}

#pagePermissionModal .btn-primary:active {
  transform: translateY(0);
}

#pagePermissionModal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translateY(-50px);
}

#pagePermissionModal.show .modal-dialog {
  transform: translateY(0);
}

@media (max-width: 576px) {
  #pagePermissionModal .modal-dialog {
    margin: 1rem;
  }

  #pagePermissionModal .modal-title {
    font-size: 1.25rem;
  }

  #pagePermissionModal .form-label {
    font-size: 0.95rem;
  }

  #pagePermissionModal .form-select {
    font-size: 0.95rem;
    padding: 8px 12px;
    max-height: 150px;
  }

  #pagePermissionModal .btn-primary {
    font-size: 0.95rem;
    padding: 8px 16px;
  }
}
.table-responsive{
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

}
.content-title{
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.nav-item{
  margin: 10px ;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.nav-item:hover{
  background-color: #b7d8fc;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
  color: var(--bs-navbar-active-color);
  background-color: #b7d8fc;
  border-radius: 10px;
}

.nav-link {
    padding: 10px;
}

#_c_loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

#_c_loading._c_active {
    opacity: 1;
    visibility: visible;
}

._c_loading-spinner {
    text-align: center;
}

._c_loading-circle {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid #1877f2;
    border-radius: 50%;
    animation: _c_spin 1s linear infinite;
    margin: 0 auto 10px;
}

._c_loading-text {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

@keyframes _c_spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#_c_toast_container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    pointer-events: none;
}

/* Style toast */
._c_toast {
    position: relative;
    min-width: 300px;
    max-width: 100%;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff10, #ffffff30);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: _c_popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: all;
    transition: transform 0.2s ease;
}

._c_toast:hover {
    transform: translateY(-5px);
}

._c_toast-success { background: linear-gradient(135deg, #28a745, #218838); }
._c_toast-error { background: linear-gradient(135deg, #dc3545, #c82333); }
._c_toast-warning { background: linear-gradient(135deg, #ffc107, #e0a800); color: #333; }
._c_toast-info { background: linear-gradient(135deg, #17a2b8, #138496); }

._c_toast-error {
    animation: _c_popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), _c_shake 0.5s ease 0.4s;
}

._c_toast-icon {
    margin-right: 15px;
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

._c_toast-content {
    flex: 1;
}

._c_toast-title {
    font-weight: 600;
    margin-bottom: 5px;
}

._c_toast-message {
    font-size: 14px;
    opacity: 0.9;
}

._c_toast-close {
    margin-left: 15px;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

._c_toast-close:hover {
    background: rgba(0, 0, 0, 0.4);
}

._c_toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    animation: _c_progress 3s linear forwards;
}

@keyframes _c_popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes _c_shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

@keyframes _c_progress {
    0% { width: 100%; }
    100% { width: 0; }
}


@media screen and (max-width: 768px) {
  .content-title{
flex-direction: column;
  }
  .pending_post{
    flex-direction: column;
  }
  .post-btn{
    white-space: nowrap;
    font-size: 12px;
    padding: 5px 10px;

  }
  .c_post-btn{
    font-size: 12px;
    padding: 5px 10px;
  }
  .post-action{
    white-space: nowrap;
  }
}
.filter {
  display: flex;
  align-items: end;
  flex-direction: column;
  margin-bottom: 20px;
}
.filter a{
  margin-top: 20px;
}

