/*
Theme Name: Moran College Official
Theme URI: https://morancollege.edu.in
Description: A mobile-app-style WordPress theme for Moran College Official. Designed for WebView integration with PWA support, skeleton loading, and native app feel.
Version: 1.0.0
Author: Moran College
Author URI: https://morancollege.edu.in
Text Domain: moran-college
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================
   DESIGN SYSTEM — CSS VARIABLES
   ============================================ */

:root {
  /* Primary Colors */
  --primary: #6C63FF;
  --primary-dark: #5A52D5;
  --primary-light: #8B83FF;
  --primary-gradient: linear-gradient(135deg, #6C63FF 0%, #8B83FF 100%);

  /* Accent Colors */
  --accent-pink: #FF6B8A;
  --accent-coral: #FF6B6B;
  --accent-orange: #FFB347;
  --accent-green: #4ECB71;
  --accent-blue: #4EAAFF;

  /* Neutral Colors */
  --bg: #F5F6FA;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-nav: #FFFFFF;

  /* Text Colors */
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A68;
  --text-muted: #9B9BB4;
  --text-white: #FFFFFF;
  --text-link: #6C63FF;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(108, 99, 255, 0.08);
  --shadow-md: 0 4px 12px rgba(108, 99, 255, 0.12);
  --shadow-lg: 0 8px 24px rgba(108, 99, 255, 0.16);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-nav: 0 -2px 20px rgba(108, 99, 255, 0.1);
  --shadow-fab: 0 4px 16px rgba(255, 107, 138, 0.4);

  /* Border Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-base: 15px;
  --font-size-md: 17px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 28px;

  /* Layout */
  --app-max-width: 480px;
  --header-height: 60px;
  --bottom-nav-height: 70px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================
   RESET & BASE
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

input, textarea, select {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
}

/* ============================================
   APP SHELL LAYOUT
   ============================================ */

.app-wrapper {
  max-width: var(--app-max-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Desktop: center the app and add phone-like frame */
@media (min-width: 481px) {
  body {
    background: linear-gradient(135deg, #e8e6ff 0%, #f0e8ff 50%, #ffe8f0 100%);
  }

  .app-wrapper {
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.15);
    border-radius: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
    min-height: calc(100vh - 40px);
    overflow: hidden;
  }
}

/* ============================================
   TOP HEADER / APP BAR
   ============================================ */

.app-header {
  background: var(--primary-gradient);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.app-header-back {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: background 0.2s ease;
  cursor: pointer;
  border: none;
}

.app-header-back:hover {
  background: rgba(255, 255, 255, 0.25);
}

.app-header-back svg {
  width: 20px;
  height: 20px;
}

.app-header-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.app-header-title {
  color: var(--text-white);
  font-size: var(--font-size-lg);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.app-header-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.app-header-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: all 0.2s ease;
  position: relative;
}

.app-header-icon:hover {
  background: rgba(255, 255, 255, 0.25);
}

.app-header-icon svg {
  width: 18px;
  height: 18px;
}

.app-header-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent-pink);
  border: 2px solid var(--primary);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.app-content {
  padding: var(--space-md);
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom) + var(--space-xl));
  min-height: calc(100vh - var(--header-height));
}

/* ============================================
   BOTTOM NAVIGATION BAR
   ============================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  background: var(--bg-nav);
  box-shadow: var(--shadow-nav);
  z-index: 200;
  padding-bottom: var(--safe-area-bottom);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.bottom-nav-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: var(--bottom-nav-height);
  padding: 0 var(--space-xs);
  position: relative;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex: 1;
  padding-bottom: 8px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  height: 100%;
}

/* Icon wrapper — always flexbox centered */
.nav-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon-wrap span {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.nav-icon-wrap svg {
  width: 22px;
  height: 22px;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nav label */
.bottom-nav-item > span:last-child {
  font-size: var(--font-size-xs);
  font-weight: 500;
  line-height: 1;
  margin-top: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- INACTIVE state ---- */
.bottom-nav-item:not(.active) .nav-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: transparent;
}

.bottom-nav-item:not(.active) > span:last-child {
  color: var(--text-muted);
}

/* ---- ACTIVE state — FAB-like raised effect ---- */
.bottom-nav-item.active {
  color: var(--accent-pink);
}

.bottom-nav-item.active .nav-icon-wrap {
  background: var(--accent-pink);
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-fab);
  transform: translateY(-18px);
  border: 3px solid var(--bg-nav);
}

.bottom-nav-item.active .nav-icon-wrap svg {
  color: var(--text-white);
  width: 24px;
  height: 24px;
}

.bottom-nav-item.active > span:last-child {
  font-weight: 700;
  color: var(--accent-pink);
  transform: translateY(-10px);
}

/* Hover effect for non-active items */
.bottom-nav-item:not(.active):hover {
  color: var(--primary);
}

.bottom-nav-item:not(.active):hover .nav-icon-wrap {
  background: rgba(108, 99, 255, 0.08);
}

/* ============================================
   HERO BANNER / SLIDER
   ============================================ */

.app-banner {
  margin: 0 calc(-1 * var(--space-md));
  margin-top: calc(-1 * var(--space-md));
  padding: var(--space-md);
}

.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.banner-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  min-width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 180px;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.85) 0%, rgba(255, 107, 138, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg);
}

.banner-slide-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.banner-slide-text {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
}

.banner-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--text-white);
  color: var(--primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 600;
  width: fit-content;
  transition: all 0.2s ease;
}

