/*
  TEAM APP - MyFreeCams Style
  Black background with palms, retro font
*/

@import url('https://fonts.googleapis.com/css2?family=Shojumaru&display=swap');

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

body {
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 12px;
  background: #0a0a0a;
  color: #0f0;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/bg-palms.png') center center / cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}

a {
  color: #0f0;
  text-decoration: none;
}

a:hover {
  color: #5f5;
  text-decoration: underline;
}

/* === TOP BAR === */
.topbar {
  background: url('../img/bg-palms.png') center top / cover;
  border-bottom: 2px solid #0f0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0,255,0,0.3);
  overflow: hidden;
}

.topbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(8, 15, 8, 0.88) 0%, rgba(0, 5, 0, 0.92) 100%);
  pointer-events: none;
  z-index: 0;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.logo {
  font-family: 'Shojumaru', cursive;
  font-size: 32px;
  font-weight: 400;
  color: #c00;
  letter-spacing: 3px;
  text-shadow: 2px 2px 0 #400, 0 0 10px rgba(200,0,0,0.6), 0 0 20px rgba(200,0,0,0.3);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
}

.topbar-user {
  color: #999;
}

.topbar-user strong {
  color: #c00;
}

.logout-link {
  color: #c00 !important;
}

.logout-link:hover {
  color: #f00 !important;
}

/* === MAIN NAV === */
.main-nav {
  background: url('../img/bg-palms.png') center center / cover;
  border-bottom: 1px solid #0f0;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.main-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 5, 0.92);
  pointer-events: none;
}

.main-nav > * {
  position: relative;
  z-index: 1;
}

.nav-link {
  display: inline-block;
  padding: 10px 15px;
  color: #0f0;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  background: #1a1a1a;
  color: #5f5;
  text-decoration: none;
}

.nav-link.active {
  background: #1a1a1a;
  border-bottom-color: #0f0;
  color: #fff;
}

/* === CONTENT === */
.content {
  padding: 15px;
  max-width: 1400px;
  margin: 0 auto;
  background: url('../img/bg-palms.png') center center / cover fixed;
  min-height: calc(100vh - 100px);
  position: relative;
}

.content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 5, 0.88);
  pointer-events: none;
}

.section {
  display: none;
  position: relative;
  z-index: 1;
}

.section.active {
  display: block;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  color: #c00;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #900;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === TABS === */
.tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 15px;
  background: linear-gradient(180deg, rgba(10, 18, 10, 0.9) 0%, rgba(5, 12, 5, 0.95) 100%);
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #1a3a1a;
}

