@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@layer base {
  :root {
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;

    --green-200: #bbf7d0;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;

    --red-500: #ef4444;
    --red-600: #dc2626;

    --white: #ffffff;
    --black: #000000;

    --font-inter: 'Inter', sans-serif;
  }

  /* Theme Overrides */
  .theme-ocean {
    --blue-50: #f0fdfa;
    --blue-100: #ccfbf1;
    --blue-600: #0d9488;
    --blue-700: #0f766e;
    --blue-500: #14b8a6;
  }
  
  .theme-midnight {
    --blue-50: #fdf2f8;
    --blue-100: #fce7f3;
    --blue-600: #db2777;
    --blue-700: #be185d;
    --blue-500: #ec4899;
  }
  
  .theme-sunset {
    --blue-50: #fff7ed;
    --blue-100: #ffedd5;
    --blue-600: #ea580c;
    --blue-700: #c2410c;
    --blue-500: #f97316;
  }
  
  .theme-emerald {
    --blue-50: #fdf2f7;
    --blue-100: #fce7f1;
    --blue-600: #d65b85;
    --blue-700: #b9456d;
    --blue-500: #e47ba0;
  }
  
  .theme-royal {
    --blue-50: #faf5ff;
    --blue-100: #f3e8ff;
    --blue-600: #7c3aed;
    --blue-700: #6d28d9;
    --blue-500: #8b5cf6;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: var(--font-inter);
    background-color: var(--slate-50);
    color: var(--slate-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
  }

  .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
  }

  button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  input, textarea {
    font-family: inherit;
  }
}

