:root {
  --bg-color: #e3f2fd;
  --surface-color: rgba(255, 255, 255, 0.7);
  --primary-color: #1e88e5;
  --text-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --border-radius: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-color);
  background-image: radial-gradient(at 40% 20%, hsla(210,100%,74%,0.2) 0px, transparent 50%),
                    radial-gradient(at 80% 0%, hsla(189,100%,56%,0.2) 0px, transparent 50%),
                    radial-gradient(at 0% 50%, hsla(220,100%,93%,0.2) 0px, transparent 50%);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.container {
  width: 100%;
  max-width: 600px;
  background: var(--surface-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px var(--shadow-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(0,0,0,0.05);
  padding-bottom: 1rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.add-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(236, 64, 122, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.add-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(236, 64, 122, 0.5);
}

.presentation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Scrollbar styles for modern look */
.presentation-list::-webkit-scrollbar {
  width: 6px;
}
.presentation-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}
.presentation-list::-webkit-scrollbar-thumb {
  background: rgba(30, 136, 229, 0.3);
  border-radius: 4px;
}
.presentation-list::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 136, 229, 0.5);
}

.presentation-item {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 8px var(--shadow-color);
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(0,0,0,0.03);
  font-size: 1.1rem;
  font-weight: 500;
}

.presentation-item:active {
  cursor: grabbing;
}

.presentation-item.sortable-ghost {
  opacity: 0.4;
  background: #f8bbd0;
}

.drag-handle {
  color: #aaa;
  cursor: grab;
}

.rank-badge {
  background: rgba(30, 136, 229, 0.1);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.9rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: -0.5rem;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.delete-btn {
  background: none;
  border: none;
  color: #ff5252;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}

.delete-btn:hover {
  background: rgba(255, 82, 82, 0.1);
  transform: scale(1.1);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .modal {
  transform: scale(0.9);
}

.modal h2 {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.modal input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.modal input:focus {
  border-color: var(--primary-color);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal-actions button {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}

.cancel-btn {
  background: #f1f1f1;
  color: #555;
}

.cancel-btn:hover {
  background: #e1e1e1;
}

.save-btn {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
}

.save-btn:hover {
  background: #1976d2;
  transform: translateY(-1px);
}

