/* Minimalistic Pages Styles */

/* Common styles for minimalistic pages */
.minimal-page {
  padding-top: 40px;
  background-color: #f8f9fa;
  min-height: calc(100vh - 70px);
}

.dark-theme .minimal-page {
  background-color: #1a1a2e;
}

.minimal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px;
}

.minimal-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 25px;
}

.dark-theme .minimal-card {
  background-color: #16213e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.minimal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f1f1;
}

.dark-theme .minimal-card-header {
  border-bottom-color: #273c5a;
}

.minimal-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.dark-theme .minimal-card-title {
  color: #e9ecef;
}

.minimal-card-subtitle {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 5px;
}

.minimal-section {
  margin-bottom: 30px;
}

.minimal-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.dark-theme .minimal-section-title {
  color: #e9ecef;
}

.minimal-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #007bff;
  border-radius: 3px;
}

/* Dashboard specific styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.dark-theme .stat-card {
  background-color: #1e293b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.stat-icon.blue {
  background-color: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

.stat-icon.green {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.stat-icon.orange {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.stat-icon.red {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.stat-info {
  flex-grow: 1;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.dark-theme .stat-value {
  color: #e9ecef;
}

.stat-label {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #f1f1f1;
}

.dark-theme .activity-item {
  border-bottom-color: #273c5a;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  color: #6c757d;
}

.dark-theme .activity-icon {
  background-color: #273c5a;
  color: #adb5bd;
}

.activity-content {
  flex-grow: 1;
}

.activity-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 5px 0;
}

.dark-theme .activity-title {
  color: #e9ecef;
}

.activity-meta {
  font-size: 0.8rem;
  color: #6c757d;
  display: flex;
  gap: 15px;
}

.chart-container {
  height: 300px;
  margin-top: 20px;
}

/* Settings specific styles */
.settings-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.settings-nav-item {
  padding: 10px 20px;
  background-color: #f8f9fa;
  border-radius: 20px;
  color: #495057;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.dark-theme .settings-nav-item {
  background-color: #1e293b;
  color: #adb5bd;
}

.settings-nav-item:hover {
  background-color: #e9ecef;
}

.dark-theme .settings-nav-item:hover {
  background-color: #273c5a;
}

.settings-nav-item.active {
  background-color: #007bff;
  color: #fff;
}

.dark-theme .settings-nav-item.active {
  background-color: #4dabf7;
  color: #16213e;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #495057;
}

.dark-theme .form-label {
  color: #adb5bd;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.dark-theme .form-control {
  background-color: #273c5a;
  border-color: #1e293b;
  color: #e9ecef;
}

.form-control:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.dark-theme .form-control:focus {
  border-color: #4dabf7;
  box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
}

.form-text {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 5px;
}

.avatar-upload {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dark-theme .avatar-preview {
  border-color: #16213e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #007bff;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
}

.dark-theme .toggle-option {
  border-bottom-color: #273c5a;
}

.toggle-option:last-child {
  border-bottom: none;
}

.toggle-label {
  font-weight: 500;
  color: #495057;
}

.dark-theme .toggle-label {
  color: #adb5bd;
}

.toggle-description {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 3px;
}

/* Bookmarks specific styles */
.bookmarks-filter {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filter-group {
  flex-grow: 1;
  min-width: 200px;
}

.bookmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.bookmark-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dark-theme .bookmark-card {
  background-color: #1e293b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.bookmark-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bookmark-image {
  height: 160px;
  overflow: hidden;
}

.bookmark-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.bookmark-card:hover .bookmark-image img {
  transform: scale(1.05);
}

.bookmark-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.bookmark-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.dark-theme .bookmark-title {
  color: #e9ecef;
}

.bookmark-excerpt {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 15px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bookmark-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-top: auto;
}

.bookmark-author {
  display: flex;
  align-items: center;
}

.bookmark-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
  object-fit: cover;
}

.bookmark-author-name {
  color: #6c757d;
}

.bookmark-date {
  color: #6c757d;
}

.bookmark-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid #f1f1f1;
}

.dark-theme .bookmark-actions {
  border-top-color: #273c5a;
}

.bookmark-btn {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.bookmark-btn:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.dark-theme .bookmark-btn:hover {
  background-color: #273c5a;
  color: #adb5bd;
}

.bookmark-btn i {
  margin-right: 5px;
}

.bookmark-btn.remove {
  color: #dc3545;
}

.bookmark-btn.remove:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .bookmarks-grid {
    grid-template-columns: 1fr;
  }
  
  .avatar-upload {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .avatar-preview {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .settings-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}