.banner-slide-btn:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dot.active {
  background: var(--primary);
  opacity: 1;
  width: 24px;
  border-radius: var(--radius-xs);
}

/* ============================================
   QUICK ACTIONS GRID
   ============================================ */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-sm);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-lg);
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease;
}

.quick-action-item:hover {
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.2s ease;
}

.quick-action-icon.notices-icon {
  background: linear-gradient(135deg, #6C63FF15, #6C63FF25);
  color: var(--primary);
  border: 1.5px solid #6C63FF20;
}

.quick-action-icon.events-icon {
  background: linear-gradient(135deg, #FF6B8A15, #FF6B8A25);
  color: var(--accent-pink);
  border: 1.5px solid #FF6B8A20;
}

.quick-action-icon.gallery-icon {
  background: linear-gradient(135deg, #4ECB7115, #4ECB7125);
  color: var(--accent-green);
  border: 1.5px solid #4ECB7120;
}

.quick-action-icon.results-icon {
  background: linear-gradient(135deg, #FFB34715, #FFB34725);
  color: var(--accent-orange);
  border: 1.5px solid #FFB34720;
}

.quick-action-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  color: var(--primary-dark);
}

/* ============================================
   HORIZONTAL SCROLL CARDS
   ============================================ */

.horizontal-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: var(--space-sm);
  margin: 0 calc(-1 * var(--space-md));
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll .card {
  scroll-snap-align: start;
  min-width: 200px;
  flex-shrink: 0;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.card-body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
}

.card-category {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 2px;
}

.card-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.card-meta svg {
  width: 12px;
  height: 12px;
}

/* List card layout (horizontal) */
.card-horizontal {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  align-items: center;
}

.card-horizontal:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-horizontal .card-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.card-horizontal .card-info {
  flex: 1;
  min-width: 0;
}

.card-horizontal .card-info .card-title {
  font-size: var(--font-size-base);
  margin-bottom: 4px;
}

/* ============================================
   BADGES & CHIPS
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-primary {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
}

.badge-pink {
  background: rgba(255, 107, 138, 0.1);
  color: var(--accent-pink);
}

.badge-green {
  background: rgba(78, 203, 113, 0.1);
  color: var(--accent-green);
}

.badge-orange {
  background: rgba(255, 179, 71, 0.1);
  color: var(--accent-orange);
}

/* Category filter chips */
.category-chips {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
  margin-bottom: var(--space-md);
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 500;
  white-space: nowrap;
  border: 1.5px solid #E5E5EA;
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  align-items: center;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap svg {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md) var(--space-sm) 44px;
  border: 1.5px solid #E5E5EA;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
  height: 44px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-filter-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid #E5E5EA;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.search-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.search-filter-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   GALLERY GRID
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--text-white);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* Every 3rd gallery item spans 2 columns for visual interest */
.gallery-item:nth-child(5n+3) {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

/* ============================================
   STATS COUNTER
   ============================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   NOTICE LIST
   ============================================ */

.notice-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.notice-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.notice-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  color: inherit;
}

.notice-item .notice-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(108, 99, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.notice-item .notice-icon svg {
  width: 20px;
  height: 20px;
}

.notice-info {
  flex: 1;
  min-width: 0;
}

.notice-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-date {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ============================================
   EVENT CARDS (vertical list)
   ============================================ */

.event-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.event-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.event-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-category {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 2px;
}

.event-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.event-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.event-price {
  margin-left: auto;
  flex-shrink: 0;
}

/* ============================================
   SKELETON LOADING ANIMATION
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, #f0f0f5 25%, #e8e8ef 50%, #f0f0f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-xs);
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-circle {
  border-radius: var(--radius-full);
}

.skeleton-card {
  border-radius: var(--radius-md);
  height: 140px;
}

/* ============================================
   SINGLE POST / PAGE CONTENT
   ============================================ */

.single-content {
  padding: var(--space-lg) 0;
}

.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.single-content h1 { font-size: var(--font-size-xl); }
.single-content h2 { font-size: var(--font-size-lg); }
.single-content h3 { font-size: var(--font-size-md); }

.single-content p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

.single-content img {
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}

.single-content ul,
.single-content ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.single-content li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  list-style: disc;
}

.single-content ol li {
  list-style: decimal;
}

/* Featured Image */
.single-featured-image {
  width: calc(100% + var(--space-md) * 2);
  margin-left: calc(-1 * var(--space-md));
  margin-top: calc(-1 * var(--space-md));
  height: 220px;
  object-fit: cover;
  margin-bottom: var(--space-md);
}

.single-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #E5E5EA;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.empty-state svg {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: var(--font-size-md);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-in {
  animation: fadeInUp 0.4s ease-out both;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   PAGE SPECIFIC — ARCHIVE HEADERS
   ============================================ */

.archive-header {
  margin: calc(-1 * var(--space-md));
  margin-bottom: var(--space-lg);
  padding: var(--space-lg) var(--space-md);
  background: var(--primary-gradient);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.archive-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-white);
}

.archive-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-xs);
}

/* ============================================
   UTILITIES
   ============================================ */

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   ADMIN / UPLOAD — SVG ICON SIZE CONSTRAINTS
   Prevents SVGs from inheriting large sizes
   from .single-content or page-level styles.
   ============================================ */

.mc-upload-form-wrap svg,
.mc-login-card svg,
.mc-admin-panel svg,
.mc-user-card svg,
.mc-access-denied svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Override specific icon containers with exact sizes */
.mc-login-icon svg { width: 28px; height: 28px; }
.mc-upload-icon svg { width: 26px; height: 26px; }
.mc-admin-badge svg { width: 22px; height: 22px; }
.mc-action-icon svg { width: 20px; height: 20px; }
.mc-action-arrow svg { width: 18px; height: 18px; }
.mc-access-icon svg { width: 32px; height: 32px; }
.mc-success-icon svg { width: 36px; height: 36px; }
.mc-logout-btn svg { width: 16px; height: 16px; }
.mc-toast svg { width: 18px; height: 18px; }
.mc-form-error svg { width: 16px; height: 16px; }
.mc-input-wrap svg { width: 18px; height: 18px; }
.mc-file-placeholder svg { width: 36px; height: 36px; }
.mc-pdf-name svg { width: 16px; height: 16px; }

/* Button icons */
.mc-btn-primary svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   ADMIN LOGIN CARD
   ============================================ */

.mc-login-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.mc-login-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.mc-login-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.mc-login-icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-white);
}

