/* Materio Theme Port - Custom CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #9155FD;
  --primary-dark: #804BDF;
  --bg-color: #F4F5FA;
  --card-bg: #FFFFFF;
  --text-main: #3A3541;
  --text-light: #89868D;
  --border-color: #E7E7E9;
  --radius: 10px;
  --shadow: 0px 4px 18px rgba(0, 0, 0, 0.1);
  --font-family: 'Inter', sans-serif;

  /* Status Colors */
  --success: #56CA00;
  --error: #FF4C51;
  --warning: #FFB400;
  --info: #16B1FF;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  font-size: 0.9375rem;
  /* 15px */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

* {
  box-sizing: border-box;
}

/* --- Layout --- */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.layout-sidebar {
  width: 260px;
  background: var(--card-bg);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.sidebar-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin: 4px 16px;
  border-radius: 8px;
  color: var(--text-main);
  transition: all 0.2s;
}

.menu-item:hover {
  background-color: rgba(58, 53, 65, 0.04);
}

.menu-item.active {
  background: linear-gradient(98deg, #C6A7FE, #9155FD 94%);
  color: white;
  box-shadow: 0px 4px 8px -4px rgba(58, 53, 65, 0.42);
}

.menu-header {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 24px 24px 8px;
}

/* Main Content */
.layout-page {
  flex-grow: 1;
  margin-left: 260px;
  /* Width of sidebar */
  transition: margin-left 0.3s;
}

/* Header/Navbar */
.layout-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 12px 24px;
  margin: 16px 24px;
  border-radius: var(--radius);
  box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.08);
  /* Floating navbar style */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-welcome {
  font-weight: 600;
  font-size: 1rem;
}

/* --- Components --- */
.materio-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0px 2px 10px 0px rgba(58, 53, 65, 0.1);
  padding: 1.5rem;
  border: none;
  margin-bottom: 24px;
}

/* Grid System (Simplified) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.col {
  flex: 1;
  padding: 0 12px;
}

.col-12 {
  width: 100%;
  padding: 0 12px;
}

.col-md-7 {
  width: 58.33%;
  padding: 0 12px;
}

.col-md-5 {
  width: 41.66%;
  padding: 0 12px;
}

.gap-4 {
  gap: 1.5rem;
}

/* Auth / Simple Styles */
.materio-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background-color 0.3s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

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

.materio-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(58, 53, 65, 0.22);
  border-radius: 5px;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
}

.materio-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(145, 85, 253, 0.2);
}

/* Helpers */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.d-flex {
  display: flex !important;
}

.align-center {
  align-items: center !important;
}

.justify-between {
  justify-content: space-between !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-warning {
  background-color: #FFF2E2;
  color: #E09600;
  border-color: #FFE6C5;
}

.alert-success {
  background-color: #E8FADF;
  color: #4DA700;
  border-color: #D3F5C0;
}

/* Table */
.materio-table {
  width: 100%;
  border-collapse: collapse;
}

.materio-table th {
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-main);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.materio-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  /* Separator lines */
  color: var(--text-main);
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(86, 202, 0, 0.12);
  color: var(--success);
}

.badge-warning {
  background: rgba(255, 180, 0, 0.12);
  color: var(--warning);
}

.badge-danger {
  background: rgba(255, 76, 81, 0.12);
  color: var(--error);
}


/* Mobile */
@media (max-width: 900px) {
  .layout-sidebar {
    transform: translateX(-100%);
  }

  .layout-sidebar.open {
    transform: translateX(0);
  }

  .layout-page {
    margin-left: 0;
    width: 100%;
  }

  .row {
    flex-direction: column;
  }

  .col-md-7,
  .col-md-5 {
    width: 100%;
  }

  .sidebar-toggle {
    display: block;
  }
}

@media (min-width: 901px) {
  .sidebar-toggle {
    display: none;
  }
}

/* --- Auth Layouts --- */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .auth-wrapper {
    padding: 1rem;
  }
}