body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
  padding: 20px;
  box-sizing: border-box;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin-bottom: 20px;
}

.header-container h1 {
  margin: 0;
  color: #333;
  font-size: 2.5em;
  text-align: center;
}

#settings-icon {
  font-size: 2em; /* Increase size */
  cursor: pointer;
  color: #555;
  transition: color 0.3s ease;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

#settings-icon:hover {
  color: #007bff;
}

.adfit-banner {
  width: 100%;
  max-width: 1298px;
  margin: 10px auto 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 0;
}

.adfit-banner--footer {
  max-width: 728px;
  width: 100%;
  margin: 40px auto 20px;
}

.adfit-banner .kakao_ad_area {
  margin: 0 auto;
}

.dashboard-card.dragging {
  opacity: 0.9;
  cursor: grabbing;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.2);
}

.dashboard-card-placeholder {
  border: 2px dashed #007bff;
  border-radius: 15px;
  background-color: rgba(0, 123, 255, 0.08);
  pointer-events: none;
}

@media (max-width: 860px) {
  .adfit-banner {
    margin: 8px auto 28px;
  }

  .adfit-banner--footer {
    max-width: 320px;
    margin: 32px auto 16px;
  }
}

.main-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(387px, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 1298px;
  margin: 0 auto;
  align-items: stretch;
  grid-auto-rows: 658px;
}

.dashboard-card {
  text-align: center;
  padding: 27px;
  border-radius: 15px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  height: 658px;
  max-height: 658px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Specific overrides for content within cards to fit the new size */
#weather-card .tts-control,
#weather-card button {
  margin-top: auto;
}

#notes-card #note-list,
#todo-card #todo-list,
#done-card #done-list,
#voice-memo-card #recordings-list {
  flex-grow: 1;
  overflow-y: auto;
}

#todo-card #todo-form {
  flex-direction: column;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  gap: 12px;
  margin-bottom: 20px;
}

#todo-card #todo-form input,
#todo-card #todo-form select,
#todo-card #todo-form button {
  width: 100%;
  box-sizing: border-box;
}

#attendance-card .attendance-daily-view,
#attendance-card .attendance-monthly-summary {
  flex-grow: 1;
  overflow-y: auto;
}

#attendance-card #daily-attendance-table {
  font-size: 0.8em;
}

#attendance-card .attendance-controls {
  flex-wrap: wrap;
  justify-content: center;
}

.settings-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  margin-top: 25px;
  max-height: 75vh;
  overflow-y: auto;
  padding: 10px;
}

/* 스크롤바 스타일 개선 */
.settings-controls::-webkit-scrollbar {
  width: 10px;
}

.settings-controls::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.settings-controls::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.settings-controls::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.settings-category {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  background-color: #f9f9f9;
}

.category-header {
  margin: 0;
  padding: 0 25px;
  color: #333;
  font-size: 1.2em;
  font-weight: 600;
  background-color: #f0f0f0;
  cursor: default;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  user-select: none;
  border-bottom: 1px solid #e0e0e0;
  height: 64px;
  text-align: left;
  white-space: nowrap;
  line-height: 1;
}

.category-header .dropdown-arrow {
  font-size: 1.1em;
  transition: transform 0.3s ease;
  color: #666;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  padding: 0;
  height: 100%;
}

.category-header.expanded .dropdown-arrow {
  transform: rotate(180deg);
}

.category-header > span:not(.category-icon):not(.dropdown-arrow) {
  display: flex;
  align-items: center;
  line-height: 1;
  flex: 1;
  margin: 0;
  padding: 0;
  height: 100%;
}

.category-icon {
  font-size: 1.4em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  height: 100%;
}

.category-controls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
  padding: 0 30px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, padding 0.3s ease;
}

.category-controls.expanded {
  padding: 30px;
  opacity: 1;
  visibility: visible;
}

.category-controls.collapsed {
  padding: 0 30px;
}

.settings-controls label {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 15px;
  color: #333;
  padding: 16px 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  cursor: pointer;
  margin: 0;
  min-height: 48px;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}