.mc-login-header h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.mc-login-header p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ============================================
   FORM COMPONENTS (Shared)
   ============================================ */

.mc-form-group {
  margin-bottom: var(--space-md);
}

.mc-form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.mc-form-group label .required {
  color: var(--accent-pink);
}

.mc-form-group input[type="text"],
.mc-form-group input[type="password"],
.mc-form-group input[type="email"],
.mc-form-group input[type="url"],
.mc-form-group input[type="date"],
.mc-form-group textarea,
.mc-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E5E5EA;
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  transition: all 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.mc-form-group input:focus,
.mc-form-group textarea:focus,
.mc-form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.mc-form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.mc-form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A4A68' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.mc-form-group input::placeholder,
.mc-form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Input with icon (login form) */
.mc-input-wrap {
  position: relative;
}

.mc-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  z-index: 1;
  pointer-events: none;
}

.mc-input-wrap input {
  padding-left: 44px !important;
}

/* Two-column form row */
.mc-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 380px) {
  .mc-form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* Checkbox */
.mc-form-row {
  margin-bottom: var(--space-md);
}

.mc-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.mc-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  border-radius: 4px;
  cursor: pointer;
}

/* Form error */
.mc-form-error {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-coral);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.mc-form-error svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================
   PRIMARY BUTTON
   ============================================ */

