/* ─── Studio Multi-Tenant Branding System ─────────────────── */

/* 
  When a studio page is rendered, we will dynamically define the 
  --studio-brand, --studio-brand-hover, and --studio-brand-rgb values 
  based on the database setting for the active studio.
  
  These selectors define how those variables apply overrides across components.
*/

/* Buttons */
.studio-theme .btn-primary {
  background-color: var(--studio-brand);
  color: #ffffff;
}

.studio-theme .btn-primary:hover {
  background-color: var(--studio-brand-hover);
  color: #ffffff;
}

/* Links & Accents */
.studio-theme a {
  color: var(--studio-brand);
}

.studio-theme a:hover {
  color: var(--studio-brand-hover);
}

.studio-theme .text-primary {
  color: var(--studio-brand);
}

/* Inputs & Form focus */
.studio-theme .form-control:focus {
  border-color: var(--studio-brand);
  box-shadow: 0 0 0 3px rgba(var(--studio-brand-rgb), 0.15);
}

.studio-theme .form-check-input:checked {
  background-color: var(--studio-brand);
  border-color: var(--studio-brand);
}

/* Navigation & Active States */
.studio-theme .nav-link.active {
  color: var(--studio-brand);
  border-left-color: var(--studio-brand);
}

.studio-theme .tab-link.active {
  color: var(--studio-brand);
  border-bottom-color: var(--studio-brand);
}

.studio-theme .badge-primary {
  background-color: rgba(var(--studio-brand-rgb), 0.1);
  color: var(--studio-brand);
}

/* Studio Header / Banner Overlay */
.studio-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 250px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 2rem;
}

.studio-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #ffffff;
}

.studio-logo-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -60px;
  margin-left: 2rem;
  position: relative;
  z-index: 10;
}