.settings-controls label:hover {
  background: #f8f9fa;
  border-color: #007bff;
  box-shadow: 0 3px 6px rgba(0, 123, 255, 0.15);
  transform: translateY(-1px);
}

.settings-controls input[type="checkbox"] {
  transform: scale(1.5);
  accent-color: #007bff;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.settings-controls label span {
  flex: 1;
  padding-left: 5px;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.6;
}

/* Universal Form Styles */
.goal-form,
.time-entry-form,
.project-form,
.expense-form,
.meeting-form,
.deadline-form,
.template-form,
.leave-form,
.contact-form,
.feedback-form,
.handover-form,
.learning-form,
.skill-form,
.reading-form,
.password-options,
.qr-form,
.converter-form,
.salary-form,
.budget-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* Universal Input and Button Styles */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="password"],
select,
textarea {
  padding: 10px 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: white;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Universal Button Styles */
button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

/* Primary Button Style */
button:not(.delete-btn):not(.danger-button):not(.complete-btn):not(
    .status-btn
  ):not(.use-btn):not(.copy-password-btn) {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

button:not(.delete-btn):not(.danger-button):not(.complete-btn):not(
    .status-btn
  ):not(.use-btn):not(.copy-password-btn):hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  transform: translateY(-1px);
}

/* Legacy form compatibility */
.goal-form input,
.goal-form select,
.goal-form button,
.time-entry-form input,
.time-entry-form textarea,
.time-entry-form button,
.project-form input,
.project-form select,
.project-form textarea,
.project-form button {
  /* Remove individual styling as it's now handled by universal styles */
}

.goals-list,
.time-entries,
.achievements-log,
.projects-list {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 300px;
}

.goal-item,
.time-entry-item,
.achievement-item,
.project-item {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 4px solid #007bff;
}

.goal-header,
.entry-header,
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.goal-title,
.project-name {
  font-weight: bold;
  color: #333;
}

.goal-period {
  background: #007bff;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 5px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  color: #666;
}

.goal-actions,
.project-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.goal-actions button,
.project-actions button {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.goal-actions button:first-child,
.goal-actions button:nth-child(2) {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.goal-actions button:first-child:hover,
.goal-actions button:nth-child(2):hover {
  background: linear-gradient(135deg, #218838, #1ea471);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
  transform: translateY(-1px);
}

.metrics-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #007bff;
}

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

.productivity-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.productivity-actions button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
  transition: all 0.2s ease;
}

.productivity-actions button:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  transform: translateY(-1px);
}

.time-summary h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 16px;
}

.project-summary {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.project-summary:last-child {
  border-bottom: none;
}

.entry-time,
.entry-description {
  font-size: 12px;
  color: #666;
  margin: 4px 0;
}

.duration {
  font-weight: bold;
  color: #28a745;
}

.achievement-text {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.achievement-time {
  font-size: 12px;
  color: #666;
}

.project-description {
  font-size: 12px;
  color: #666;
  margin: 8px 0;
}

.project-deadline {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #28a745;
  color: white;
}

.project-deadline.overdue {
  background: #dc3545;
}

.project-status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
}

.project-status-badge.planning {
  background: #6c757d;
  color: white;
}

.project-status-badge.in-progress {
  background: #007bff;
  color: white;
}

.project-status-badge.review {
  background: #ffc107;
  color: black;
}

.project-status-badge.completed {
  background: #28a745;
  color: white;
}

.project-item {
  position: relative;
}

.project-actions select {
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
}

/* Additional Cards Styles - Now handled by Universal Form Styles above */

.expense-item,
.meeting-item,
.deadline-item,
.template-item,
.leave-item,
.contact-item,
.feedback-item,
.handover-item,
.learning-item,
.skill-item,
.book-item {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 4px solid #007bff;
}

.expense-header,
.meeting-header,
.deadline-header,
.template-header,
.leave-header,
.contact-header,
.feedback-header,
.handover-header,
.learning-header,
.skill-header,
.book-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.expense-category,
.meeting-title,
.deadline-task,
.template-name,
.leave-type,
.contact-name,
.feedback-title,
.handover-project,
.learning-subject,
.skill-name,
.book-title {
  font-weight: bold;
  color: #333;
}

.salary-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #28a745;
}