.mc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px var(--space-xl);
  background: var(--primary-gradient);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.mc-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.35);
  color: var(--text-white);
}

.mc-btn-primary:hover::before {
  opacity: 1;
}

.mc-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
}

.mc-btn-full {
  width: 100%;
}

.mc-btn-submit {
  margin-top: var(--space-md);
}

.mc-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Spinner */
.mc-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--text-white);
  border-radius: 50%;
  animation: mc-spin 0.7s linear infinite;
}

@keyframes mc-spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   LOGGED-IN USER CARD
   ============================================ */

.mc-user-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-md);
}

.mc-user-avatar img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  border: 3px solid var(--primary-light);
  object-fit: cover;
}

.mc-user-info {
  flex: 1;
  min-width: 0;
}

.mc-user-name {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
}

.mc-user-role {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--primary);
  text-transform: capitalize;
  background: rgba(108, 99, 255, 0.08);
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-xl);
  margin-top: 2px;
}

.mc-logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 107, 0.08);
  color: var(--accent-coral);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mc-logout-btn svg {
  width: 16px;
  height: 16px;
}

.mc-logout-btn:hover {
  background: rgba(255, 107, 107, 0.15);
  color: var(--accent-coral);
}

/* ============================================
   ADMIN PANEL
   ============================================ */

.mc-admin-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.mc-admin-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.mc-admin-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.mc-admin-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mc-admin-badge svg {
  width: 22px;
  height: 22px;
  color: var(--text-white);
}

.mc-admin-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
}

.mc-admin-subtitle {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 1px;
}

/* Admin Action Cards */
.mc-admin-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.mc-admin-action-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  border: 1.5px solid #E5E5EA;
}

.mc-admin-action-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.mc-action-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mc-action-icon svg {
  width: 20px;
  height: 20px;
}

