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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-right {
  display: flex;
  align-items: center;
}

header h2 {
  margin: 0;
}

header ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu {
  margin: 0;
}

header a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

header a:hover {
  color: #3498db;
}

/* User Menu Styles */
.user-menu {
  position: relative;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.user-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: white;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  transition: transform 0.3s;
}

.user-menu-toggle:hover .dropdown-arrow {
  transform: translateY(2px);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-large {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-info-name {
  font-weight: 600;
  font-size: 16px;
  color: #2c3e50;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-info-email {
  font-size: 13px;
  color: #7f8c8d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-menu {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #2c3e50;
  text-decoration: none;
  transition: background-color 0.2s;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: #3498db;
}

.dropdown-menu svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-login-header {
  display: inline-block;
  padding: 8px 20px;
  background-color: #3498db;
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-login-header:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

main {
  min-height: calc(100vh - 150px);
  padding: 40px 0;
}

main h1 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.welcome-section,
.info-section {
  margin-top: 30px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.welcome-section p,
.info-section p {
  margin-bottom: 15px;
  font-size: 18px;
  color: #555;
}

.welcome-section p:last-child,
.info-section p:last-child {
  margin-bottom: 0;
}

.login-section {
  margin-top: 30px;
  text-align: center;
}

.login-section p {
  margin-bottom: 20px;
  font-size: 18px;
}

.login-section a {
  margin: 0 5px;
}

.btn-login {
  display: inline-block;
  padding: 12px 30px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-login:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-logout {
  display: inline-block;
  padding: 12px 30px;
  background-color: #e74c3c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  margin-left: 10px;
}

.btn-logout:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-logout:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.profile-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-info {
  margin-bottom: 30px;
}

.profile-info h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.profile-info p {
  margin: 10px 0;
  font-size: 16px;
}

.profile-actions {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.service-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.service-card h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.service-card p {
  color: #7f8c8d;
  margin-bottom: 20px;
  font-size: 14px;
}

.btn-service {
  display: inline-block;
  padding: 10px 25px;
  background-color: #27ae60;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-service:hover {
  background-color: #229954;
  transform: scale(1.05);
}

footer {
  background-color: #34495e;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}
