@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --accent: #b05c1d;
  --sidebar-bg: #1a1a2e;
  --sidebar-hover: #16213e;
  --main-bg: #f0f2f5;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--main-bg);
  color: #333;
  overflow-x: hidden;
}

/* ===== Login Screen ===== */
.login-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.login-screen::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent);
  border-radius: 50%;
  top: -150px;
  left: -150px;
  filter: blur(100px);
  opacity: 0.3;
  z-index: 1;
}

.login-screen::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: #00f2fe;
  border-radius: 50%;
  bottom: -100px;
  right: -100px;
  filter: blur(100px);
  opacity: 0.2;
  z-index: 1;
}

.login-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px;
  width: 420px;
  max-width: 90vw;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  z-index: 2;
  position: relative;
  color: #fff;
}

.login-card .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.login-card h2 {
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.login-card .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 0 8px 8px 0;
}

.login-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-card .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.login-card .input-group-text {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.login-card .btn-accent {
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Button Accent ===== */
.btn-accent {
  background-color: var(--accent);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #944d17;
  color: #fff;
  transform: translateY(-1px);
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}

.sidebar-header {
  padding: 25px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav {
  list-style: none;
  padding: 15px 0;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-nav li {
  padding: 12px 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav li:hover {
  background: var(--sidebar-hover);
  border-left-color: rgba(255,255,255,0.3);
}

.sidebar-nav li.active {
  background: var(--sidebar-hover);
  border-left-color: var(--accent);
  color: var(--accent);
}

.sidebar-nav li i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

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

/* ===== Main Content ===== */
.main-content {
  margin-left: 260px;
  padding: 30px;
  min-height: 100vh;
}

.section-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  text-transform: none;
  letter-spacing: 0;
}

/* ===== Stat Cards ===== */
.stat-card {
  padding: 25px;
  border-radius: 12px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.stat-card i {
  font-size: 2.5rem;
  opacity: 0.3;
  position: absolute;
  right: 20px;
  top: 20px;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 500;
}

.bg-gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

/* ===== Item Cards (Process/Products) ===== */
.item-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  padding: 20px;
  transition: all 0.2s ease;
}

.item-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

.item-card .item-header h5 {
  margin: 0;
  font-weight: 600;
}

/* ===== Message Card ===== */
.message-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
  padding: 20px;
  transition: all 0.2s ease;
}

.message-card.unread {
  border-left: 4px solid var(--accent);
  background: #fff9f5;
}

/* ===== Upload Progress & Success ===== */
.hero-bg-preview {
  max-width: 420px;
  border: 2px dashed #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f9fa;
}

.hero-bg-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-bg-preview img.preview-flash {
  animation: previewFlash 0.6s ease;
}

@keyframes previewFlash {
  0%   { opacity: 0.5; transform: scale(0.98); }
  50%  { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

.upload-progress-bar {
  height: 10px;
  border-radius: 6px;
  background: #e9ecef;
}

.upload-progress-bar .progress-bar {
  background: linear-gradient(90deg, var(--accent), #d4873a);
  transition: width 0.25s ease;
}

.upload-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #d4edda;
  color: #155724;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  animation: successPop 0.5s ease;
}

.upload-success-badge i {
  font-size: 1.1rem;
  animation: checkBounce 0.6s ease;
}

@keyframes successPop {
  0%   { opacity: 0; transform: translateY(8px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes checkBounce {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.text-accent { color: var(--accent); }

.message-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ===== Save Indicator ===== */
.save-indicator {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 10px;
}

.save-success { background: #d4edda; color: #155724; }
.save-error { background: #f8d7da; color: #721c24; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .sidebar { width: 100%; height: auto; position: relative; }
  .main-content { margin-left: 0; }
  .stat-card { margin-bottom: 10px; }
}