.mc-action-notice .mc-action-icon {
  background: linear-gradient(135deg, #6C63FF15, #6C63FF25);
  color: var(--primary);
  border: 1px solid #6C63FF20;
}

.mc-action-event .mc-action-icon {
  background: linear-gradient(135deg, #FF6B8A15, #FF6B8A25);
  color: var(--accent-pink);
  border: 1px solid #FF6B8A20;
}

.mc-action-gallery .mc-action-icon {
  background: linear-gradient(135deg, #4ECB7115, #4ECB7125);
  color: var(--accent-green);
  border: 1px solid #4ECB7120;
}

.mc-action-notice:hover { border-color: var(--primary); }
.mc-action-event:hover { border-color: var(--accent-pink); }
.mc-action-gallery:hover { border-color: var(--accent-green); }

.mc-action-label {
  flex: 1;
  font-size: var(--font-size-base);
  font-weight: 600;
}

.mc-action-arrow {
  color: var(--text-muted);
  display: flex;
}

.mc-action-arrow svg {
  width: 18px;
  height: 18px;
}

/* Dashboard link */
.mc-admin-dashboard-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mc-admin-dashboard-link:hover {
  color: var(--primary);
}

/* ============================================
   UPLOAD FORM WRAPPER
   ============================================ */

.mc-upload-form-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.mc-upload-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.mc-upload-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.mc-upload-icon svg {
  width: 26px;
  height: 26px;
}

.mc-icon-notice {
  background: linear-gradient(135deg, #6C63FF, #8B83FF);
  color: var(--text-white);
}

.mc-icon-event {
  background: linear-gradient(135deg, #FF6B8A, #FF9BAF);
  color: var(--text-white);
}

.mc-icon-gallery {
  background: linear-gradient(135deg, #4ECB71, #7FE09A);
  color: var(--text-white);
}

.mc-upload-header h2 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.mc-upload-header p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ============================================
   FILE UPLOAD AREA
   ============================================ */

.mc-file-upload {
  position: relative;
  border: 2px dashed #D1D1D6;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-file-upload:hover {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.03);
}

.mc-file-upload.mc-file-upload-lg {
  min-height: 160px;
}

.mc-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.mc-file-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  color: var(--text-muted);
  pointer-events: none;
}

.mc-file-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.5;
}

.mc-file-placeholder span {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.mc-file-placeholder small {
  font-size: var(--font-size-xs);
  opacity: 0.7;
}

.mc-file-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-md);
}

.mc-file-upload.has-preview {
  border-style: solid;
  border-color: var(--primary);
}

.mc-file-upload.has-preview .mc-file-placeholder {
  display: none;
}

/* ============================================
   ACCESS DENIED
   ============================================ */

.mc-access-denied {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.mc-access-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(255, 107, 138, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.mc-access-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent-pink);
}

.mc-access-denied h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.mc-access-denied p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */

.mc-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  z-index: 9999;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-lg);
  max-width: calc(var(--app-max-width) - var(--space-xl));
  width: max-content;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.mc-toast.show {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mc-toast.mc-toast-success {
  background: var(--accent-green);
  color: var(--text-white);
}

.mc-toast.mc-toast-error {
  background: var(--accent-coral);
  color: var(--text-white);
}

.mc-toast svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   SUCCESS STATE (post-upload)
   ============================================ */

.mc-success-state {
  text-align: center;
  padding: var(--space-xl);
  animation: scaleIn 0.4s ease-out;
}

.mc-success-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(78, 203, 113, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.mc-success-icon svg {
  width: 36px;
  height: 36px;
  color: var(--accent-green);
}

.mc-success-state h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.mc-success-state p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.mc-success-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.mc-success-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mc-success-actions .mc-btn-view {
  background: var(--primary-gradient);
  color: var(--text-white);
}

.mc-success-actions .mc-btn-view:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--text-white);
}

.mc-success-actions .mc-btn-another {
  background: rgba(108, 99, 255, 0.08);
  color: var(--primary);
}

.mc-success-actions .mc-btn-another:hover {
  background: rgba(108, 99, 255, 0.15);
}

/* ============================================
   MULTI-IMAGE PREVIEW GRID
   ============================================ */

.mc-multi-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.mc-multi-preview:empty {
  display: none;
}

.mc-multi-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid #E5E5EA;
}

.mc-multi-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  border-radius: 0 !important;
}

.mc-multi-thumb .mc-thumb-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-white);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  padding: 2px;
  text-transform: uppercase;
}

.mc-multi-thumb:first-child {
  border-color: var(--primary);
}

.mc-multi-count {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.mc-multi-count svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   PDF FILE NAME INDICATOR
   ============================================ */

.mc-pdf-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--primary);
  margin-top: var(--space-sm);
  word-break: break-all;
}

.mc-pdf-name svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-coral);
}

.mc-file-upload-pdf.has-file {
  border-color: var(--primary);
  border-style: solid;
  background: rgba(108, 99, 255, 0.02);
}

.mc-file-upload-multi.has-files {
  border-color: var(--primary);
  border-style: solid;
}

/* ============================================
   FORM RENDERING INSIDE .single-content
   Reset aggressive page-content styles so
   that shortcode forms display correctly.
   ============================================ */

.single-content .mc-upload-form-wrap,
.single-content .mc-login-card,
.single-content .mc-admin-panel,
.single-content .mc-user-card,
.single-content .mc-access-denied {
  max-width: 100%;
}

