/* ==========================================================================
   Jenephil Store - Centralized External Stylesheet
   ========================================================================== */

body {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  min-height: 100vh;
  color: white;
}

/* Sidebar Styling */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  z-index: 200;
  transition: all 0.3s;
}

.sidebar h2 {
  color: white;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 40px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 15px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
}

/* Topbar Styling */
.topbar {
  position: fixed;
  top: 0;
  left: 250px;
  right: 0;
  height: 65px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 100;
  transition: all 0.3s;
}

.topbar .page-title {
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #a5b4fc, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Main Layout Content Area */
.main {
  margin-left: 250px;
  padding: 95px 30px 30px;
  transition: all 0.3s;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a5b4fc, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 25px;
}

/* Cards & Forms Shared Structures */
.login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 40px;
  color: white;
}

/* Fix login-card constraints for index.php specifically */
.body-login .login-card {
  max-width: 420px;
}

.login-card h1 {
  background: linear-gradient(135deg, #a5b4fc, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
}

/* Tables & Interactive Data Presentations */
.table-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 25px;
}

.table {
  margin: 0;
  color: white;
}

.table thead th {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  border: none;
  padding: 15px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.table tbody td {
  border-color: rgba(255, 255, 255, 0.07);
  padding: 14px 15px;
  vertical-align: middle;
  font-size: 0.95rem;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Form Fields Styling */
.form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 12px;
  padding: 12px 15px;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #6366f1;
  color: white;
  box-shadow: none;
}

.form-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* System Action Buttons UI Design Definitions */
.btn-login {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  width: 100%;
  transition: opacity 0.3s;
}

/* Green alternate color profile for checkout action elements */
.btn-success-profile {
  background: linear-gradient(135deg, #10b981, #34d399);
}

/* Orange/Gold edit option colors */
.btn-warning-profile {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.btn-add {
  background: linear-gradient(135deg, #10b981, #34d399);
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.btn-edit {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-delete {
  background: linear-gradient(135deg, #ef4444, #f87171);
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s;
}

.btn-cart {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-checkout {
  background: linear-gradient(135deg, #10b981, #34d399);
  border: none;
  border-radius: 12px;
  padding: 12px 25px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s;
}

.btn-login:hover,
.btn-add:hover,
.btn-edit:hover,
.btn-delete:hover,
.btn-cart:hover,
.btn-checkout:hover {
  opacity: 0.85;
  color: white;
}

.summary-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: right;
}

/* Order Badge Tags UI Indicators */
.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pending {
  background-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-completed {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Mobile Layout Responsive Adaptations */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media(max-width: 768px) {
  .sidebar { left: -250px; }
  .sidebar.open { left: 0; }
  .topbar { left: 0; }
  .main { margin-left: 0; padding: 85px 15px 20px; }
  .hamburger { display: block; }
  .table-responsive { border-radius: 20px; }
}

/* Centered Layout Wrapper Rules for forms standalone panels */
.body-standalone-form {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
/* ================= DASHBOARD ================= */

.dashboard-body{
    background: linear-gradient(135deg,#1e1b4b,#311042);
    min-height:100vh;
}

.bg-purple-nav{
    background:#2e1065;
}

.dashboard-card{
    background:rgba(255,255,255,.10);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.15);
    border-radius:20px;
    color:white;
}

.chart-container{
    position:relative;
    width:100%;
    height:420px;
}
/* ===============================
   SHOP PAGE
================================= */

.shop-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:25px;
    margin-top:20px;
}

.product-card{
    background:rgba(255,255,255,.07);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.1);
    border-radius:20px;
    padding:20px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    transition:.3s;
}

.product-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(168,85,247,.2);
}

.product-icon{
    font-size:3.5rem;
    text-align:center;
    margin-bottom:15px;
    background:linear-gradient(135deg,#a5b4fc,#f0abfc);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.product-name{
    font-size:1.2rem;
    font-weight:700;
    color:#fff;
    margin-bottom:8px;
}

.product-price{
    font-size:1.3rem;
    font-weight:800;
    color:#34d399;
    margin-bottom:5px;
}

.product-stock{
    font-size:.85rem;
    color:rgba(255,255,255,.6);
    margin-bottom:15px;
}