﻿:root {
  --primary: #0052CC;
  --primary-hover: #0047b3;
  --bg-color: #F4F5F7;
  --surface: #FFFFFF;
  --text-main: #172B4D;
  --text-sub: #5E6C84;
  --border: #DFE1E6;
  --danger: #EB5A46;
  --danger-hover: #CF513D;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 4px rgba(9, 30, 66, 0.08);
  --shadow-md: 0 8px 16px rgba(9, 30, 66, 0.08), 0 0 1px rgba(9, 30, 66, 0.31);
  --shadow-hover: 0 12px 24px rgba(9, 30, 66, 0.12), 0 0 1px rgba(9, 30, 66, 0.31);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  padding: 16px;
  -webkit-font-smoothing: antialiased;
}

h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 13px; margin-bottom: 16px; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.05em; }

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

.priority-manager {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.priority-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #FAFBFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.priority-form::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-sub); }

input[type="text"] {
  width: 100%; padding: 12px 16px; font-size: 14px; font-family: inherit;
  color: var(--text-main); background: var(--surface);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  transition: var(--transition);
}
input[type="text"]:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1);
}

.color-preview { display: flex; align-items: center; gap: 16px; }

input[type="color"] {
  -webkit-appearance: none; border: none; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; padding: 0; overflow: hidden;
  box-shadow: 0 0 0 2px var(--border); transition: var(--transition);
}
input[type="color"]:hover { transform: scale(1.08); box-shadow: 0 0 0 2px var(--primary); }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; }

#color-hex {
  font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 14px; font-weight: 600;
  color: var(--text-main); background: var(--surface); padding: 6px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}

button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-size: 14px; font-weight: 600; font-family: inherit;
  border: none; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
}

#add-priority-btn {
  background: var(--primary); color: white; margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}
#add-priority-btn:hover {
  background: var(--primary-hover); transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 82, 204, 0.3);
}

.priority-list { display: flex; flex-direction: column; gap: 12px; }

.priority-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); transition: var(--transition);
}
.priority-item:hover {
  border-color: rgba(0, 82, 204, 0.4); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.priority-info { display: flex; align-items: center; gap: 16px; flex: 1; }

.priority-color-badge {
  width: 32px; height: 32px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
}
.priority-color-badge::after {
  content: ''; position: absolute; top: 4px; left: 4px; right: 4px; bottom: 4px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
}

.priority-name { font-weight: 600; font-size: 15px; }

.priority-actions button { padding: 8px 14px; font-size: 13px; }
button.secondary { background: rgba(9, 30, 66, 0.04); color: var(--text-main); }
button.secondary:hover { background: rgba(9, 30, 66, 0.08); }
button.danger { background: rgba(235, 90, 70, 0.08); color: var(--danger); }
button.danger:hover { background: var(--danger); color: white; box-shadow: 0 4px 12px rgba(235, 90, 70, 0.3); }

.empty-state { text-align: center; padding: 48px 20px; background: #FAFBFC; border: 2px dashed var(--border); border-radius: var(--radius-md); }
.empty-state-icon { font-size: 56px; margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.empty-state-text { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.empty-state-description { font-size: 14px; color: var(--text-sub); max-width: 300px; margin: 0 auto; line-height: 1.5; }

.priority-selector { background: var(--surface); border-radius: var(--radius-md); padding: 20px; }
.priority-options { display: flex; flex-direction: column; gap: 8px; }
.priority-option {
  display: flex; align-items: center; padding: 14px 16px; border: 2px solid transparent;
  border-radius: var(--radius-md); cursor: pointer; transition: var(--transition);
  background: var(--surface);
}
.priority-option:hover { background: #FAFBFC; border-color: rgba(0, 82, 204, 0.3); transform: translateX(4px); }
.priority-option.selected { background: rgba(0, 82, 204, 0.05); border-color: var(--primary); }
.priority-option-info { display: flex; align-items: center; gap: 16px; }
.remove-priority-btn { width: 100%; margin-top: 20px; padding: 14px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(9, 30, 66, 0.13); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(9, 30, 66, 0.24); }

.message { padding: 16px; border-radius: var(--radius-md); margin-bottom: 16px; font-size: 14px; display: flex; align-items: center; gap: 12px; }
.message.info { background: #E6FCFF; color: #006644; border: 1px solid #79F2C0; }
.message.info::before { content: '💡'; font-size: 18px; }

.author-block {
  background: white; border-radius: var(--radius-md); padding: 20px; margin-top: 24px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center;
  text-align: center; font-size: 14px; transition: var(--transition); border: 1px solid var(--border);
}
.author-block:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.author-block img { border: 2px solid white; box-shadow: 0 4px 8px rgba(0,0,0,0.1); margin-bottom: 12px; }

@media (max-width: 480px) {
  .priority-item { flex-direction: column; align-items: flex-start; gap: 16px; }
  .priority-actions { width: 100%; display: flex; justify-content: flex-end; }
}