.single-content .mc-upload-form-wrap p,
.single-content .mc-login-card p,
.single-content .mc-admin-panel p,
.single-content .mc-access-denied p {
  margin-bottom: var(--space-xs);
}

.single-content .mc-upload-form-wrap h2,
.single-content .mc-upload-form-wrap h3,
.single-content .mc-login-card h3,
.single-content .mc-admin-panel .mc-admin-title,
.single-content .mc-access-denied h3 {
  margin-bottom: var(--space-xs);
}

.single-content .mc-form-group label {
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.single-content .mc-upload-form-wrap img {
  margin: 0;
  border-radius: 0;
}

.single-content .mc-file-upload {
  margin: 0;
}

.single-content .mc-multi-thumb img {
  margin: 0 !important;
  border-radius: 0 !important;
}

/* Box sizing fix for all form elements */
.mc-upload-form *,
.mc-upload-form *::before,
.mc-upload-form *::after,
.mc-login-card *,
.mc-login-card *::before,
.mc-login-card *::after {
  box-sizing: border-box;
}

.mc-upload-form input,
.mc-upload-form textarea,
.mc-upload-form select,
.mc-upload-form button {
  font-family: inherit;
}

/* Remove any WordPress default form styling */
.mc-upload-form input[type="text"],
.mc-upload-form input[type="password"],
.mc-upload-form input[type="email"],
.mc-upload-form input[type="url"],
.mc-upload-form input[type="date"],
.mc-upload-form textarea,
.mc-upload-form select {
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  outline-offset: 0;
}

/* ============================================
   ENTRIES SECTION
   ============================================ */

.mc-entries-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.mc-entries-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #E5E5EA;
}

.mc-entries-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6C63FF15, #6C63FF25);
  color: var(--primary);
  border: 1px solid #6C63FF20;
}

.mc-entries-header-icon.mc-icon-event-bg {
  background: linear-gradient(135deg, #FF6B8A15, #FF6B8A25);
  color: var(--accent-pink);
  border-color: #FF6B8A20;
}

.mc-entries-header-icon.mc-icon-gallery-bg {
  background: linear-gradient(135deg, #4ECB7115, #4ECB7125);
  color: var(--accent-green);
  border-color: #4ECB7120;
}

.mc-entries-header-icon svg {
  width: 20px;
  height: 20px;
}

.mc-entries-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.mc-entries-count {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

/* ============================================
   TABLE STYLES FOR ENTRIES
   ============================================ */

.mc-table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--space-lg);
  max-height: 400px;
  overflow-y: auto;
  border-radius: var(--radius-sm);
  border: 1px solid #E5E5EA;
  background: var(--bg-card);
  scrollbar-width: thin;
  scrollbar-color: #D1D1D6 transparent;
}

.mc-table-responsive::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.mc-table-responsive::-webkit-scrollbar-thumb {
  background: #D1D1D6;
  border-radius: 4px;
}

.mc-entries-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
  background: var(--bg-card);
}

.mc-entries-table th,
.mc-entries-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid #E5E5EA;
  vertical-align: middle;
}

.mc-entries-table th {
  background: #F9F9FB;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mc-entries-table td {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}

.mc-entries-table tbody tr {
  transition: background 0.2s ease;
}

.mc-entries-table tbody tr:hover {
  background: rgba(108, 99, 255, 0.02);
}

.mc-entries-table tbody tr:last-child td {
  border-bottom: none;
}

.mc-entries-table td strong {
  display: block;
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

/* Badges specifically for tables */
.mc-table-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-xl);
  background: rgba(108, 99, 255, 0.08);
  color: var(--primary);
  margin-top: 4px;
  margin-right: 4px;
}

.mc-table-badge.mc-badge-urgent {
  background: rgba(255, 107, 107, 0.1);
  color: var(--accent-coral) !important;
}

.mc-table-badge.mc-badge-important {
  background: rgba(255, 159, 67, 0.1);
  color: #FF9F43 !important;
}

.mc-table-badge.mc-badge-pdf {
  background: rgba(255, 107, 107, 0.08);
  color: var(--accent-coral) !important;
}

.mc-table-badge.mc-badge-event {
  background: rgba(255, 107, 138, 0.08);
  color: var(--accent-pink) !important;
}