.budget-item.over-budget {
  border-left-color: #dc3545;
}

.budget-item.over-budget .progress-fill {
  background: #dc3545 !important;
}

.past-meeting {
  opacity: 0.7;
}

.deadline-item.overdue {
  border-left-color: #dc3545;
}

.deadline-item.completed {
  opacity: 0.7;
  text-decoration: line-through;
}

.template-tasks {
  margin: 8px 0;
  font-size: 14px;
}

.template-task {
  padding: 2px 0;
  color: #666;
}

.leave-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.leave-stat {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
}

.contact-info {
  margin: 8px 0;
  font-size: 14px;
}

.contact-phone,
.contact-email {
  margin: 4px 0;
}

.feedback-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #666;
  margin: 8px 0;
}

.handover-people {
  display: flex;
  gap: 15px;
  font-size: 14px;
  margin: 8px 0;
}

.skill-category h4 {
  margin: 0 0 10px 0;
  color: #333;
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin: 5px 0;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #dc3545, #ffc107, #28a745);
  transition: width 0.3s ease;
}

.reading-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 14px;
}

.password-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.password-result {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.password-result input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: monospace;
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.qr-placeholder {
  text-align: center;
  padding: 20px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  margin: 15px 0;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
}

.qr-cell {
  background: #f0f0f0;
  border-radius: 2px;
}

.qr-cell.filled {
  background: #333;
}

.conversion-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.convert-arrow {
  font-size: 20px;
  color: #007bff;
  margin: 0 10px;
}

.use-btn,
.complete-btn,
.status-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
  transition: all 0.2s ease;
}

.use-btn:hover,
.complete-btn:hover,
.status-btn:hover {
  background: linear-gradient(135deg, #218838, #1ea471);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
  transform: translateY(-1px);
}

.delete-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
  transition: all 0.2s ease;
}

.delete-btn:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
  transform: translateY(-1px);
}

.danger-button {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
  transition: all 0.2s ease;
}

.danger-button:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
  transform: translateY(-1px);
}

.copy-password-btn {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
  transition: all 0.2s ease;
}

.copy-password-btn:hover {
  background: linear-gradient(135deg, #5a6268, #484e53);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
  transform: translateY(-1px);
}

.learning-actions input[type="range"] {
  flex: 1;
  margin: 0 10px;
}

.overdue {
  color: #dc3545 !important;
}

.status-pending {
  color: #ffc107;
}

.status-approved {
  color: #28a745;
}

.status-rejected {
  color: #dc3545;
}

/* Pomodoro Styles */
.pomodoro-timer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

#pomodoro-visual-timer {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(red 0% 0%, #eee 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  color: transparent;
}

#pomodoro-digital-timer {
  font-size: 3em;
  font-weight: bold;
  color: #333;
  min-width: 150px;
  text-align: center;
}

#pomodoro-status {
  font-size: 1.2em;
  color: #555;
  margin-bottom: 15px;
}

.pomodoro-settings {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.pomodoro-settings label {
  font-size: 1em;
  color: #555;
}

.pomodoro-settings input[type="number"] {
  width: 60px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  text-align: center;
}

.pomodoro-settings button {
  padding: 8px 15px;
  font-size: 1em;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pomodoro-settings button:hover {
  background-color: #0056b3;
}

.pomodoro-controls button {
  margin: 0 5px;
  padding: 10px 20px;
  font-size: 16px;
}

/* To-Do List Styles */
.todo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.date-navigation {
  display: flex;
  align-items: center;
  gap: 5px;
}

.date-navigation button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-navigation button:hover {
  background-color: #0056b3;
}

#current-todo-date {
  margin: 0;
  font-size: 1.2em;
  color: #333;
  min-width: 120px;
  text-align: center;
}

#todo-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#todo-form input,
#todo-form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  height: 44px;
  box-sizing: border-box;
}

