:root {
  --primary-color: #6c5ce7;
  --primary-light: #a29bfe;
  --primary-dark: #5641e2;
  --secondary-color: #00cec9;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --text-lighter: #b2bec3;
  --bg-main: #ecf0f3;
  --bg-darker: #dfe6e9;
  --shadow-light: 5px 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-dark: 5px 5px 15px rgba(0, 0, 0, 0.2);
  --shadow-inset: inset 5px 5px 10px rgba(0, 0, 0, 0.05),
                  inset -5px -5px 10px rgba(255, 255, 255, 0.5);
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --success-color: #00b894;
  --error-color: #d63031;
  --warning-color: #fdcb6e;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Login/Signup Styles */
#login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.neumorphic-card {
  background-color: var(--bg-main);
  border-radius: var(--border-radius);
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1),
              -10px -10px 20px rgba(255, 255, 255, 0.5);
  padding: 30px;
  width: 100%;
  max-width: 400px;
}

.tab-container {
  display: flex;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  background-color: var(--bg-darker);
  overflow: hidden;
  box-shadow: var(--shadow-inset);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.tab.active {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-light);
}

.tab-content {
  transition: var(--transition);
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

input[type="email"],
input[type="password"],
input[type="text"],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-size: 16px;
  box-shadow: var(--shadow-inset);
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-light), var(--shadow-inset);
}

.btn-primary,
.btn-outline,
.btn-small {
  padding: 12px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-light);
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-small {
  padding: 8px 12px;
  font-size: 14px;
}

.error-message {
  color: var(--error-color);
  margin-top: 10px;
  font-size: 14px;
}

/* Main App Layout */
#main-app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background-color: var(--bg-main);
  box-shadow: var(--shadow-light);
  padding: 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg-darker);
}

.logo i {
  font-size: 24px;
  color: var(--primary-color);
}

.logo h2 {
  font-size: 20px;
  font-weight: 700;
}

.role-selector {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg-darker);
}

.tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg-darker);
}

.tool-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--border-radius);
  background-color: var(--bg-main);
  border: none;
  box-shadow: var(--shadow-light);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
  font-weight: 500;
}

.tool-btn:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-2px);
}

.tool-btn i {
  font-size: 18px;
}

.user-section {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--bg-darker);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.user-info i {
  font-size: 24px;
  color: var(--text-light);
}

#logout-btn {
  width: 100%;
}

.main-content {
  flex: 1;
  display: flex;
  position: relative;
}

/* Chat Interface - ChatGPT Style */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #ffffff;
}

#chat-messages {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  max-width: 100%;
}

.message {
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
}

.message-content {
  max-width: 768px;
  width: 100%;
  padding: 0 20px;
  word-break: break-word;
  line-height: 1.75;
  font-size: 16px;
}

.user-message {
  background-color: #f7f7f8;
  align-self: stretch;
}

.user-message .message-content {
  color: #343541;
  font-weight: 600;
}

.user-message .message-content::before {
  content: "You";
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #343541;
  font-size: 14px;
}

.assistant-message {
  background-color: #ffffff;
  align-self: stretch;
}

.assistant-message .message-content {
  color: #343541;
}

.assistant-message .message-content::before {
  content: "ESPERANZA VOS 2.5";
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #19c37d;
  font-size: 14px;
}

.system-message {
  background-color: #f7f7f8;
  align-self: center;
  max-width: 768px;
  margin: 10px 20px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  border: none;
  box-shadow: none;
}

.message-content img, 
.message-content audio, 
.message-content video {
  max-width: 100%;
  margin-top: 16px;
  border-radius: 8px;
}

.chat-input-container {
  padding: 20px;
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
}

.chat-input-wrapper {
  max-width: 768px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

#user-input {
  width: 100%;
  min-height: 52px;
  max-height: 200px;
  resize: none;
  border: 1px solid #d9d9e3;
  border-radius: 12px;
  padding: 12px 48px 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  background-color: #ffffff;
  color: #343541;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  font-family: var(--font-family);
  margin-bottom: 0;
}

#user-input:focus {
  border-color: #10a37f;
  box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.1);
}

.input-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.input-actions button,
.input-actions label {
  padding: 8px;
  border-radius: 8px;
  background-color: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.input-actions button:hover,
.input-actions label:hover {
  background-color: #f3f4f6;
  color: #374151;
}

#send-btn {
  background-color: #10a37f;
  color: white;
}

#send-btn:hover {
  background-color: #0d8f6c;
  color: white;
}

#send-btn:disabled {
  background-color: #d9d9e3;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Typing indicator - ChatGPT style */