@layer components {
  /* Layout & Utility wrappers */
  .container-wide {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .glass-morphism {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  /* App Toggle & Mode UI */
  .app-container {
    position: relative;
    min-height: 100vh;
  }

  .admin-toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--slate-900);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.2s;

    &:hover {
      transform: scale(1.1);
    }

    &:active {
      transform: scale(0.95);
    }

    .pulse-dot {
      width: 0.5rem;
      height: 0.5rem;
      border-radius: 50%;
      background-color: var(--green-500);
      animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }

    i {
      transition: transform 0.2s;
    }

    &:hover i {
      transform: rotate(12deg);
    }
  }

  .mode-indicator {
    position: fixed;
    bottom: 5rem;
    left: 2rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--slate-200);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }

  /* Landing View */
  .landing-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--slate-50);
  }

  .navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.2s;

    .brand {
      display: flex;
      flex-direction: column;

      .name {
        font-weight: 700;
        font-size: 1.25rem;
        letter-spacing: -0.025em;
        color: var(--blue-700);
      }

      .title-mobile {
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--slate-500);
        text-transform: uppercase;
        letter-spacing: 0.1em;

        @media (min-width: 768px) {
          display: none;
        }
      }
    }

    .title-desktop {
      display: none;
      flex-direction: column;
      align-items: flex-end;

      @media (min-width: 768px) {
        display: flex;
      }

      .nav-extra-links {
        display: flex;
        align-items: center;
        gap: 1.5rem;

        .nav-link-item {
          font-size: 0.875rem;
          font-weight: 600;
          color: var(--slate-600);
          transition: color 0.2s;

          &:hover {
            color: var(--blue-600);
          }
        }

        .page-title-tag {
          font-size: 0.875rem;
          font-weight: 500;
          color: var(--blue-700);
          border-left: 1px solid var(--slate-200);
          padding-left: 1.5rem;
        }
      }
    }
  }

  .landing-main {
    flex-grow: 1;
    width: 100%;
    margin: 0 auto;
    max-width: 1024px;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;

    @media (min-width: 768px) {
      padding: 1rem 1.5rem 6rem;
      gap: 8rem;
    }
  }

  .empty-state {
    text-align: center;
    padding: 5rem 0;
    color: var(--slate-400);

    i {
      font-size: 3.75rem;
      margin-bottom: 1rem;
      display: block;
    }

    p {
      font-size: 1.25rem;
    }
  }

  .section-item {
    animation: fadeIn 0.7s ease-out both;
  }

  .text-section {
    .content-wrapper {
      display: flex;
      flex-direction: column;
      gap: 2rem;

      @media (min-width: 768px) {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
      }
    }

    .header-col {
      @media (min-width: 768px) {
        width: 33.333333%;
      }

      h2 {
        font-size: 1.875rem;
        font-weight: 800;
        color: var(--blue-700);
        line-height: 1.2;
        margin-bottom: 0.75rem;

        @media (min-width: 768px) {
          font-size: 2.25rem;
        }
      }

      .accent-bar {
        height: 0.25rem;
        width: 3rem;
        background-color: var(--blue-600);
        border-radius: 9999px;
      }
    }

    .content-col {
      @media (min-width: 768px) {
        width: 66.666667%;
      }

      .text-content {
        font-size: 1.125rem;
        font-weight: 400;
        color: var(--slate-600);
        line-height: 1.6;
        white-space: pre-wrap;

        @media (min-width: 768px) {
          font-size: 1.25rem;
        }
      }
    }
  }

  .download-section {
    background-color: var(--white);
    border-radius: 2.5rem;
    padding: 3rem;
    border: 1px solid var(--slate-100);
    box-shadow: 0 20px 25px -5px rgba(226, 232, 240, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: zoomIn 0.7s ease-out both;

    @media (min-width: 768px) {
      padding: 4rem;
    }

    .icon-box {
      width: 4rem;
      height: 4rem;
      background-color: var(--blue-50);
      color: var(--blue-600);
      border-radius: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.875rem;
      margin-bottom: 2rem;
    }

    h3 {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--slate-900);
      margin-bottom: 0.5rem;
    }

    p {
      color: var(--slate-500);
      margin-bottom: 2.5rem;
      max-width: 28rem;
    }

    .download-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      background-color: var(--blue-600);
      color: var(--white);
      padding: 1rem 2.5rem;
      border-radius: 9999px;
      font-weight: 700;
      transition: all 0.2s;
      box-shadow: 0 20px 25px -5px rgba(203, 213, 225, 1);

      &:hover {
        background-color: var(--blue-700);
        transform: scale(1.05);
      }

      &:active {
        transform: scale(0.95);
      }

      i {
        transition: transform 0.2s;
      }

      &:hover i {
        transform: translateX(0.25rem);
      }
    }
  }

  .video-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 1s ease-out both;

    h2 {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--slate-900);
    }

    .video-container {
      position: relative;
      width: 100%;
      height: 100vw;
      border-radius: 0.5rem;
      overflow: hidden;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
      background-color: var(--white);

      @media (min-width: 768px) {
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 2rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      }

      video {
        width: 100%;
        height: 100%;
        display: block;
        background-color: #fff;
      }

      .video-placeholder-view {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: var(--white);
        color: var(--slate-400);
        gap: 1rem;

        span {
          font-size: 4rem;
        }

        p {
          font-weight: 500;
        }
      }
    }
  }

  .footer {
    background-color: var(--slate-900);
    color: var(--slate-100);
    padding: 4rem 1.5rem;
    margin-top: 3rem;

    @media (min-width: 768px) {
      padding: 6rem 1.5rem;
    }

    .footer-grid {
      max-width: 1024px;
      margin: 0 auto;
      display: grid;
      gap: 3rem;

      @media (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
        gap: 6rem;
      }
    }

    .brand-col {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;

      h2 {
        font-size: 1.875rem;
        font-weight: 700;
        letter-spacing: -0.025em;
      }

      p {
        color: var(--slate-400);
        max-width: 24rem;
        line-height: 1.625;
      }
    }

    .links-col {
      display: flex;
      flex-direction: column;
      gap: 2rem;

      h3 {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--slate-500);
        text-transform: uppercase;
        letter-spacing: 0.1em;
      }

      .links-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .contact-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        color: var(--slate-300);
        transition: all 0.2s;

        &:hover {
          color: var(--white);
        }

        .icon-circle {
          width: 2.5rem;
          height: 2.5rem;
          border-radius: 50%;
          background-color: var(--slate-800);
          display: flex;
          align-items: center;
          justify-content: center;
          transition: background-color 0.2s;
        }

        &.email:hover .icon-circle { background-color: var(--blue-600); }
        &.phone:hover .icon-circle { background-color: var(--green-600); }
        &.linkedin:hover .icon-circle { background-color: var(--blue-600); }

        span {
          font-size: 1.125rem;
          font-weight: 500;
        }
      }
    }

    .copyright {
      max-width: 1024px;
      margin: 5rem auto 0;
      padding-top: 2rem;
      border-top: 1px solid var(--slate-800);
      text-align: center;
      color: var(--slate-500);
      font-size: 0.875rem;

      @media (min-width: 768px) {
        text-align: left;
      }
    }
  }

  /* Manager Styles */
  .manager-container {
    display: flex;
    height: 100vh;
    background-color: var(--white);
  }

  .sidebar {
    width: 20rem;
    border-right: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    z-index: 10;

    .sidebar-header {
      padding: 1.5rem;
      border-bottom: 1px solid var(--slate-100);
      background-color: var(--slate-900);
      color: var(--white);

      h2 {
        font-size: 1.25rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      p {
        font-size: 0.75rem;
        color: var(--slate-400);
        margin-top: 0.25rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
      }
    }

    .nav-list {
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .nav-btn {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 1rem;
      border-radius: 0.75rem;
      font-weight: 500;
      color: var(--slate-600);
      transition: all 0.2s;

      &:hover {
        background-color: var(--slate-50);
      }

      &.active {
        background-color: var(--blue-600);
        color: var(--white);
        box-shadow: 0 10px 15px -3px rgba(191, 219, 254, 0.4);
      }
    }

    .sidebar-footer {
      margin-top: auto;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;

      .export-btn, .import-label {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border-radius: 0.75rem;
        font-weight: 700;
        transition: all 0.2s;
        cursor: pointer;
      }

      .export-btn {
        background-color: var(--green-600);
        color: var(--white);
        box-shadow: 0 10px 15px -3px rgba(187, 247, 208, 0.4);

        &:hover {
          background-color: var(--green-700);
        }
      }

      .import-label {
        background-color: var(--white);
        color: var(--slate-600);
        border: 1px solid var(--slate-200);
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);

        &:hover {
          background-color: var(--slate-50);
          color: var(--slate-900);
          border-color: var(--slate-300);
        }
      }
    }
  }

  .editor-area {
    flex: 1;
    overflow-y: auto;
    background-color: rgba(248, 250, 252, 0.5);
    padding: 2rem;

    .editor-content {
      max-width: 48rem;
      margin: 0 auto;
    }
  }

  .tab-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: slideInFromRight 0.5s ease-out both;

    header {
      h1 {
        font-size: 1.875rem;
        font-weight: 700;
        color: var(--slate-900);
      }
      p {
        color: var(--slate-500);
      }
    }

    .settings-grid {
      display: grid;
      gap: 1.5rem;
      background-color: var(--white);
      padding: 2rem;
      border-radius: 1.5rem;
      border: 1px solid var(--slate-100);
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }
  }

  .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;

    label {
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--slate-600);
      margin-left: 0.25rem;
    }

    input, textarea, select {
      width: 100%;
      padding: 0.75rem 1rem;
      border-radius: 0.75rem;
      border: 1px solid var(--slate-200);
      background-color: rgba(248, 250, 252, 0.5);
      color: var(--slate-900);
      transition: all 0.2s;
      font-size: 1rem;

      &:focus {
        background-color: var(--white);
        outline: none;
        border-color: var(--blue-500);
        box-shadow: 0 0 0 4px var(--blue-100);
      }
    }

    select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 1rem center;
      background-size: 1.25rem;
      cursor: pointer;
    }

    textarea {
      resize: none;
    }
  }

  .sections-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    .add-btns {
      display: flex;
      gap: 0.5rem;

      button {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background-color: var(--white);
        border: 1px solid var(--slate-200);
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 600;
        transition: all 0.2s;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);

        &:hover {
          background-color: var(--slate-50);
        }

        &.text i { color: var(--blue-500); }
        &.btn i { color: var(--green-500); }
        &.video i { color: var(--red-500); }
        &.carousel span { color: #f59e0b; }
      }
    }
  }

  .section-editor-card {
    background-color: var(--white);
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: border-color 0.2s;

    &:hover {
      border-color: var(--slate-300);
    }

    .card-header {
      padding: 1rem;
      background-color: var(--slate-50);
      border-bottom: 1px solid var(--slate-200);
      display: flex;
      justify-content: space-between;
      align-items: center;

      .left-side {
        display: flex;
        align-items: center;
        gap: 0.75rem;

        .reorder-btns {
          display: flex;
          flex-direction: column;
          gap: 0.25rem;

          button {
            font-size: 0.75rem;
            color: var(--slate-400);
            transition: color 0.2s;

            &:hover:not(:disabled) {
              color: var(--blue-500);
            }

            &:disabled {
              opacity: 0.2;
              cursor: not-allowed;
            }
          }
        }

        .type-icon {
          width: 2rem;
          height: 2rem;
          border-radius: 0.5rem;
          display: flex;
          align-items: center;
          justify-content: center;
          color: var(--white);

          &.text { background-color: var(--blue-500); }
          &.download { background-color: var(--green-500); }
          &.video { background-color: var(--red-500); }
        }

        .type-label {
          font-weight: 700;
          color: var(--slate-700);
          text-transform: capitalize;
        }
      }

      .delete-btn {
        padding: 0.5rem;
        color: var(--slate-400);
        transition: color 0.2s;

        &:hover {
          color: var(--red-500);
        }
      }
    }

    .card-body {
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
  }

  .ai-enhance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .ai-btn {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--blue-600);
      display: flex;
      align-items: center;
      gap: 0.25rem;
      transition: color 0.2s;

      &:hover:not(:disabled) {
        color: var(--blue-700);
      }

      &:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
    }
  }

  .upload-area {
    position: relative;
    
    input[type="file"] {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
      z-index: 10;
    }

    .upload-box {
      width: 100%;
      padding: 1.5rem;
      border-radius: 0.75rem;
      border: 2px dashed var(--slate-200);
      background-color: rgba(248, 250, 252, 0.5);
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;

      i {
        font-size: 1.5rem;
        color: var(--slate-400);
        transition: color 0.2s;
      }

      span {
        font-size: 0.875rem;
        color: var(--slate-500);
      }
    }

    &:hover .upload-box {
      background-color: var(--white);
      border-color: var(--blue-400);

      i {
        color: var(--blue-500);
      }
    }
  }

  .divider-row {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;

    .line {
      flex-grow: 1;
      border-top: 1px solid var(--slate-200);
    }

    .text {
      flex-shrink: 0;
      margin: 0 1rem;
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--slate-400);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }
  }
}