#todo-form input[type="text"] {
  flex-grow: 1;
}

#todo-form button {
  background-color: #28a745;
  height: 44px;
  padding: 0 15px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
#todo-form button:hover {
  background-color: #218838;
}

.todo-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
  overflow: hidden;
}

.todo-section,
.done-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.todo-section h3,
.done-section h3 {
  margin: 0 0 10px 0;
  color: #555;
  font-size: 1.1em;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

#todo-list,
#done-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

#todo-list li,
#done-list li {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

#todo-list li .priority-tag {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
}

.priority-high {
  background-color: #dc3545;
}
.priority-medium {
  background-color: #ffc107;
}
.priority-low {
  background-color: #28a745;
}

#todo-list li .todo-item-text {
  flex-grow: 1;
  margin: 0 10px;
}

#done-list li {
  color: #888;
  text-decoration: line-through;
}

.todo-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 5px;
}
.todo-actions .complete-btn {
  color: #28a745;
}
.todo-actions .delete-btn {
  color: #dc3545;
}

/* Scratchpad/Notes Styles */
#note-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

#note-input {
  flex-grow: 1;
}

#note-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
}

#note-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

#note-list li .note-content {
  flex-grow: 1;
  margin-right: 10px;
}

#note-list li .note-timestamp {
  white-space: nowrap;
  color: #888;
  font-size: 0.9em;
}

#note-list li .delete-note-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  margin-left: 10px;
}

/* General Weather Styles */
#weather-card h1 {
  font-size: 2em;
  margin-bottom: 10px;
}
#weather-card p#status {
  font-size: 1em;
  margin-bottom: 15px;
}
.hidden {
  display: none;
}
button {
  cursor: pointer;
  border: none;
  border-radius: 7px;
  color: white;
  transition: background-color 0.3s ease;
}

/* TTS Toggle Switch */
.tts-control {
  display: flex;
  justify-content: space-between; /* 변경 */
  align-items: center;
  margin-top: 20px;
  gap: 10px;
  width: 100%; /* 추가 */
  padding: 0 10px; /* 추가 */
  box-sizing: border-box; /* 추가 */
}

.todo-tts-control {
  justify-content: flex-end;
  margin: 0;
  flex-shrink: 0;
  width: auto;
  padding: 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}
input:checked + .slider {
  background-color: #2196f3;
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}
input:checked + .slider:before {
  transform: translateX(22px);
}
.slider.round {
  border-radius: 18px;
}
.slider.round:before {
  border-radius: 50%;
}

#weather-card #weather-info p {
  font-size: 0.9em;
  margin: 5px 0;
}
#weather-card #weather-info strong {
  font-size: 0.9em;
}
#weather-card #hourly-forecast {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 5px;
  width: 100%;
  height: 130px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: none;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 10px 5px;
}
#weather-card .forecast-item {
  flex: 1 1 calc(16% - 6px);
  max-width: calc(16% - 6px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
  padding: 1px 2px;
  height: 50%;
}

#weather-card .forecast-empty {
  flex: 1 1 100%;
  text-align: center;
  font-size: 0.85em;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#weather-card .forecast-icon {
  font-size: 30px;
  margin-top: -15px;
}
#weather-card .bar-wrapper {
  height: 5px;
  margin: 0;
}
#weather-card .temp-label {
  font-size: 0.7em;
  color: #333;
  margin-top: -15px;
}
#weather-card .forecast-time {
  font-size: 0.6em;
  color: #333;
  margin-top: -15px;
}
#weather-card .tts-control {
  margin-top: 4px;
}
#weather-card #toggleButton {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
}

/* TTS Notifier Card Styles */
.tts-schedule-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.tts-schedule-form input {
  width: 100%;
  box-sizing: border-box;
}

.tts-preset-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tts-preset-buttons button {
  padding: 10px 15px;
  font-size: 16px;
  background-color: #6c757d;
}

#tts-schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
  text-align: left;
}

#tts-schedule-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

