@import url("https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600&display=swap");

:root {
  --primary-color: #0066ff;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --transition-speed: 0.3s;
}

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

.apple-dashboard-container {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #2a2a72 0%, #009ffd 74%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  padding: 20px;
}

.apple-dashboard-container .container {
  display: flex;
  width: 90%;
  height: 85vh;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.apple-dashboard-container .sidebar {
  width: var(--sidebar-width);
  height: 100%;
  padding: 30px 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition: width var(--transition-speed) ease;
  position: relative;
}

.apple-dashboard-container .logo {
  text-align: center;
  margin-bottom: 40px;
}

.apple-dashboard-container .logo i {
  font-size: 36px;
  color: #fff;
  opacity: 0.9;
}

.apple-dashboard-container .menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.apple-dashboard-container .menu li {
  margin-bottom: 8px;
  border-radius: 16px;
  transition: all 0.2s ease;
  position: relative;
}

.apple-dashboard-container .menu li:hover {
  background: rgba(255, 255, 255, 0.2);
}

.apple-dashboard-container .menu li.active {
  background: rgba(255, 255, 255, 0.25);
}

.apple-dashboard-container .menu li.active::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 0 4px 4px 0;
}

.apple-dashboard-container .menu a {
  display: flex;
  align-items: center;
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.apple-dashboard-container .menu a i {
  font-size: 20px;
  margin-right: 14px;
  min-width: 22px;
  text-align: center;
}

.apple-dashboard-container .profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.apple-dashboard-container .avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.apple-dashboard-container .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apple-dashboard-container .user-info h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
}

.apple-dashboard-container .user-info p {
  font-size: 12px;
  opacity: 0.8;
}

.apple-dashboard-container .content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

.apple-dashboard-container header {
  margin-bottom: 30px;
}

.apple-dashboard-container header h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.apple-dashboard-container header p {
  font-size: 16px;
  opacity: 0.8;
}

.apple-dashboard-container .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.apple-dashboard-container .card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apple-dashboard-container .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.apple-dashboard-container .card-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.apple-dashboard-container .card-icon i {
  font-size: 22px;
}

.apple-dashboard-container .card-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.apple-dashboard-container .card-info p {
  font-size: 14px;
  opacity: 0.8;
}

/* Apple-style liquid effects */
.apple-dashboard-container .menu li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0);
  transition: box-shadow 0.3s ease;
}

.apple-dashboard-container .menu li:hover::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
  .apple-dashboard-container .sidebar {
    width: var(--sidebar-collapsed-width);
  }

  .apple-dashboard-container .menu a span,
  .apple-dashboard-container .user-info {
    display: none;
  }

  .apple-dashboard-container .profile {
    justify-content: center;
  }

  .apple-dashboard-container .avatar {
    margin-right: 0;
  }

  .apple-dashboard-container .content {
    padding: 30px;
  }

  .apple-dashboard-container .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .apple-dashboard-container .container {
    width: 95%;
    height: 90vh;
  }

  .apple-dashboard-container .card-container {
    grid-template-columns: 1fr;
  }
}
