/* styles.css */
--
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea, #764ba2);
	min-height: 100vh;
	padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #333;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  overflow: hidden;
}

.tab-header {
  background: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  flex-wrap: nowrap;     /* prevent wrapping to two rows */
}

.tab-buttons {
  display: flex;
  flex-wrap: nowrap;
}

.tab {
  padding: 15px 25px;
  color: #bdc3c7;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.tab:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.tab.active {
  background: #34495e;
  color: white;
  border-bottom-color: #3498db;
}

.user-control {
  margin-left: 20px; /* separates avatar from last tab */
  cursor: pointer;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3498db;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}

.avatar:hover {
  transform: scale(1.08);
}

/* User icon / login */
.user-area {
	font-size: 20px;
	cursor: pointer;
}

/* Spinner */
/* HTMX Loading State Logic */
.htmx-indicator {
    display: none;
    opacity: 0;
    transition: opacity 200ms ease-in;
}

.htmx-request.htmx-indicator,
.htmx-request .htmx-indicator {
    display: block;
    opacity: 1;
}

/* Global Spinner Overlay */
.spinner-overlay {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50; /* Framework Theme */
    color: #fff9c4;
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    font-weight: bold;
}

.spinner-icon {
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Main content */
#main {
	padding: 40px;
	text-align: center;
	font-size: 32px;
	color: #333;
	background: white;
}

/* Modal container */
#modal {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.35);
	display: none;
	align-items: center;
	justify-content: center;
}

#modal.show {
	display: flex;
}

.modal-content {
	background: white;
	padding: 25px;
	border-radius: 12px;
	min-width: 300px;
	max-width: 500px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