@layer utilities {
  .animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(1rem); }
    to { opacity: 1; transform: translateX(0); }
  }

  /* Custom scrollbar */
  .admin-sidebar-scroll {
    &::-webkit-scrollbar {
      width: 4px;
    }
    &::-webkit-scrollbar-thumb {
      background: var(--slate-200);
      border-radius: 10px;
    }
  }
}

/* Auth Styles */

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;

  span {
    font-size: 3rem;
    color: var(--blue-600);
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slate-900);
  }

  p {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-top: 0.5rem;
  }
}

.login-error {
  background-color: #fef2f2;
  color: var(--red-600);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid #fee2e2;
  text-align: center;

  &.success-box {
    background-color: #f0fdf4;
    color: var(--green-700);
    border-color: #dcfce7;
  }
}

.login-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;

  button {
    flex: 1;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.2s;
  }

  .cancel-btn {
    background-color: var(--slate-100);
    color: var(--slate-600);
    &:hover { background-color: var(--slate-200); }
  }

  .login-submit-btn {
    background-color: var(--blue-600);
    color: var(--white);
    &:hover { background-color: var(--blue-700); transform: translateY(-2px); }
    &:disabled { opacity: 0.7; transform: none; cursor: wait; }
  }
}

.login-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logout-nav-btn {
  margin-top: 1rem;
  color: var(--red-600) !important;
  &:hover { background-color: #fef2f2 !important; }
}

/* Carousel Styles */

.carousel-section {
  padding-bottom: 4rem;
}

.carousel-section h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--blue-600);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  background: var(--white);
}