.mc-table-badge.mc-badge-gallery {
  background: rgba(78, 203, 113, 0.08);
  color: var(--accent-green) !important;
}

.mc-table-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid #E5E5EA;
  display: block;
}

.mc-table-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #F9F9FB;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #D1D1D6;
  font-size: 20px;
}

.mc-table-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.mc-btn-action {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mc-btn-action svg {
  width: 16px;
  height: 16px;
}

.mc-btn-action.mc-btn-edit {
  color: var(--primary);
}

.mc-btn-action.mc-btn-edit:hover {
  background: rgba(108, 99, 255, 0.1);
}

.mc-btn-action.mc-btn-delete {
  color: var(--accent-coral);
}

.mc-btn-action.mc-btn-delete:hover {
  background: rgba(255, 107, 107, 0.1);
}

/* Deleting Animation for Rows */
tr.mc-deleting {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.35s ease;
}

/* ============================================
   MODERN FORM ENHANCEMENTS
   ============================================ */

.mc-modern-form {
  position: relative;
  overflow: hidden;
}

.mc-form-gradient-bar {
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.mc-grad-notice {
  background: linear-gradient(90deg, #6C63FF, #8B83FF, #A78BFA);
}

.mc-grad-event {
  background: linear-gradient(90deg, #FF6B8A, #FF9BAF, #FFB7C5);
}

.mc-grad-gallery {
  background: linear-gradient(90deg, #4ECB71, #7FE09A, #A8E6CF);
}

/* Modern Drop Zone */
.mc-drop-zone {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.02), rgba(108, 99, 255, 0.04));
  border-image: none;
}

@keyframes mc-dash-rotate {
  to {
    background-position: 100% 100%;
  }
}

.mc-drop-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(108, 99, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
}

.mc-drop-icon svg {
  width: 24px;
  height: 24px;
  opacity: 0.6;
}

/* Glow Button */
.mc-btn-glow {
  position: relative;
  overflow: hidden;
}

.mc-btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mc-btn-glow:hover::after {
  opacity: 1;
}

/* Form Actions Row */
.mc-form-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  align-items: center;
}

.mc-btn-cancel {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  border: 1.5px solid #E5E5EA;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.mc-btn-cancel:hover {
  border-color: var(--accent-coral);
  color: var(--accent-coral);
  background: rgba(255, 107, 107, 0.05);
}

/* Form 2-column row */
.mc-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .mc-form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   DELETE CONFIRMATION DIALOG
   ============================================ */

.mc-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mc-fade-in 0.2s ease;
  padding: var(--space-lg);
}

.mc-confirm-dialog {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  max-width: 320px;
  width: 100%;
  text-align: center;
  animation: scaleIn 0.25s ease-out;
}

.mc-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(255, 107, 107, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.mc-confirm-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-coral);
}

.mc-confirm-dialog h4 {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.mc-confirm-dialog p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.mc-confirm-dialog .mc-confirm-title {
  font-weight: 600;
  color: var(--text-primary);
}

.mc-confirm-actions {
  display: flex;
  gap: var(--space-sm);
}

.mc-confirm-actions button {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.mc-confirm-cancel {
  background: #F2F2F7;
  color: var(--text-secondary);
}

.mc-confirm-cancel:hover {
  background: #E5E5EA;
}

.mc-confirm-delete {
  background: var(--accent-coral);
  color: var(--text-white);
}

.mc-confirm-delete:hover {
  background: #E05555;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

@keyframes mc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Edit mode highlight */
.mc-entry-row.mc-editing {
  background: rgba(108, 99, 255, 0.06);
  border-color: var(--primary);
}

/* ============================================
   FORM RENDERING INSIDE .single-content
   (extended for new elements)
   ============================================ */

.single-content .mc-entries-section {
  max-width: 100%;
}

.single-content .mc-entries-section h3 {
  margin-bottom: 0;
}

.single-content .mc-entries-section p {
  margin-bottom: 0;
}

.single-content .mc-entry-thumb img {
  margin: 0 !important;
  border-radius: var(--radius-sm) !important;
}
