/* TeenStyle Admin Panel Core CSS Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #FF4F7A;
  --primary-hover: #e03d65;
  --secondary: #111111;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --border: #EEEEEE;
  --text: #222222;
  --text-muted: #777777;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 260px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--secondary);
  color: #FFFFFF;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar .brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar .brand span {
  color: #FFFFFF;
  font-weight: 400;
  font-size: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 10px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
  background-color: rgba(255, 79, 122, 0.1);
  color: var(--primary);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

.sidebar-footer a:hover {
  color: var(--primary);
}

/* Main Content Area */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.top-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-profile img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.user-profile .info h3 {
  font-size: 14px;
  font-weight: 700;
}

.user-profile .info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

.stats-card .header span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.stats-card .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary);
}

.stats-card .footer {
  margin-top: 10px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.stats-card .footer.green {
  color: #10B981;
}

/* Kanban Production Board styling */
.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 0 20px;
  flex: 1;
}

.kanban-column {
  min-width: 280px;
  max-width: 280px;
  background-color: #f1f3f5;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 200px);
}

.kanban-column h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.kanban-column h3 span {
  background-color: rgba(0,0,0,0.06);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  padding: 4px;
}

.kanban-card {
  background-color: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  cursor: grab;
  transition: var(--transition);
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.5;
  border: 1px dashed var(--primary);
}

.kanban-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.kanban-card p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.kanban-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.tag.custom { background-color: rgba(255, 79, 122, 0.1); color: var(--primary); }
.tag.ready_made { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.tag.alteration { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }

/* Table styling */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background-color: #FAFAFA;
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 18px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

/* Form inputs styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  outline: none;
  background-color: var(--bg);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--surface);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

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

.btn-secondary {
  background-color: var(--secondary);
  color: #FFFFFF;
}

.btn-outline {
  border: 1px solid var(--border);
  background-color: transparent;
  color: var(--text);
}

.btn-outline:hover {
  background-color: #FAFAFA;
}

/* Timeline vertical order details tracking */
.order-tracking-timeline {
  list-style: none;
  position: relative;
  padding-left: 30px;
}

.order-tracking-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--border);
}

.timeline-step {
  position: relative;
  margin-bottom: 24px;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border);
  border: 2px solid var(--surface);
  z-index: 10;
}

.timeline-step.completed::before {
  background-color: #10B981;
}

.timeline-step.active::before {
  background-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 79, 122, 0.2);
}

.timeline-step h4 {
  font-size: 14px;
  font-weight: 700;
}

.timeline-step p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Tabs navigation styling */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 20px;
  transition: var(--transition);
  position: relative;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  text-decoration: none;
}

.tab-btn:hover {
  color: var(--primary);
  background-color: rgba(255, 79, 122, 0.05);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 4px 4px 0 0;
}