.typing-indicator {
  background-color: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.typing-indicator .message-content::before {
  content: "ESPERANZA VOS 2.5";
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #19c37d;
  font-size: 14px;
}

.typing-indicator .dot {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 50%;
  animation: typing-dot 1.4s infinite ease-in-out both;
  margin-right: 4px;
}

.typing-indicator .dot:nth-child(1) { animation-delay: 0s; }
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Notepad */
#notepad {
  width: 40%;
  min-width: 400px;
  height: 100vh;
  background-color: var(--bg-main);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.notepad-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--bg-darker);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notepad-actions {
  display: flex;
  gap: 8px;
}

#notepad-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  box-shadow: var(--shadow-inset);
  background-color: white;
  margin: 15px;
  border-radius: var(--border-radius);
}

#notepad-content:focus {
  outline: none;
}

/* Tier List Styling */
.tier-list {
  margin: 20px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.tier-row {
  display: flex;
  min-height: 60px;
  border-bottom: 1px solid var(--bg-darker);
}

.tier-label {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.tier-s { background-color: #ff5252; }
.tier-a { background-color: #ff9800; }
.tier-b { background-color: #ffc107; }
.tier-c { background-color: #8bc34a; }
.tier-d { background-color: #03a9f4; }
.tier-f { background-color: #9c27b0; }

.tier-items {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  background-color: white;
  min-height: 60px;
}

.tier-item {
  padding: 5px 10px;
  background-color: var(--bg-darker);
  border-radius: 4px;
  margin: 3px;
  cursor: move;
}

/* Modal */
#modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal {
  position: relative;
  width: 90%;
  max-width: 500px;
  z-index: 1001;
}

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

.close-modal {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-light);
}

/* New styles for entertainment content iframe display */
#entertainment-content-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 500px;
  margin-top: 15px;
}

.entertainment-content-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-darker);
}

#entertainment-iframe {
  flex: 1;
  width: 100%;
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: var(--shadow-light);
}

#back-to-menu-btn {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-container {
  margin-bottom: 15px;
  position: relative;
}

#tool-search {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-size: 14px;
  box-shadow: var(--shadow-inset);
  transition: var(--transition);
}

#tool-search:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-light), var(--shadow-inset);
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-dark);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px 15px;
  border-bottom: 1px solid var(--bg-darker);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-result-item:hover {
  background-color: var(--bg-main);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item i {
  color: var(--primary-color);
  font-size: 16px;
}

.tool-modal {
  position: relative;
  width: 95%;
  max-width: 1000px;
  max-height: 90vh;
  z-index: 1001;
}

.tool-modal .modal-content {
  height: 70vh;
  overflow: hidden;
}

.tool-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
}

.vos-apps-dropdown {
  position: relative;
  margin-bottom: 12px;
}

.dropdown-icon {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.vos-apps-dropdown.open .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-main);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-dark);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 5px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--bg-darker);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateX(5px);
}

.dropdown-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.vos-app-modal {
  position: relative;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  z-index: 1001;
}

.vos-app-modal .modal-content {
  height: 80vh;
  overflow: hidden;
  padding: 0;
}

.vos-app-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
}