.carousel-container {
  display: grid;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 768px) {
  .carousel-slide {
    flex-direction: row;
    align-items: center;
  }
}

.carousel-image {
  flex: 1;
  background: var(--slate-100);
  overflow: hidden;
}

.carousel-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.carousel-image .image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
}

.carousel-image .image-placeholder span {
  font-size: 4rem;
}

.carousel-content {
  flex: 1;
  padding: 2rem;
  background: var(--white);
}

.carousel-content .rich-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--blue-600);
}

.carousel-content .rich-text p {
  color: var(--slate-600);
  line-height: 1.6;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: all 0.2s;
  color: var(--slate-700);
}

.carousel-control:hover {
  background: var(--white);
  color: var(--blue-600);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev { left: 1rem; }

.carousel-control.next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  background: var(--blue-600);
  transform: scale(1.3);
}

/* Admin Carousel Styles */

.carousel-items-admin {
  margin-top: 1.5rem;
  border-top: 1px solid var(--slate-100);
  padding-top: 1.5rem;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-header-row label {
  font-weight: 700;
  color: var(--slate-700);
}

.add-item-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px dashed var(--blue-200);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.add-item-btn:hover {
  background: var(--blue-100);
}

.admin-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-item-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 1rem;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--slate-500);
  font-size: 0.875rem;
}