#tts-schedule-list li strong {
  margin-right: 10px;
}

#tts-schedule-list li span {
  flex-grow: 1;
}

#tts-schedule-list li .delete-tts-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  body {
    padding: 18px;
  }
  .header-container {
    max-width: 1200px;
  }
  .main-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 100%;
  }
  .modal-content {
    width: 95%;
    max-width: 900px;
  }

  .category-controls {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 18px;
  }

  .category-controls.expanded {
    padding: 25px;
  }

  .category-controls.collapsed {
    padding: 0 25px;
  }

  .category-header {
    font-size: 1.1em;
    height: 60px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 16px 14px;
  }
  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .header-container h1 {
    font-size: 2em;
  }
  #settings-icon {
    font-size: 1.8em;
    position: static;
    transform: none;
  }
  .main-container {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .dashboard-card {
    min-height: auto;
    height: auto;
    max-height: none;
    padding: 20px;
  }
  .modal-content {
    width: 95%;
    margin: 2% auto;
    max-height: 90vh;
  }

  .category-controls {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .category-controls.expanded {
    padding: 20px;
  }

  .category-controls.collapsed {
    padding: 0 20px;
  }

  .settings-controls label {
    font-size: 14px;
    padding: 14px 16px;
    min-height: 44px;
  }

  .category-header {
    font-size: 1.05em;
    height: 56px;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px 10px;
  }
  .header-container h1 {
    font-size: 1.8em;
  }
  .dashboard-card {
    padding: 18px;
    gap: 12px;
  }
  button {
    font-size: 13px;
    padding: 10px 12px;
  }
}

@media (min-width: 1400px) {
  .category-controls {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 22px;
  }

  .category-controls.expanded {
    padding: 35px;
  }

  .category-controls.collapsed {
    padding: 0 35px;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 1200px;
  border-radius: 10px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-form label {
  font-weight: bold;
}

.modal-form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.modal-form button {
  padding: 10px 15px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-form button:hover {
  background-color: #0056b3;
}

/* Attendance Tracker Styles */
.attendance-tracker-container {
  width: 100%;
  margin-top: 20px;
  padding: 25px;
  border-radius: 15px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  text-align: center;
}

.attendance-tracker-container h2 {
  margin-bottom: 20px;
  color: #333;
}

.attendance-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.attendance-controls button,
.attendance-controls select {
  padding: 10px 15px;
  font-size: 1em;
  border-radius: 5px;
  border: 1px solid #ccc;
  cursor: pointer;
  background-color: #f8f9fa;
  transition: background-color 0.3s ease;
}

.attendance-controls button:hover {
  background-color: #e2e6ea;
}

#check-in-btn {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}
#check-in-btn:hover {
  background-color: #218838;
}

#check-out-btn {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}
#check-out-btn:hover {
  background-color: #c82333;
}

.attendance-daily-view,
.attendance-monthly-summary {
  margin-top: 20px;
  text-align: left;
}

.attendance-daily-view h3,
.attendance-monthly-summary h3 {
  margin-bottom: 15px;
  color: #555;
}

#daily-attendance-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

#daily-attendance-table th,
#daily-attendance-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

#daily-attendance-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

#attendance-summary-card h2 {
  margin-bottom: 10px;
}

#show-monthly-view-btn {
  padding: 8px 15px;
  font-size: 1em;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background-color 0.3s ease;
}

#show-monthly-view-btn:hover {
  background-color: #0056b3;
}

.attendance-monthly-summary h3 {
  margin-bottom: 15px;
  color: #555;
}

/* Monthly Calendar View Styles */
#attendance-summary-card {
  transition: all 0.5s ease-in-out;
}

.attendance-monthly-summary {
  transition: max-height 0.5s ease-in-out;
  overflow: hidden;
  max-height: 300px; /* Default expanded state */
}

#monthly-calendar-view {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out,
    visibility 0.5s;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
}

#monthly-calendar-view:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