/* Trello Board Styles */
.trello-board {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

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

.board-header h3 {
  margin: 0;
  padding: 5px;
  border-radius: 3px;
}

.board-header h3:focus {
  background-color: white;
  outline: 2px solid var(--primary-color);
}

.lists-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.trello-list {
  min-width: 250px;
  background-color: #e9ecef;
  border-radius: 8px;
  padding: 10px;
}

.list-header h4 {
  margin: 0 0 10px 0;
  padding: 5px;
  border-radius: 3px;
}

.list-header h4:focus {
  background-color: white;
  outline: 2px solid var(--primary-color);
}

.cards-container {
  min-height: 100px;
  margin-bottom: 10px;
}

.trello-card {
  background-color: white;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.trello-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.trello-card:focus {
  outline: 2px solid var(--primary-color);
}

.add-card-btn, .add-list-btn {
  background-color: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.add-card-btn:hover, .add-list-btn:hover {
  background-color: rgba(0,0,0,0.1);
}

/* To-Do List Styles */
.todo-list {
  margin: 20px 0;
  padding: 15px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.todo-header h3 {
  margin: 0 0 15px 0;
  padding: 5px;
  border-radius: 3px;
}

.todo-header h3:focus {
  background-color: #f8f9fa;
  outline: 2px solid var(--primary-color);
}

.todo-input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.todo-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.todo-item:last-child {
  border-bottom: none;
}

.todo-item.completed .todo-text {
  text-decoration: line-through;
  color: var(--text-light);
}

.todo-checkbox {
  margin: 0;
}

.todo-text {
  flex: 1;
  font-size: 14px;
}

.delete-todo {
  background-color: var(--error-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Common Tasks Section */
.common-tasks-section {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 20px;
}

.common-tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.task-block {
  background-color: var(--bg-main);
  border-radius: var(--border-radius);
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  text-align: center;
}

.task-block:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-dark);
}

.task-block i {
  font-size: 24px;
  color: var(--primary-color);
}

.task-block:hover i {
  color: white;
}

.task-block span {
  font-weight: 500;
  font-size: 14px;
}

.custom-tasks-section {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 20px;
}

/* Calculator Styles */
.notepad-calculator {
  margin: 20px 0;
  padding: 15px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  max-width: 250px;
}

.calc-header h3 {
  margin: 0 0 15px 0;
  text-align: center;
}

.calc-display input {
  width: 100%;
  padding: 10px;
  font-size: 18px;
  text-align: right;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  background-color: #f8f9fa;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.calc-buttons button {
  padding: 15px 10px;
  border: none;
  border-radius: 4px;
  background-color: #e9ecef;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

.calc-buttons button:hover {
  background-color: #dee2e6;
}

.calc-buttons button:nth-child(4n) {
  background-color: var(--primary-color);
  color: white;
}

.calc-buttons button:nth-child(4n):hover {
  background-color: var(--primary-dark);
}

/* Calendar Styles */
.notepad-calendar {
  margin: 20px 0;
  padding: 15px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  max-width: 350px;
}

.calendar-header h3 {
  margin: 0 0 15px 0;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 14px;
}

.calendar-day.header {
  font-weight: bold;
  background-color: var(--bg-darker);
  cursor: default;
}

.calendar-day:not(.header):not(.empty):hover {
  background-color: var(--bg-darker);
}

.calendar-day.today {
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
}

.calendar-day.selected {
  background-color: var(--secondary-color);
  color: white;
}

.calendar-day.empty {
  cursor: default;
}

/* Flujo Timeline Styles */
.flujo-modal {
  position: relative;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  z-index: 1001;
}

.flujo-modal .modal-content {
  height: 80vh;
  overflow-y: auto;
  padding: 20px;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px 0;
}

.timeline-section {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: var(--bg-main);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.timeline-time {
  min-width: 100px;
  font-weight: bold;
  font-size: 18px;
  color: var(--primary-color);
  text-align: center;
}

.timeline-line {
  width: 4px;
  height: 60px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  position: relative;
}

.timeline-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-light);
}

.timeline-circle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: var(--shadow-dark);
}

.timeline-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-title {
  font-weight: bold;
  font-size: 16px;
  color: var(--text-dark);
}

.activity-description {
  color: var(--text-light);
  font-size: 14px;
}

.activity-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.activity-btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 15px;
}

.reminders-section {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 20px;
}

.reminder-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 20px;
}

.reminder-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: var(--bg-main);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
}

.reminder-date {
  font-weight: bold;
  color: var(--primary-color);
}

.reminder-text {
  flex: 1;
  margin: 0 15px;
}

