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

body {
  font-family: "Inter", sans-serif;
  color: white;
  background-color: black;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
}

/* Instagram-style Sidebar */
.sidebar {
  width: 220px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: #000;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  font-size: 24px;
  font-weight: 700;
  padding: 10px 20px 30px;
  display: block;
  text-decoration: none;
  color: white;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 8px 8px;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-item i {
  font-size: 20px;
  margin-right: 12px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding: 20px;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 220px;
  width: calc(100% - 220px);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.headline {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
}

.saved-items-list {
  list-style: none;
  padding: 0;
}

.saved-item {
  font-size: 18px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-content {
  flex: 1;
}

.item-actions {
  display: flex;
  gap: 10px;
}

.btn {
  background-color: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn.edit {
  color: #3498db;
}

.btn.delete {
  color: #e74c3c;
}

/* Form styling */
.form-container {
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
}

.form-title {
  font-size: 24px;
  margin-bottom: 16px;
}

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

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

.form-control {
  width: 100%;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: white;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

.form-buttons {
  display: flex;
  gap: 10px;
}

.btn-submit {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.btn-cancel {
  padding: 10px 20px;
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.btn-submit:hover {
  background-color: #2980b9;
}

.btn-cancel:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hidden {
  display: none;
}

/* Loading and error states */
.loading, .error {
  text-align: center;
  padding: 20px;
}

.loading i {
  font-size: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error {
  color: #e74c3c;
}

/* No items container */
.no-items-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}

.no-items-icon {
  margin-bottom: 16px;
}

.no-items-icon svg {
  margin: 0 auto;
  height: 64px;
  width: 64px;
  color: rgba(255, 255, 255, 0.4);
}

/* Saved items grid */
.saved-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.saved-item-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.saved-item-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.saved-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.saved-item-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.saved-item-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

.saved-item-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.5;
}

.saved-item-details {
  margin-bottom: 20px;
}

.saved-item-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.saved-item-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.saved-item-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.saved-item-value {
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.saved-item-link {
  color: #3498db;
  text-decoration: none;
  font-size: 14px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-item-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

.saved-item-calculations {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.saved-item-calculations-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.saved-item-calculations-details {
  /* Inherits styles from .saved-item-details */
}

/* Media Query for Mobile Responsiveness */
@media (max-width: 768px) {
  .sidebar {
    width: 70px;
  }

  .sidebar-logo {
    font-size: 20px;
    padding: 10px;
    text-align: center;
  }

  .nav-item span {
    display: none;
  }

  .nav-item i {
    margin-right: 0;
  }

  .main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
  }

  .saved-items-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 16px;
  }

  .headline {
    font-size: 28px;
  }
} 