* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  color: #1a202c;
  min-height: 100vh;
  position: relative;
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Summer animated background elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 223, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(255, 192, 203, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.auth-container, .game-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.auth-container:hover, .game-container:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.auth-form {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 248, 220, 0.9);
  border-radius: 15px;
  border: 2px solid rgba(255, 215, 0, 0.2);
}

.auth-form h2 {
  margin-top: 0;
  color: #495057;
}

input, button, select {
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  font-size: 1em;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  transition: all 0.3s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.25);
}

button {
  cursor: pointer;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

button:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.game-stats {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 24px;
  border-radius: 20px;
  margin-bottom: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.game-stats::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: rotate 6s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.game-stats h1 {
  margin: 0 0 10px 0;
}

.game-stats p {
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px 0;
}

.game-section {
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 248, 220, 0.8);
  border-radius: 15px;
  border-left: 4px solid #ffb347;
  box-shadow: 0 4px 15px rgba(255, 179, 71, 0.2);
}

.game-section h2 {
  margin-top: 0;
  color: #495057;
}

.sell-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.sell-form select,
.sell-form input {
  flex: 1;
  min-width: 150px;
}

.sell-form button {
  flex: 0 0 auto;
  width: auto;
  padding: 12px 24px;
}

#auth-status, #change-password-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
}

.close:hover {
  color: #333;
}

#dev-panel {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  border-radius: 15px;
  border: 3px solid rgba(255, 107, 107, 0.4);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

#admin-panel {
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, #e17055, #d63031);
  border-radius: 15px;
  border: 3px solid rgba(214, 48, 49, 0.4);
  box-shadow: 0 8px 25px rgba(225, 112, 85, 0.3);
}

#dev-panel h2, #admin-panel h2 {
  color: white;
  margin-top: 0;
  text-align: center;
}

.admin-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.admin-buttons button {
  flex: 1;
  min-width: 150px;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  color: #ff6b6b;
  font-weight: bold;
  border: 2px solid rgba(255, 107, 107, 0.3);
}

.admin-buttons button:hover {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.admin-modal {
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}

#admin-objects-list, #admin-quests-list {
  max-height: 500px;
  overflow-y: auto;
  padding: 15px;
  background: rgba(255, 248, 220, 0.9);
  border-radius: 10px;
  margin-top: 15px;
}

.admin-object-item, .admin-quest-item {
  background: rgba(255, 255, 255, 0.9);
  margin: 10px 0;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #ff8e53;
  box-shadow: 0 2px 8px rgba(255, 142, 83, 0.2);
}

.admin-object-item h4, .admin-quest-item h4 {
  margin: 0 0 8px 0;
  color: #ff6b6b;
}

.admin-object-stats, .admin-quest-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  font-size: 0.9em;
  color: #666;
}

#admin-notes-content {
  padding: 15px;
}

#admin-notes-textarea {
  width: 100%;
  min-height: 300px;
  padding: 15px;
  border: 2px solid rgba(255, 142, 83, 0.3);
  border-radius: 10px;
  resize: vertical;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1em;
  background: rgba(255, 248, 220, 0.9);
}

#admin-notes-textarea:focus {
  outline: none;
  border-color: #ff8e53;
  box-shadow: 0 0 0 3px rgba(255, 142, 83, 0.25);
}

#btn-save-notes {
  margin-top: 15px;
  background: linear-gradient(135deg, #00b894, #00cec9);
  width: auto;
  padding: 12px 24px;
}

#btn-save-notes:hover {
  background: linear-gradient(135deg, #00cec9, #00b894);
}

/* Admin Moderation Styles */
.moderation-section {
  background: rgba(255, 255, 255, 0.1);
  margin: 15px 0;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #e74c3c;
}

.moderation-section h4 {
  margin-top: 0;
  color: white;
}

.moderation-section input {
  margin: 5px 5px 5px 0;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: auto;
  min-width: 150px;
}

.moderation-section button {
  margin: 5px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  width: auto;
}

.moderation-section button:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
}

#admin-moderation-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

.player-info-card {
  background: rgba(255, 255, 255, 0.9);
  margin: 10px 0;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #3498db;
}

.player-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.player-info-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  font-size: 0.9em;
  color: #333;
}

.connected-player-item {
  background: rgba(255, 255, 255, 0.9);
  margin: 10px 0;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #2ecc71;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-basic-info {
  flex: 1;
}

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

.player-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8em;
  width: auto;
  margin: 0;
}