.reminder-type {
  background-color: var(--secondary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.birthday-type {
  background-color: #e74c3c;
}

.delete-reminder {
  background-color: var(--error-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flujo-header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: -20px -20px 20px -20px;
}

.morning { background: linear-gradient(45deg, #ff9a9e, #fecfef); }
.afternoon { background: linear-gradient(45deg, #a8edea, #fed6e3); }
.evening { background: linear-gradient(45deg, #ffecd2, #fcb69f); }
.night { background: linear-gradient(45deg, #667eea, #764ba2); }

/* Categorized Tasks Section */
.categorized-tasks-section {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 20px;
}

.task-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.task-category {
  background-color: var(--bg-main);
  border-radius: var(--border-radius);
  padding: 15px;
  box-shadow: var(--shadow-light);
}

.task-category h4 {
  margin: 0 0 15px 0;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

/* Ámbitos Section */
.ambitos-section {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 20px;
}

.ambitos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
  position: relative;
}

.ambito-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  position: relative;
  margin: 0 auto;
}

.ambito-circle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-dark);
}

.ambito-circle i {
  font-size: 24px;
  margin-bottom: 8px;
}

.ambito-circle span {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.ambito-circle.trabajo {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.ambito-circle.familia {
  background: linear-gradient(135deg, #e67e22, #d35400);
}

.ambito-circle.salud {
  background: linear-gradient(135deg, #27ae60, #229954);
}

.ambito-circle.finanzas {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.ambito-circle.educacion {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.ambito-circle.social {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.ambito-circle.hobbies {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

.ambito-circle.convergencia {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  position: relative;
}

.ambito-circle.convergencia::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 3px dashed rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: rotate 10s linear infinite;
}

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

#ambito-activities {
  margin-top: 20px;
}

.ambito-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg-darker);
}

.ambito-header h4 {
  margin: 0;
  color: var(--primary-color);
}

#ambito-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ambito-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: var(--bg-main);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.ambito-checklist-item:hover {
  background-color: var(--bg-darker);
}

.ambito-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.ambito-label {
  flex: 1;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-dark);
}

.ambito-checklist-item input:checked + .ambito-label {
  text-decoration: line-through;
  color: var(--text-light);
}

/* Media Queries */
@media (max-width: 992px) {
  #main-app {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
  }
  
  #notepad {
    width: 100%;
    min-width: 0;
    height: 50vh;
  }
}

@media (max-width: 768px) {
  .tools {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .tool-btn {
    width: calc(50% - 6px);
  }
  
  .task-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
  }
  
  .ambitos-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
  }
  
  .ambito-circle {
    width: 100px;
    height: 100px;
  }
  
  .ambito-circle i {
    font-size: 20px;
  }
  
  .ambito-circle span {
    font-size: 11px;
  }
}

@media (max-width: 576px) {
  .neumorphic-card {
    padding: 20px;
  }
  
  .chat-input-container {
    padding: 10px;
  }
  
  .input-actions button,
  .input-actions label {
    padding: 8px;
  }
  
  .task-categories {
    gap: 15px;
  }
  
  .task-category {
    padding: 12px;
  }
  
  .task-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px;
  }
  
  .ambitos-container {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
  }
  
  .ambito-circle {
    width: 90px;
    height: 90px;
  }
  
  .ambito-circle i {
    font-size: 18px;
  }
  
  .ambito-circle span {
    font-size: 10px;
  }
}

.notification {
  color: white;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  box-shadow: var(--shadow-dark);
  animation: fade-slide-in 0.3s ease forwards;
}

@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-slide-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

.mode-selector {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg-darker);
}

.mode-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.mode-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--border-radius);
  background-color: var(--bg-main);
  border: none;
  box-shadow: var(--shadow-light);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
}

.mode-btn:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-2px);
}

.mode-btn i {
  font-size: 18px;
}

.premium-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: gold;
  color: var(--text-dark);
  font-size: 10px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
}

.entertainment-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
}

.entertainment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--border-radius);
  background-color: var(--bg-main);
  box-shadow: var(--shadow-light);
  cursor: pointer;
  transition: var(--transition);
}

.entertainment-option:hover {
  transform: translateY(-2px);
  background-color: var(--bg-darker);
}

.entertainment-option i {
  font-size: 24px;
  color: var(--primary-color);
}

.pomodoro-dropdown {
  position: relative;
  margin-bottom: 12px;
}

.pomodoro-dropdown.open .dropdown-icon {
  transform: rotate(180deg);
}

#pomodoro-btn {
  position: relative;
}

#pomodoro-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-main);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-dark);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 5px;
}

.pomodoro-timer-display {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: white;
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 12px;
  font-weight: bold;
  min-width: 35px;
  text-align: center;
  animation: pulse 2s infinite;
}

.pomodoro-timer-display.work {
  background-color: #e74c3c;
}

.pomodoro-timer-display.short-break {
  background-color: #f39c12;
}

.pomodoro-timer-display.long-break {
  background-color: #27ae60;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.pomodoro-modal {
  position: relative;
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  z-index: 1001;
}

.pomodoro-modal .modal-content {
  height: 70vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.pomodoro-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  padding: 20px;
}

.pomodoro-link-item {
  background-color: var(--bg-main);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 15px;
}

.pomodoro-link-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark);
}

.pomodoro-link-item.trabajo {
  border-left: 4px solid #e74c3c;
}

.pomodoro-link-item.descanso {
  border-left: 4px solid #27ae60;
}

.pomodoro-link-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
}

.pomodoro-link-content h4 {
  margin: 0 0 5px 0;
  color: var(--text-dark);
}

.pomodoro-link-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
}

.pomodoro-header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.pomodoro-timer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.current-session {
  font-size: 18px;
  font-weight: bold;
}

.timer-controls {
  display: flex;
  gap: 10px;
}

.timer-controls button {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.timer-controls button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.pomodoro-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
}