/*
CTC Separate Stylesheet
Updated: 2025-09-24 02:10:00
*/
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito Sans", sans-serif;
}

:root {
  --primary: #cc3366;
  --primary-dark: #a82952;
  --primary-soft: #f7a4c0;
}

/* Hide Elementor / theme header */
.site-header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ---------------------------------------------------------
   MAIN LAYOUT – synced with sidebar.css
---------------------------------------------------------- */

body {
  min-height: 100vh;
  background: #f9fafb;
  overflow-x: hidden;
}

/* MAIN WRAPPER FOR SIDEBAR + CONTENT */
.container {
  display: flex;
  min-height: 100vh;
}

/* MAIN CONTENT AREA (right side) */
.main-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 300px;
    min-width: 0;
    padding: 20px;
    transition: .3s;
}

/* SIDEBAR TOGGLE */
.mobile-menu-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1200;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
}

/* TOPBAR */
.topbar {
  width: 100%;
  background: #cc3366;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  color: #fff;
}

/* Page Title */
.page-title {
  color: #1F2936;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* MAIN PAGE CONTENT */
.main-content {
  flex: 1;
  padding: 30px;
  width: 100%;
  min-height: 100vh;
  background: #f9fafb;
}

/* Card */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem;
  color: #666;
}

.breadcrumbs a {
  color: var(--color-hover-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--primary)
}

/* Buttons */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.btn-cancel {
  padding: 8px 20px;
  border: 1px solid #28a745;
  background: transparent;
  color: #28a745;
  border-radius: 20px;
  cursor: pointer;
}

.btn-cancel:hover {
  background: var(--primary)
  border-color:var(--primary)
  color: #fff;
}

.btn-save {
  padding: 8px 20px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.btn-save:hover {
  background: #cc3366;
}

/* Action Icons */
.actions {
  display: flex;
  gap: 8px;
}

.btn-action {
  background: #f2f4f8;
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
}

.btn-action:hover {
  background: #cc3366;
  color: #fff;
}

.material-symbols-rounded {
  font-size: 18px;
}

/* ---------------------------------------------------------
   MOBILE LAYOUT
---------------------------------------------------------- */
@media (max-width: 768px) {

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    background: rgba(0,0,0,0.6);
    transition: 0.4s ease;
  }

  body:has(.sidebar.show)::before {
    opacity: 1;
    pointer-events: auto;
  }

  body:has(.sidebar.show) {
    overflow: hidden;
  }

  .container .main-content {
    padding: 30px 20px;
  }

  /* Remove sidebar offset on mobile */
  .main-wrapper {
    margin-left: 0 !important;
    width: 100%;
    padding: 16px;
  }

  /* Stack layout instead of flex squeeze */
  .container {
    display: block;
  }
}