.btn-view-player {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.btn-view-player:hover {
  background: linear-gradient(135deg, #2980b9, #1f618d);
}

#admin-notes-status {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

/* Countdown Styles */
#countdown-container {
  margin: 15px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

#countdown-timer {
  font-size: 1.5em;
  font-weight: bold;
  color: white;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* External Links Styles */
.external-links-container {
  max-width: 100%;
  margin: 30px 0;
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  padding: 25px;
  border-radius: 20px;
  border: 3px solid rgba(116, 185, 255, 0.4);
  box-shadow: 0 8px 25px rgba(116, 185, 255, 0.3);
}

.external-links-container h3 {
  text-align: center;
  color: white;
  margin-bottom: 20px;
  font-size: 1.5em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.external-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.external-links button {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  color: #0984e3;
  border: 2px solid rgba(116, 185, 255, 0.3);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

.external-links button:hover {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(116, 185, 255, 0.4);
}

.link-icon {
  font-size: 1.2em;
}

/* Versions Button */
#btn-versions {
  background: linear-gradient(135deg, #00b894, #00cec9);
  margin-top: 10px;
}

#btn-versions:hover {
  background: linear-gradient(135deg, #00cec9, #00b894);
}

/* Versions Modal */
#versions-content {
  max-height: 500px;
  overflow-y: auto;
  padding: 15px;
  background: rgba(255, 248, 220, 0.9);
  border-radius: 10px;
  margin-top: 15px;
}

#versions-text {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  line-height: 1.4;
  margin: 0;
  white-space: pre-wrap;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

#account-actions {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#account-actions button {
  flex: 1;
  min-width: 150px;
}

#btn-delete-account {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

#btn-delete-account:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
}

hr {
  margin: 30px 0;
  border: none;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffb347, #ff8c69, #ffb347, transparent);
  border-radius: 2px;
}

.changelog-container {
  max-width: 100%;
  margin: 30px 0;
  background: linear-gradient(135deg, #fff8dc, #ffeaa7);
  padding: 25px;
  border-radius: 20px;
  border: 3px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 8px 25px rgba(255, 234, 167, 0.3);
}

.changelog-title {
  text-align: center;
  font-size: 2em;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

.changelog-subtitle {
  text-align: center;
  font-size: 1.2em;
  color: #666;
  margin-bottom: 20px;
  font-style: italic;
}

.changelog-container ul {
  list-style: none;
  padding: 0;
}

.changelog-container li {
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  padding: 15px 20px;
  border-left: 5px solid #ff8e53;
  border-radius: 12px;
  font-size: 1.05em;
  box-shadow: 0 4px 15px rgba(255, 142, 83, 0.2);
  transition: transform 0.2s ease;
}

.changelog-container li:hover {
  transform: translateX(5px);
}

.footer {
  text-align: center;
  margin-top: 25px;
  color: #666;
  font-size: 0.9em;
  font-style: italic;
}

.desc {
  text-align: left;
  margin: 15px 0;
  color: #666;
  font-size: 0.9em;
  font-style: italic;
}

.emoji {
  margin-left: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  color: white;
  font-size: 0.8em;
  margin-left: 8px;
  font-weight: bold;
}

.tag.alpha { 
  background: linear-gradient(135deg, #ff9472, #f8b500); 
}

.tag.dev { 
  background: linear-gradient(135deg, #00b894, #00cec9); 
}

.tag.admin { 
  background: linear-gradient(135deg, #e17055, #d63031); 
}

.tag.owner { 
  background: linear-gradient(135deg, #fdcb6e, #e17055); 
}

.tag.co-own { 
  background: linear-gradient(135deg, #e17055, #d63031); 
}

/* Tutorial styles */
#tutorial-section {
  border: 3px solid rgba(116, 185, 255, 0.4);
  box-shadow: 0 8px 25px rgba(116, 185, 255, 0.3);
}

/* Admin tag item styles */
.admin-tag-item {
  background: rgba(255, 255, 255, 0.9);
  margin: 10px 0;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #3498db;
}

/* Source code styles */
.source-file {
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 15px;
}

.source-file h4 {
  margin-top: 0;
  color: #ff6b6b;
  border-bottom: 2px solid #ff8e53;
  padding-bottom: 5px;
}

.source-file pre {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.85em;
  line-height: 1.4;
}

/* All players item styles */
.all-player-item {
  background: rgba(255, 255, 255, 0.9);
  margin: 10px 0;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #74b9ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-edit-player {
  background: linear-gradient(135deg, #fdcb6e, #e17055);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8em;
  margin-left: 5px;
}

.btn-edit-player:hover {
  background: linear-gradient(135deg, #e17055, #d63031);
}

/* Edit player form styles */
#admin-edit-player-content label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

#admin-edit-player-content input,
#admin-edit-player-content select {
  width: 100%;
  padding: 8px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  margin-bottom: 10px;
}

.tag.summer { 
  background: linear-gradient(135deg, #ff9f43, #feca57); 
}

.h2title {
  text-align: center;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

.subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1em;
  margin-bottom: 30px;
}

#inventory-list, #quest-list {
  list-style: none;
  padding: 0;
}

#inventory-list li, #quest-list li {
  background: rgba(255, 255, 255, 0.9);
  margin: 10px 0;
  padding: 15px;
  border-radius: 12px;
  border-left: 4px solid #00b894;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.2);
}

#quest-list li {
  border-left-color: #fdcb6e;
}

.shop-item {
  background: rgba(255, 255, 255, 0.9);
  margin: 15px 0;
  padding: 20px;
  border-radius: 15px;
  border: 2px solid rgba(255, 203, 107, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(253, 203, 110, 0.2);
}

.shop-item:hover {
  border-color: #ff8e53;
  box-shadow: 0 8px 25px rgba(255, 142, 83, 0.4);
  transform: translateY(-2px);
}

.shop-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.shop-item-name {
  font-weight: bold;
  font-size: 1.1em;
}

.shop-item-price {
  color: #00b894;
  font-weight: bold;
  font-size: 1.2em;
}

.shop-item-seller {
  color: #666;
  font-size: 0.9em;
}

#result {
  min-height: 50px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 2px dashed rgba(255, 203, 107, 0.5);
  text-align: center;
  font-weight: bold;
}

#result.success {
  border-color: #00b894;
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.1), rgba(0, 206, 201, 0.1));
  color: #00695c;
}

.quest-selector {
  display: flex;
  align-items: center;
  margin: 8px 0;
  padding: 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.quest-selector input[type="radio"] {
  margin-right: 10px;
  width: auto;
}

.quest-selector label {
  flex: 1;
  cursor: pointer;
  margin: 0;
}

.fusion-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
}

.fusion-controls input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.fusion-controls label {
  margin: 0;
  cursor: pointer;
}

#fusion-button {
  margin-top: 15px;
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #000;
  font-weight: bold;
}

#fusion-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #e0a800, #d39e00);
}

#fusion-button:disabled {
  background: #6c757d;
  color: white;
}

