:root {
  --primary: #6366f1;
  --bg: #f8fafc;
  --glass: rgba(255, 255, 255, 0.7);
  --border: rgba(255, 255, 255, 0.3);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  margin: 0;
  color: #1e293b;
}

/* Glassmorphism Navbar */
nav {
  position: fixed;
  top: 0; width: 100%;
  backdrop-filter: blur(10px);
  background: var(--glass);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  padding: 1rem 5%;
  align-items: center;
  z-index: 1000;
  box-sizing: border-box;
}

/* The Secret to Masonry in Vanilla CSS */
.masonry-container {
  column-count: 3;
  column-gap: 1.5rem;
  padding: 100px 5% 50px;
}

@media (max-width: 1024px) { .masonry-container { column-count: 2; } }
@media (max-width: 600px) { .masonry-container { column-count: 1; } }

.art-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.art-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.art-card img {
  width: 100%;
  display: block;
}

/* Shared UI Accents */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

input {
    width: 100%;
    padding: 14px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #6366f1;
}

#nav-links {
    display: flex;
    align-items: center;
    gap: 20px; /* Gives space between Dashboard, Profile, and Logout */
}

#nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.art-card {
    position: relative; /* Needed to position the delete button absolutely */
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(239, 68, 68, 0.9); /* Red background */
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    z-index: 10;
}

.art-card:hover .delete-btn {
    opacity: 1; /* Show on hover */
}

.delete-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}