#attendance-summary-card.calendar-visible {
  /* Optional: Adjust card height if needed when calendar is visible */
  /* height: auto; */
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-header button {
  padding: 7px 13px;
  font-size: 0.9em;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.calendar-header button:hover {
  background-color: #5a6268;
}

.calendar-header h4 {
  margin: 0;
  font-size: 1.35em;
  color: #333;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: bold;
  margin-bottom: 8px;
  color: #555;
}

.calendar-weekdays span {
  padding: 4px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  padding: 3px 4px;
  border: 1px solid #eee;
  border-radius: 5px;
  text-align: center;
  min-height: 47px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  font-size: 0.8em;
  position: relative;
}

.calendar-day.empty {
  background-color: #f9f9f9;
  border: 1px solid #f9f9f9;
}

.calendar-day .date-number {
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
}

.calendar-day.weekend {
  background-color: #fff3cd;
}

.calendar-day.holiday {
  background-color: #f8d7da;
  color: #dc3545;
}

.calendar-day.holiday .date-number {
  color: #dc3545;
}

.calendar-day.today {
  border: 2px solid #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.calendar-day .status-icon {
  font-size: 1.35em;
  margin-top: 4px;
}

.calendar-day .work-time {
  font-size: 0.72em;
  color: #666;
}

.status-정상 {
  color: #28a745;
}
.status-지각 {
  color: #ffc107;
}
.status-조퇴 {
  color: #fd7e14;
}
.status-병가 {
  color: #6f42c1;
}
.status-무단결근 {
  color: #dc3545;
}
.status-월차 {
  color: #17a2b8;
}

/* Voice Memo Styles */
.voice-memo-container {
  text-align: center;
  padding: 25px;
  border-radius: 15px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.voice-memo-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.timer-display {
  font-size: 1.1em;
  font-weight: bold;
  color: #333;
  min-width: 50px;
}

#recording-tag-input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  height: 44px;
  box-sizing: border-box;
}

#record-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  flex-shrink: 0;
  white-space: nowrap;
}

#record-button.recording {
  background-color: #c82333;
}

#recordings-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

#recordings-list .recording-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

#recordings-list .recording-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 5px;
  font-size: 0.9em;
  color: #666;
}

#recordings-list .recording-tag {
  background-color: #007bff;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
}

#recordings-list .audio-controls {
  display: flex;
  align-items: center;
  width: 100%;
}

#recordings-list audio {
  flex-grow: 1;
  margin-right: 10px;
  height: 40px;
  width: 80%;
}

#recordings-list .delete-recording-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
}

/* Calculator Styles */
#calculator-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px; /* Match other cards */
  background-color: #333;
  /* width and height will be inherited from .dashboard-card */
}

#calculator-card h2 {
  color: #fff;
  margin-bottom: 15px;
}

.calculator-display {
  background-color: #222;
  color: #0f0;
  font-size: 2.5em;
  padding: 15px;
  border-radius: 10px;
  text-align: right;
  margin-bottom: 20px;
  white-space: normal;
  word-wrap: break-word;
  box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.5);
}

.calculator-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 10px;
  flex-grow: 1;
}

.calculator-button {
  background-color: #555;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.44em; /* 20% smaller */
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  padding: 0; /* Remove padding to let grid handle sizing */
}

.calculator-button:hover {
  background-color: #777;
}

.calculator-button.operator {
  background-color: #ff9500;
}

.calculator-button.operator:hover {
  background-color: #cc7a00;
}

.calculator-button.clear {
  background-color: #d9534f;
}

.calculator-button.clear:hover {
  background-color: #c9302c;
}

.calculator-button.equals {
  background-color: #007bff;
  grid-row: 4 / span 2;
  grid-column: 4 / 5;
}

.calculator-button.equals:hover {
  background-color: #0056b3;
}

.calculator-button.number.zero {
  grid-column: 1 / span 2;
}

.calculator-button.plus {
  grid-row: 2 / span 2;
  grid-column: 4 / 5;
}

.dashboard-card.dragging {
  opacity: 0.5;
  border: 2px dashed #007bff;
}

.settings-actions {
  margin-top: 20px;
  text-align: center;
}