.item-delete-btn {
  color: var(--red-500);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.item-delete-btn:hover { opacity: 0.7; }

.item-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
}

.upload-area.small {
  height: 100px;
}

.small-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.25rem;
}

.item-rich-text textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--slate-200);
  font-family: inherit;
  font-size: 0.875rem;
  resize: vertical;
}

/* Enhanced Rich Text Editor */

.rich-text-editor {
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  padding: 0.5rem;
  gap: 0.25rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.toolbar-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  color: var(--slate-600);
  transition: all 0.2s;
}

.toolbar-btn:hover {
  background: var(--slate-200);
  color: var(--blue-600);
}

.toolbar-separator {
  width: 1px;
  height: 1.25rem;
  background: var(--slate-300);
  margin: 0 0.25rem;
  align-self: center;
}

.editor-body {
  min-height: 150px;
  max-height: 400px;
  padding: 1rem;
  outline: none;
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-700);
}

.editor-body:empty:before {
  content: attr(placeholder);
  color: var(--slate-400);
  font-style: italic;
}

/* Slide Editor Adjustments */

.item-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editor-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.editor-field-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
}

.slide-title-input {
  width: 100%;
  padding: 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid var(--slate-200);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-900);
}

.slide-title-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Rich Text Formatting */

.rich-text, .editor-body {
  b, strong { font-weight: 700; }
  i, em { font-style: italic; }
  u { text-decoration: underline; }
  ul { list-style-type: disc; padding-left: 1.5rem; margin: 0.5rem 0; }
  ol { list-style-type: decimal; padding-left: 1.5rem; margin: 0.5rem 0; }
  a { color: var(--blue-600); text-decoration: underline; }
  p { margin-bottom: 0.5rem; }
  p:last-child { margin-bottom: 0; }
}

.slide-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

/* Section Editor Collapse/Expand Styles */

.section-editor-card.collapsed {
  margin-bottom: 0.75rem;
  border-color: var(--slate-200);
}

.section-editor-card.collapsed:hover {
  border-color: var(--blue-300);
  background: var(--slate-50);
}

.type-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.title-preview {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-expand-btn {
  background: var(--slate-100);
  border: none;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--slate-600);
  transition: all 0.2s;
}

.toggle-expand-btn:hover {
  background: var(--slate-200);
  color: var(--blue-600);
}

.mobile-nav-footer {
  display: flex !important;
}

@media (min-width: 768px) {
  .mobile-nav-footer {
    display: none !important;
  }
}

/* Visibility Toggle Styles */

.section-editor-card.is-hidden {
  opacity: 0.7;
  border-style: dashed;
}

.visibility-toggle-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0.375rem;
}

.visibility-toggle-btn.visible {
  color: var(--blue-600);
}

.visibility-toggle-btn.hidden {
  color: var(--slate-400);
}

.visibility-toggle-btn:hover {
  background: var(--slate-100);
}

.hidden-tag {
  color: var(--red-500);
  margin-left: 0.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}