.tab {
  padding: 10px 18px;
  background: linear-gradient(180deg, rgba(20, 35, 20, 0.8) 0%, rgba(12, 22, 12, 0.9) 100%);
  color: #0f0;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #1a3a1a;
  border-radius: 3px;
  transition: all 0.2s ease;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.tab:hover {
  background: linear-gradient(180deg, rgba(30, 50, 30, 0.9) 0%, rgba(20, 35, 20, 0.95) 100%);
  border-color: #2a5a2a;
}

.tab.active {
  background: linear-gradient(180deg, #0f0 0%, #0a0 100%);
  color: #000;
  border-color: #0f0;
  text-shadow: none;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 6px 12px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(to bottom, #333 0%, #1a1a1a 100%);
  color: #0f0;
  border: 1px solid #0f0;
}

.btn:hover {
  background: linear-gradient(to bottom, #444 0%, #222 100%);
  color: #5f5;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(to bottom, #0f0 0%, #0a0 100%);
  color: #000;
}

.btn-primary:hover {
  background: linear-gradient(to bottom, #5f5 0%, #0f0 100%);
  color: #000;
}

.btn-danger {
  background: linear-gradient(to bottom, #500 0%, #300 100%);
  color: #f55;
  border-color: #f00;
}

.btn-danger:hover {
  background: linear-gradient(to bottom, #700 0%, #500 100%);
}

.btn-secondary {
  background: linear-gradient(to bottom, #f33 0%, #a00 100%);
  color: #fff;
  border-color: #f33;
}

.btn-secondary:hover {
  background: linear-gradient(to bottom, #f55 0%, #c00 100%);
  color: #fff;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 10px;
}

/* === FORMS === */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 11px;
  color: #0f0;
  margin-bottom: 4px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  background: linear-gradient(135deg, rgba(10, 20, 10, 0.95) 0%, rgba(5, 15, 5, 0.98) 50%, rgba(15, 25, 15, 0.95) 100%);
  border: 1px solid #1a3a1a;
  border-radius: 3px;
  color: #0f0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 50, 0, 0.2);
  transition: all 0.2s ease;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #2a5a2a;
  background: linear-gradient(135deg, rgba(15, 30, 15, 0.95) 0%, rgba(10, 20, 10, 0.98) 50%, rgba(20, 35, 20, 0.95) 100%);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #0f0;
  background: linear-gradient(135deg, rgba(20, 40, 20, 0.95) 0%, rgba(10, 25, 10, 0.98) 50%, rgba(25, 45, 25, 0.95) 100%);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 255, 0, 0.3), 0 0 30px rgba(0, 100, 0, 0.15);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #3a5a3a;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230f0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.form-select option {
  background: #0a150a;
  color: #0f0;
  padding: 8px;
}

/* === BOX === */
.box {
  background: url('../img/bg-palms.png') center center / cover;
  border: 1px solid #1a3a1a;
  border-radius: 4px;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 255, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(8, 15, 8, 0.92) 0%, rgba(3, 8, 3, 0.95) 100%);
  pointer-events: none;
}

.box-header {
  background: linear-gradient(180deg, rgba(15, 30, 15, 0.95) 0%, rgba(8, 18, 8, 0.98) 100%);
  padding: 10px 15px;
  border-bottom: 1px solid #1a3a1a;
  border-radius: 4px 4px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  color: #0f0;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  position: relative;
  z-index: 1;
}

.box-body {
  padding: 15px;
  position: relative;
  z-index: 1;
}

/* === TABLE === */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.table th,
.table td {
  padding: 8px;
  text-align: left;
  border: 1px solid #333;
}

.table th {
  background: #1a1a1a;
  color: #0f0;
  font-weight: bold;
}

.table tr:hover td {
  background: #1a1a1a;
}

/* === GRID === */
.grid {
  display: grid;
  gap: 15px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === CARD === */
.card {
  background: linear-gradient(180deg, rgba(15, 25, 15, 0.9) 0%, rgba(8, 15, 8, 0.95) 100%);
  border: 1px solid #1a3a1a;
  border-radius: 4px;
  padding: 14px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: #2a5a2a;
  box-shadow: 0 4px 15px rgba(0, 50, 0, 0.3);
}

.card-title {
  font-size: 13px;
  font-weight: bold;
  color: #8f8;
  margin-bottom: 8px;
}

.card-text {
  font-size: 11px;
  color: #5a8a5a;
  margin-bottom: 5px;
}

.card-actions {
  margin-top: 12px;
  display: flex;
  gap: 6px;
}

/* === BADGE === */
.badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: bold;
}

.badge-green { background: #0f0; color: #000; }
.badge-yellow { background: #ff0; color: #000; }
.badge-red { background: #f00; color: #fff; }
.badge-gray { background: #555; color: #fff; }

/* === CHECKLIST === */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: #0a0a0a;
  border: 1px solid #222;
  margin-bottom: 5px;
}

.check-item.done {
  opacity: 0.5;
}

.check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0f0;
}

.check-item-text {
  flex: 1;
}

.check-item-link {
  font-size: 10px;
  color: #0f0;
  cursor: pointer;
}

.check-item-link:hover {
  text-decoration: underline;
}

/* === STATS === */
.stat-box {
  background: url('../img/bg-palms.png') center center / cover;
  border: 1px solid #1a4a1a;
  border-radius: 4px;
  padding: 18px 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(0, 255, 0, 0.1);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(10, 25, 10, 0.88) 0%, rgba(5, 15, 5, 0.92) 100%);
  pointer-events: none;
  transition: all 0.2s ease;
}

.stat-box:hover {
  border-color: #0f0;
  box-shadow: 0 4px 20px rgba(0, 255, 0, 0.2), inset 0 1px 0 rgba(0, 255, 0, 0.15);
  transform: translateY(-2px);
}

.stat-box:hover::before {
  background: linear-gradient(180deg, rgba(15, 35, 15, 0.85) 0%, rgba(8, 20, 8, 0.88) 100%);
}

.stat-value {
  font-size: 32px;
  font-weight: bold;
  color: #0f0;
  text-shadow: 0 0 20px rgba(0, 255, 0, 0.5), 0 0 40px rgba(0, 255, 0, 0.2);
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 10px;
  color: #5a8a5a;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* === TIME === */
.time-display {
  font-size: 48px;
  font-weight: bold;
  color: #0f0;
  text-align: center;
  padding: 20px;
}

/* === CHAT === */
.chat-container {
  height: 450px;
  display: flex;
  flex-direction: column;
  background: #050505;
  border: 1px solid #900;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #000;
}

.chat-msg {
  margin-bottom: 12px;
  max-width: 80%;
}

.chat-msg.user {
  margin-left: auto;
}

.chat-msg-bubble {
  padding: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #fff !important;
}

.chat-msg.user .chat-msg-bubble {
  background: #0a0a0a;
  border: 1px solid #0f0;
}

.chat-msg.ai .chat-msg-bubble {
  background: #111;
  border: 1px solid #333;
}

.chat-msg-actions {
  margin-top: 5px;
  opacity: 0;
  transition: opacity 0.2s;
}

.chat-msg:hover .chat-msg-actions {
  opacity: 1;
}

.chat-msg-actions .btn {
  font-size: 10px;
  padding: 2px 8px;
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
}

.chat-input-area textarea {
  flex: 1;
  min-height: 50px;
}

/* === MODAL === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 5, 0, 0.92);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 50px 20px;
  z-index: 1000;
  overflow-y: auto;
}

.modal.show, .modal.active {
  display: flex;
}

.modal-box {
  background: linear-gradient(180deg, rgba(12, 20, 12, 0.98) 0%, rgba(6, 12, 6, 0.99) 100%);
  border: 2px solid #1a5a1a;
  border-radius: 6px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 255, 0, 0.2), inset 0 1px 0 rgba(0, 255, 0, 0.1);
}

.modal-box.large {
  max-width: 700px;
}

.modal-header {
  background: linear-gradient(180deg, #0f0 0%, #0a0 100%);
  padding: 12px 18px;
  border-radius: 4px 4px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
}

.modal-title {
  font-size: 14px;
  font-weight: bold;
  color: #000;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modal-close {
  background: none;
  border: none;
  color: #030;
  font-size: 22px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #500;
  transform: scale(1.1);
}

.modal-body {
  padding: 20px;
  background: linear-gradient(135deg, rgba(8, 15, 8, 0.95) 0%, rgba(5, 12, 5, 0.98) 50%, rgba(10, 18, 10, 0.95) 100%);
}

/* === LOGIN === */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/bg-palms.png') center center / cover fixed no-repeat, #0a0a0a;
}

.login-box {
  width: 340px;
  text-align: center;
}

.login-box .logo {
  font-size: 38px;
  margin-bottom: 5px;
  text-shadow: 2px 2px 0 #400, 0 0 20px rgba(200, 0, 0, 0.8), 0 0 40px rgba(200, 0, 0, 0.4);
}

.login-subtitle {
  font-size: 10px;
  color: #4a6a4a;
  margin-bottom: 25px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.login-form {
  background: url('../img/bg-palms.png') center center / cover;
  border: 1px solid #1a4a1a;
  border-radius: 6px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 50, 0, 0.2), inset 0 1px 0 rgba(0, 255, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.login-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 15, 8, 0.85);
  backdrop-filter: blur(3px);
}

.login-form > * {
  position: relative;
  z-index: 1;
}

.login-error {
  background: linear-gradient(180deg, rgba(50, 10, 10, 0.9) 0%, rgba(30, 5, 5, 0.95) 100%);
  border: 1px solid #a33;
  border-radius: 4px;
  color: #f77;
  padding: 10px;
  font-size: 11px;
  margin-top: 12px;
  display: none;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

/* === EMPTY === */
.empty {
  text-align: center;
  padding: 30px;
  color: #555;
}

/* === GUIDE === */
.guide-text {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 15px;
  white-space: pre-wrap;
  color: #ccc;
}

.guide-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.guide-images img {
  max-width: 100%;
  max-height: 300px;
  border: 1px solid #333;
  cursor: pointer;
}

.guide-video iframe {
  width: 100%;
  height: 315px;
  border: 1px solid #333;
}

/* === DATE === */
.date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-nav input[type="date"] {
  background: #111;
  border: 1px solid #333;
  color: #0f0;
  padding: 5px 10px;
  font-size: 12px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 10px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    gap: 10px;
  }
}

/* === LIST ITEM === */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #0a0a0a;
  border: 1px solid #222;
  margin-bottom: 5px;
}

.list-item:hover {
  background: #151515;
  border-color: #0f0;
}

/* === TASK ITEM WITH GUIDE === */
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #0a0a0a;
  border: 1px solid #222;
  margin-bottom: 5px;
  position: relative;
}

.task-item:hover {
  background: #151515;
}

.task-item.done {
  opacity: 0.6;
}

.task-item.done .task-name {
  text-decoration: line-through;
}

.task-check {
  width: 18px;
  height: 18px;
  accent-color: #0f0;
  cursor: pointer;
}

.task-name {
  flex: 1;
  font-size: 12px;
}

.task-guide-btn {
  font-size: 10px;
  color: #0f0;
  cursor: pointer;
  padding: 2px 6px;
  border: 1px solid #333;
  background: #1a1a1a;
}

.task-guide-btn:hover {
  background: #0f0;
  color: #000;
}

/* === TOOLTIP === */
.tooltip {
  position: fixed;
  background: #1a1a1a;
  border: 1px solid #0f0;
  padding: 15px;
  max-width: 400px;
  z-index: 2000;
  font-size: 11px;
}

.tooltip-title {
  font-weight: bold;
  color: #0f0;
  margin-bottom: 10px;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}

.tooltip-text {
  color: #ccc;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* === ACCOUNT CARD === */
.acc-card {
  background: #111;
  border: 1px solid #333;
  padding: 12px;
  margin-bottom: 10px;
}

.acc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.acc-card-title {
  font-weight: bold;
  color: #0f0;
}

.acc-card-body {
  font-size: 11px;
  color: #999;
}

.acc-card-body div {
  margin-bottom: 3px;
}

.acc-card-actions {
  margin-top: 8px;
  display: flex;
  gap: 5px;
}

/* === STATUS BADGES === */
.status {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 2px;
}

.status-healthy { background: #0f0; color: #000; }
.status-expired { background: #f00; color: #fff; }
.status-pending { background: #ff0; color: #000; }
.status-approved { background: #0f0; color: #000; }
.status-rejected { background: #f00; color: #fff; }
.status-live { background: #0f0; color: #000; }
.status-potential { background: #ff0; color: #000; }
.status-active { background: #0f0; color: #000; }
.status-gray { background: #555; color: #fff; }

/* === MODEL CARD === */
.model-card {
  background: #111;
  border: 1px solid #333;
  cursor: pointer;
}

.model-card:hover {
  border-color: #0f0;
}

.model-card-img {
  width: 100%;
  height: 150px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 10px;
  overflow: hidden;
}

.model-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-card-body {
  padding: 10px;
}

.model-card-name {
  font-weight: bold;
  color: #0f0;
  margin-bottom: 5px;
}

.model-card-info {
  font-size: 10px;
  color: #999;
}

/* === CONTENT CARD === */
.content-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  overflow: hidden;
}

.content-card-media {
  width: 100%;
  height: 200px;
  background: #0a0a0a;
  overflow: hidden;
  position: relative;
}

.content-card-media img,
.content-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
}

.content-card-badge.photo { background: #0af; }
.content-card-badge.video { background: #f0a; }
.content-card-badge.reels { background: #f50; }
.content-card-badge.stories { background: #a0f; }
.content-card-badge.carousel { background: #0fa; }

.content-card-body {
  padding: 12px;
}

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

.content-card-dates {
  display: flex;
  gap: 10px;
  font-size: 9px;
  color: #666;
  margin-bottom: 6px;
}

.content-card-dates span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.content-card-account {
  font-weight: bold;
  font-size: 12px;
}

.content-card-platform {
  font-size: 9px;
  color: #666;
  text-transform: uppercase;
}

.content-card-status {
  display: flex;
  gap: 6px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.content-status-tag {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  background: #222;
  color: #666;
}

.content-status-tag.done {
  background: #0f02;
  color: #0f0;
  border: 1px solid #0f0;
}

.content-status-tag.pending {
  background: #ff02;
  color: #ff0;
  border: 1px solid #ff0;
}

.content-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.content-card-actions .btn {
  flex: 1;
  min-width: 60px;
}

/* Prompt Card */
.prompt-card {
  background: #111;
  border: 1px solid #222;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 4px;
}

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

.prompt-card-account {
  font-weight: bold;
  color: #0f0;
}

.prompt-card-text {
  background: #0a0a0a;
  padding: 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  color: #ccc;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.prompt-card-refs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prompt-card-refs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #333;
}

.prompt-card-result {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #222;
}

.prompt-card-result img,
.prompt-card-result video {
  max-width: 150px;
  max-height: 150px;
  border-radius: 4px;
}

/* === CALENDAR === */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 15px;
}

.calendar-header {
  background: #1a1a1a;
  padding: 8px;
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  color: #0f0;
}

.calendar-day {
  background: #0a0a0a;
  padding: 8px;
  text-align: center;
  font-size: 11px;
  cursor: pointer;
  min-height: 40px;
}

.calendar-day:hover {
  background: #1a1a1a;
}

.calendar-day.today {
  border: 1px solid #0f0;
}

.calendar-day.has-tasks {
  background: #001a00;
}

.calendar-day.selected {
  background: #0f0;
  color: #000;
}

.calendar-day.other-month {
  color: #333;
}

/* === INLINE EDIT === */
.inline-edit {
  display: flex;
  gap: 5px;
  align-items: center;
}

.inline-edit input {
  flex: 1;
}

/* === PROGRESS BAR === */
.progress {
  height: 20px;
  background: #1a1a1a;
  border: 1px solid #333;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, #0a0, #0f0);
  transition: width 0.3s;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: bold;
}

/* === SCRIPT BOX === */
.script-box {
  background: #0a0a0a;
  border: 1px solid #333;
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.4;
}

.script-box:hover {
  border-color: #0f0;
  background: #111;
}

.script-box.selected {
  border-color: #0f0;
  background: #001a00;
}

/* === AI STATS === */
.ai-stats {
  display: flex;
  gap: 20px;
  padding: 10px;
  background: #0a0a0a;
  border: 1px solid #333;
  margin-bottom: 15px;
}

.ai-stat {
  text-align: center;
}

.ai-stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #0f0;
}

.ai-stat-label {
  font-size: 10px;
  color: #999;
}

/* === VOICE === */
.voice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #0a0a0a;
  border: 1px solid #222;
  margin-bottom: 5px;
}

.voice-item audio {
  height: 32px;
}

/* === CONTACT LOG === */
.contact-log {
  max-height: 200px;
  overflow-y: auto;
}

.contact-item {
  padding: 8px;
  border-bottom: 1px solid #222;
  font-size: 11px;
}

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

.contact-date {
  color: #666;
  font-size: 10px;
}

/* === INLINE TABS === */
.inline-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.inline-tab {
  padding: 5px 10px;
  background: #1a1a1a;
  color: #0f0;
  font-size: 10px;
  cursor: pointer;
  border: 1px solid #333;
}

.inline-tab.active {
  background: #0f0;
  color: #000;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #333;
}

::-webkit-scrollbar-thumb:hover {
  background: #0f0;
}

/* === TASK GUIDE TOOLTIP === */
.task-guide-tooltip {
  position: fixed;
  background: #111;
  border: 2px solid #0f0;
  padding: 15px;
  max-width: 450px;
  max-height: 500px;
  overflow-y: auto;
  z-index: 2000;
  display: none;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.task-guide-tooltip.show {
  display: block;
}

.task-guide-tooltip .guide-title {
  font-weight: bold;
  color: #0f0;
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.task-guide-tooltip .guide-text {
  font-size: 12px;
  color: #ccc;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 15px;
}

.task-guide-tooltip .guide-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.task-guide-tooltip .guide-images img {
  max-width: 100%;
  max-height: 200px;
  border: 1px solid #333;
  cursor: pointer;
}

.task-guide-tooltip .guide-images img:hover {
  border-color: #0f0;
}

.task-guide-tooltip .guide-video {
  margin-top: 10px;
}

.task-guide-tooltip .guide-video iframe {
  width: 100%;
  height: 250px;
  border: 1px solid #333;
}

/* === CALENDAR GRID === */
.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

.calendar-header div {
  background: #1a1a1a;
  padding: 8px;
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  color: #0f0;
}

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

.calendar-day {
  background: #0a0a0a;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  cursor: pointer;
  min-height: 45px;
  border: 1px solid transparent;
}

.calendar-day:hover {
  background: #1a1a1a;
  border-color: #333;
}

.calendar-day.today {
  border: 1px solid #0f0;
}

.calendar-day.has-work {
  background: #001a00;
}

.calendar-day.has-work::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #0f0;
  border-radius: 50%;
  margin: 4px auto 0;
}

.calendar-day.selected {
  background: #0f0;
  color: #000;
}

.calendar-day.other-month {
  color: #333;
}

.calendar-day .day-num {
  font-weight: bold;
}

.calendar-day .day-hours {
  font-size: 9px;
  color: #0f0;
  margin-top: 2px;
}

.calendar-day .day-scheduled {
  font-size: 10px;
  margin-top: 2px;
}

.calendar-day .day-tasks {
  font-size: 8px;
  color: #ff0;
  margin-top: 1px;
}

.calendar-day.cal-planned {
  background: #1a1a00;
  border-color: #ff0;
}

.calendar-day.cal-planned:hover {
  background: #2a2a00;
}

.calendar-day.cal-completed {
  background: #001a00;
  border-color: #0f0;
}

.calendar-day.cal-completed:hover {
  background: #002a00;
}

.calendar-day.cal-dayoff {
  background: #1a0a0a;
  border-color: #f55;
}

.calendar-day.cal-dayoff:hover {
  background: #2a0a0a;
}

.calendar-day .day-status {
  font-size: 10px;
  margin-top: 2px;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 30px;
  color: #555;
  font-size: 12px;
}

/* === PAYROLL REQUEST === */
.payroll-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #0a0a0a;
  border: 1px solid #222;
  margin-bottom: 8px;
}

.payroll-item:hover {
  border-color: #333;
}

.payroll-amount {
  font-size: 18px;
  font-weight: bold;
  color: #0f0;
}

.payroll-info {
  font-size: 11px;
  color: #999;
}

.payroll-status {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: bold;
}

.payroll-status.pending {
  background: #ff0;
  color: #000;
}

.payroll-status.paid {
  background: #0f0;
  color: #000;
}

/* === WALLET ITEM === */
.wallet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #0a0a0a;
  border: 1px solid #222;
  margin-bottom: 8px;
}

.wallet-type {
  font-weight: bold;
  color: #0f0;
  font-size: 12px;
}

.wallet-address {
  font-size: 11px;
  color: #999;
  font-family: monospace;
  word-break: break-all;
  max-width: 300px;
}

.wallet-label {
  font-size: 10px;
  color: #666;
}

/* === TIME LOG === */
.time-log-item {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  background: #0a0a0a;
  border: 1px solid #222;
  margin-bottom: 4px;
  font-size: 11px;
}

.time-log-in {
  color: #0f0;
}

.time-log-out {
  color: #f55;
}

.time-log-duration {
  color: #ff0;
}

/* === DAILY HISTORY === */
.history-item {
  padding: 10px;
  background: #0a0a0a;
  border: 1px solid #222;
  margin-bottom: 6px;
  font-size: 11px;
}

.history-item:hover {
  background: #111;
  cursor: pointer;
}

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

.history-date {
  font-weight: bold;
  color: #0f0;
}

.history-stats {
  display: flex;
  gap: 15px;
  font-size: 10px;
}

.history-hours {
  color: #ff0;
}

.history-earned {
  color: #0f0;
}

.history-bonus {
  color: #0ff;
}

.history-tasks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.history-task {
  background: #1a1a1a;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  color: #888;
}

.history-task.done {
  color: #0f0;
  border-left: 2px solid #0f0;
}

.history-task.bonus {
  color: #0ff;
  border-left: 2px solid #0ff;
}

.history-report {
  color: #666;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === TYPING ANIMATION === */
.typing::after {
  content: '...';
  animation: typing 1s infinite;
}

@keyframes typing {
  0%, 33% { content: '.'; }
  34%, 66% { content: '..'; }
  67%, 100% { content: '...'; }
}

/* === AI CHAT IMPROVEMENTS === */
/* === KB ITEM === */
.kb-item {
  padding: 10px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  margin-bottom: 8px;
}

.kb-item:hover {
  border-color: #0f0;
}

.kb-question {
  color: #0f0;
  font-weight: bold;
  margin-bottom: 5px;
}

.kb-answer {
  font-size: 11px;
  color: #999;
  line-height: 1.4;
}

/* === REVIEW ITEMS === */
.review-item {
  border-left: 3px solid #ff0;
}

.review-item:hover {
  border-left-color: #0f0;
}

/* === UNCERTAIN BADGE === */
.uncertain-badge {
  display: inline-block;
  padding: 2px 6px;
  background: #ff0;
  color: #000;
  font-size: 9px;
  font-weight: bold;
  margin-left: 5px;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #111;
  border: 1px solid #0f0;
  padding: 12px 20px;
  min-width: 200px;
  max-width: 350px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success {
  border-color: #0f0;
}

.toast.error {
  border-color: #f55;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.toast.warning {
  border-color: #ff0;
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
}

.toast-icon {
  font-size: 16px;
}

.toast-message {
  flex: 1;
  font-size: 12px;
  color: #fff;
}

.toast-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
}

.toast-close:hover {
  color: #fff;
}

.toast.hiding {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* === CONFIRM DIALOG === */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.confirm-box {
  background: #111;
  border: 2px solid #0f0;
  padding: 0;
  min-width: 300px;
  max-width: 400px;
}

.confirm-message {
  padding: 20px;
  font-size: 13px;
  color: #fff;
  text-align: center;
  border-bottom: 1px solid #333;
}

.confirm-buttons {
  display: flex;
  gap: 0;
}

.confirm-buttons .btn {
  flex: 1;
  padding: 12px;
  border: none;
  font-size: 12px;
}

.confirm-buttons .confirm-yes {
  background: linear-gradient(to bottom, #0f0 0%, #0a0 100%);
  color: #000;
  border-right: 1px solid #333;
}

.confirm-buttons .confirm-yes:hover {
  background: linear-gradient(to bottom, #5f5 0%, #0f0 100%);
}

.confirm-buttons .confirm-no {
  background: linear-gradient(to bottom, #333 0%, #1a1a1a 100%);
  color: #999;
}

.confirm-buttons .confirm-no:hover {
  background: linear-gradient(to bottom, #444 0%, #222 100%);
  color: #fff;
}

/* === TYPE COUNT ROW === */
.type-count-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
}

.type-count-row:last-child {
  border-bottom: none;
}

.type-label {
  flex: 1;
  font-size: 12px;
  color: #0f0;
}

.type-count-input {
  width: 60px !important;
  text-align: center;
  padding: 6px !important;
}

.type-unit {
  font-size: 11px;
  color: #666;
}

/* === TYPE BADGE === */
.type-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #111;
  border: 1px solid #0f0;
  color: #0f0;
  font-size: 11px;
  margin-right: 8px;
  margin-bottom: 5px;
}
