@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #f3f4f6;
  margin: 0;
  padding: 0;
  direction: rtl;
}

@media (max-width: 600px) {
  .user-info-fixed {
    top: 10px;
    right: 10px;
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }

  .user-info-fixed img {
    width: 42px;
    height: 42px;
  }

  .user-info-fixed div {
    font-size: 13px;
    line-height: 1.4;
  }
}

.container {
  max-width: 600px;
  background-color: #ffffff;
  margin: 100px auto;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.header-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px solid #ccc;
}

h1 {
  text-align: center;
  font-size: 24px;
  color: #ba0000;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

input, textarea {
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background-color: #f9fafb;
  transition: border-color 0.3s, background-color 0.3s;
}

input:focus, textarea:focus {
  border-color: #ba0000;
  background-color: #fff;
  outline: none;
}

input:disabled {
  background-color: #e5e7eb;
  color: #444;
}

button {
  padding: 14px;
  background-color: #ba0000;
  color: white;
  border: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #990000;
}

/* الإضافات الجديدة */

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.back-link {
  font-size: 14px;
  color: #ba0000;
  text-decoration: none;
  font-weight: bold;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.user-info div {
  text-align: right;
}

.alert-box {
  background: #fff3cd;
  color: #856404;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid #ffeeba;
}

.user-info-fixed {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #fff;
  padding: 16px 20px;
  border: 1px solid #ddd;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  max-width: 92%;
  transition: transform 0.3s ease;
}

.user-info-fixed:hover {
  transform: scale(1.02);
}

.user-info-fixed img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #ba0000;
}

.user-info-fixed div {
  text-align: right;
  font-size: 16px;
  color: #222;
  line-height: 1.5;
}

.bottom-nav {
  text-align: center;
  margin-top: 40px;
}

.bottom-nav .back-link {
  display: inline-block;
  color: #ba0000;
  background: #ffeaea;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.bottom-nav .back-link:hover {
  background-color: #ffcccc;
}

.floating-icons-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  bottom: -40px;
  font-size: 28px;
  opacity: 0.7;
  animation: floatUp 8s linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-120vh);
    opacity: 0;
  }
}

