/* Admin Panel Styles */
:root {
  --primary-color: #dd251e;
  --secondary-color: #333;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: #f5f5f5;
}

/* Login Page */
.password-toggle {
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #c02018;
  border-color: #c02018;
}

/* Dashboard */
.sidebar {
  background-color: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  height: 100vh;
  position: fixed;
  width: 250px;
}

.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--medium-gray);
}

.sidebar-menu {
  padding: 1rem 0;
}

.sidebar-menu a {
  color: var(--secondary-color);
  display: block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.sidebar-menu i {
  margin-right: 10px;
  width: 20px;
}

.main-content {
  margin-left: 250px;
  padding: 2rem;
}

.main-content h1 {
  margin-bottom: 1.5rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.blog-card {
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image-container {
  height: 200px;
  overflow: hidden;
}

.blog-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Form Styles */
.tox-tinymce {
  min-height: 400px !important;
}

.image-preview {
  max-height: 300px;
  margin-top: 1rem;
}

.custom-file-button {
  position: relative;
  overflow: hidden;
}

.custom-file-button input[type="file"] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  outline: none;
  cursor: pointer;
  display: block;
}

/* Loader */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}