/* ======================================================
   RACONTEUR DASHBOARD V2 FINAL STYLESHEET
   ====================================================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@500;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* =====================
   DESIGN TOKENS
   ===================== */
:root {
  --primary-default: #ef2d2d;
  --primary-dark: #c81f1f;
  --primary-faint: #ffd6d6;

  --text-title: #111827;
  --text-paragraph: #4b5563;
  --text-faint: #9ca3af;

  --fill-background: #f7f8fa;
  --fill-foreground: #ffffff;
  --fill-white: #ffffff;

  --border-default: #e5e7eb;
  --border-faint: #eef0f3;
}

/* =====================
   BASE CANVAS
   ===================== */
html,
body {
  background: var(--fill-background);
  color: var(--text-paragraph);
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
}

/* =====================
   TOP HEADER
   ===================== */
.camg-top-header,
.camg-top-header-wrap {
  background: #ffffff;
  border-bottom: 1px solid var(--border-faint);
}

.camg-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

.camg-top-header-title {
  font-family: "Roboto", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-title);
}

.camg-top-header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.camg-top-header-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: none;
  background: #f3f4f6;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camg-top-header-action-btn:hover {
  background: var(--primary-default);
  color: #ffffff;
}

/* =====================
   USER PROFILE
   ===================== */
.camg-top-header-users-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.camg-top-header-users-profile img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.camg-top-header-users-profile h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-title);
  margin: 0;
}

.camg-top-header-users-profile h4 span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-paragraph);
  padding-left: 10px;
  position: relative;
}

.camg-top-header-users-profile h4 span:after {
  content: '';
  position: absolute;
  left: -2px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}

/* =====================
   DROPDOWN
   ===================== */
.camg-dropdown-menu {
  position: absolute;
  right: 0;
  top: 110%;
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  z-index: 1000;
}

.camg-top-header-users-profile:hover .camg-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.camg-dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px;
}

.camg-dropdown-menu ul li a {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-title);
  text-decoration: none;
  border-radius: 6px;
}

.camg-dropdown-menu ul li a:hover {
  background: var(--primary-default);
  color: #ffffff;
}

/* =====================
   SIDEBAR
   ===================== */
.camg-sidebar,
.camg-sidebar-header,
.camg-sidebar-header-logo {
  background-color: #0b0b0b;
}

.camg-sidebar {
  min-height: 100vh;
  padding: 20px 16px;
  border-right: none;
  font-family: "Inter", sans-serif;
}

/* logo */
.camg-sidebar-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background-color: #0f0f0f;
}

.camg-sidebar-header-logo img {
  max-width: 150px;
  opacity: 0.95;
}

/* nav */
.camg-sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.camg-sidebar-nav ul li + li {
  margin-top: 4px;
}

.camg-sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #d1d5db;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.camg-sidebar-nav ul li a:hover {
  background: rgba(239, 45, 45, 0.12);
  color: #ffffff;
}

.camg-sidebar-nav ul li a.active {
  background: var(--primary-default);
  color: #ffffff;
}

.camg-sidebar-nav ul li a svg {
  width: 20px;
  height: 20px;
  stroke: #9ca3af;
  stroke-width: 1.6;
}

/* =====================
   MAIN CONTENT
   ===================== */
.camg-main-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.camg-content-wrap,
.camg-user-profile-card,
.camg-card-single,
.camg-flow-card-single,
.camg-conversation-card-single {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-faint);
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

/* =====================
   BUTTONS
   ===================== */
.camg-card-action-btn,
.camg-user-profile-action a {
  background: #f9fafb;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-title);
}

.camg-card-action-btn:hover,
.camg-card-action-btn.active,
.camg-user-profile-action a {
  background: var(--primary-default);
  border-color: var(--primary-dark);
  color: #ffffff;
}

/* =====================
   FORMS
   ===================== */
input,
select,
textarea {
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
}

/* =====================
   MOBILE SIDEBAR
   ===================== */
@media (max-width: 991px) {
  .camg-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

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