.quest-execute-button {
  margin-top: 15px;
  background: linear-gradient(135deg, #17a2b8, #138496);
}

.quest-execute-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #138496, #117a8b);
}

.lives-display {
  color: #dc3545;
  font-weight: bold;
  font-size: 0.9em;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h2 {
  margin: 0;
}

.toggle-btn {
  background: linear-gradient(135deg, #ff8e53, #ff6b6b);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2em;
  transition: all 0.3s ease;
  width: auto;
  margin: 0;
}

.toggle-btn:hover {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.collapsible-section {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 100000px;
  opacity: 1;
}

.collapsible-section.collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .auth-container, .game-container {
    padding: 20px;
  }

  .sell-form {
    flex-direction: column;
  }

  .sell-form select,
  .sell-form input,
  .sell-form button {
    width: 100%;
  }

  #account-actions {
    flex-direction: column;
  }

  #account-actions button {
    width: 100%;
  }
}

/* Chat System Styles - Summer Theme */
#chat-system {
  margin-top: 20px;
  border: 2px solid rgba(255, 203, 107, 0.4);
  border-radius: 20px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.9), rgba(255, 234, 167, 0.8));
  box-shadow: 0 8px 25px rgba(255, 142, 83, 0.2);
}

.chat-tabs {
  display: flex;
  margin-bottom: 10px;
}

.chat-tab {
  width: 40%;
  flex: 1;
  padding: 10px;
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  border: none;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  color: #2c3e50;
  border: 2px solid rgba(253, 203, 110, 0.3);
}

.chat-tab.active {
  background: linear-gradient(135deg, #ff8e53, #ff6b6b);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 142, 83, 0.4);
}

.chat-tab:hover {
  background: linear-gradient(135deg, #fdcb6e, #ff8e53);
  transform: translateY(-1px);
}

.chat-tab.active:hover {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}

.chat-window {
  display: none;
  height: 300px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 142, 83, 0.3);
  border-radius: 0 0 15px 15px;
  backdrop-filter: blur(5px);
}

.chat-window.active {
  display: block;
}

.chat-messages {
  height: 250px;
  overflow-y: auto;
  padding: 10px;
  border-bottom: 2px solid rgba(255, 203, 107, 0.3);
}

.chat-message {
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.9), rgba(255, 234, 167, 0.7));
  animation: fadeIn 0.3s ease-in;
  border: 1px solid rgba(255, 203, 107, 0.2);
  box-shadow: 0 2px 8px rgba(255, 142, 83, 0.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message-header {
  font-weight: bold;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

.chat-message-content {
  word-wrap: break-word;
  color: #333;
}

.chat-input-container {
  display: flex;
  padding: 10px;
}

.chat-input-container input {
  width: 75%;
  padding: 8px;
  border: 2px solid rgba(255, 203, 107, 0.4);
  border-radius: 8px;
  margin-right: 10px;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.3s ease;
}

.chat-input-container input:focus {
  outline: none;
  border-color: #ff8e53;
  box-shadow: 0 0 0 3px rgba(255, 142, 83, 0.25);
}

.chat-input-container button {
  width: 25%;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff8e53, #ff6b6b);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.chat-input-container button:hover {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.chat-timestamp {
  font-size: 0.8em;
  color: #999;
  margin-left: 10px;
}

.notification {
  width: 20%;
  margin-left: auto; 
  font-size: 0.9em; 
  padding: 5px 10px; 
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e); 
  border: none; 
  border-radius: 8px; 
  cursor: pointer;
}