.danger-button {
  background-color: #dc3545;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.danger-button:hover {
  background-color: #c82333;
}

/* 북마크 관리 카드 스타일 */
#bookmark-manager-card {
  max-height: 600px;
  overflow-y: auto;
}

.bookmark-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}

.bookmark-actions {
  display: flex;
  gap: 5px;
}

.bookmark-actions .small-btn {
  padding: 5px 10px;
  font-size: 0.9em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  background: #007bff;
  color: white;
  transition: background-color 0.3s;
}

.bookmark-actions .small-btn:hover {
  background: #0056b3;
}

.bookmark-actions .small-btn.danger {
  background: #dc3545;
}

.bookmark-actions .small-btn.danger:hover {
  background: #c82333;
}

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

.bookmark-form .form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* 북마크 폼 입력 필드 기본 스타일 - 백스페이스 문제 완전 해결 */
.bookmark-form input,
.bookmark-form textarea,
.bookmark-form select {
  /* 필수 스타일 */
  display: block !important;
  width: 100% !important;
  padding: 8px 12px !important;
  margin-bottom: 10px !important;
  
  /* 테두리 및 배경 */
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  background: #fff !important;
  background-color: #fff !important;
  
  /* 폰트 스타일 */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #333 !important;
  
  /* 박스 모델 */
  box-sizing: border-box !important;
  
  /* 사용자 상호작용 명시적 허용 */
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  
  /* 포인터 이벤트 허용 */
  pointer-events: auto !important;
  
  /* 커서 스타일 */
  cursor: text !important;
  
  /* 브라우저 기본 동작 보장 */
  -webkit-appearance: textfield !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
  
  /* 편집 가능 설정 */
  contenteditable: false !important;
  readonly: false !important;
  disabled: false !important;
  
  /* 트랜지션 */
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

/* select 박스 특별 처리 */
.bookmark-form select {
  cursor: pointer;
  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 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding-right: 32px;
}

/* 포커스 상태 */
.bookmark-form input:focus,
.bookmark-form textarea:focus,
.bookmark-form select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* textarea 특별 처리 */
.bookmark-form textarea {
  resize: vertical;
  min-height: 60px;
}

/* form-row 내부 요소들 */
.bookmark-form .form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.bookmark-form .form-row input {
  flex: 2;
  width: auto;
  margin-bottom: 0;
}

.bookmark-form .form-row select {
  flex: 1;
  width: auto;
  margin-bottom: 0;
}


.bookmark-form button {
  width: 100%;
  padding: 10px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.bookmark-form button:hover {
  background: #218838;
}

.bookmark-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.bookmark-filters input,
.bookmark-filters select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}

.bookmark-filters input:focus,
.bookmark-filters select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.bookmark-filters input {
  flex: 2;
}

.bookmark-filters select {
  flex: 1;
}

.bookmarks-list {
  max-height: 300px;
  overflow-y: auto;
}

.no-bookmarks {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 20px;
}

.bookmark-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 12px;
  background: white;
  transition: box-shadow 0.3s ease;
}

.bookmark-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bookmark-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bookmark-favicon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bookmark-favicon img {
  width: 16px;
  height: 16px;
}

.bookmark-info {
  flex: 1;
}

.bookmark-title {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 500;
}

.bookmark-title a {
  color: #007bff;
  text-decoration: none;
}

.bookmark-title a:hover {
  text-decoration: underline;
}

.bookmark-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 5px;
}

.bookmark-category {
  background: #e9ecef;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.bookmark-clicks {
  color: #28a745;
  font-weight: 500;
}

.bookmark-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.bookmark-actions button {
  padding: 4px 8px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  background: transparent;
  transition: background-color 0.3s;
}

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

.delete-bookmark-btn:hover {
  background: #f8d7da;
}

.bookmark-description {
  margin: 8px 0;
  font-size: 13px;
  color: #495057;
  line-height: 1.4;
}

.bookmark-url {
  font-size: 11px;
  color: #6c757d;
  word-break: break-all;
  margin-top: 5px;
}
