 /* CSS Variables for Theme Management */
 :root {
     /* Light Theme */
     --bg-primary: #ffffff;
     --bg-secondary: #f8fafc;
     --bg-tertiary: #f1f5f9;
     --text-primary: #1e293b;
     --text-secondary: #475569;
     --text-muted: #64748b;
     --border-color: #e2e8f0;
     --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
     --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
     --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
     --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

     /* Brand Colors */
     --primary: #3b82f6;
     --primary-dark: #2563eb;
     --primary-light: #93c5fd;
     --secondary: #64748b;
     --success: #10b981;
     --info: #06b6d4;
     --warning: #f59e0b;
     --danger: #ef4444;

     /* Component Specific */
     --card-bg: var(--bg-primary);
     --btn-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
     --btn-shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
 }

 [data-theme="dark"] {
     --bg-primary: #0f172a;
     --bg-secondary: #1e293b;
     --bg-tertiary: #334155;
     --text-primary: #f1f5f9;
     --text-secondary: #cbd5e1;
     --text-muted: #94a3b8;
     --border-color: #334155;
     --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
     --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
     --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
     --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.15);

     --card-bg: var(--bg-secondary);
     --btn-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
     --btn-shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
 }

 /* Base Styles */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
     line-height: 1.6;
     color: var(--text-primary);
     background-color: var(--bg-primary);
     transition: background-color 0.3s ease, color 0.3s ease;
 }

 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 2rem;
 }

 /* Theme Toggle */
 .theme-toggle {
     position: fixed;
     top: 1rem;
     right: 1rem;
     background: var(--primary);
     color: white;
     border: none;
     border-radius: 8px;
     padding: 0.5rem;
     cursor: pointer;
     box-shadow: var(--shadow-lg);
     z-index: 1000;
     transition: transform 0.2s ease;
 }

 .theme-toggle:hover {
     transform: scale(1.05);
 }

 /* Typography */
 .title-xl {
     font-size: 3rem;
     font-weight: 800;
     line-height: 1.1;
     margin-bottom: 1rem;
 }

 .title-lg {
     font-size: 2.25rem;
     font-weight: 700;
     line-height: 1.2;
     margin-bottom: 1rem;
 }

 .title-md {
     font-size: 1.875rem;
     font-weight: 600;
     line-height: 1.3;
     margin-bottom: 0.75rem;
 }

 .title-sm {
     font-size: 1.5rem;
     font-weight: 600;
     line-height: 1.4;
     margin-bottom: 0.5rem;
 }

 .text-lg {
     font-size: 1.125rem;
 }

 .text-sm {
     font-size: 0.875rem;
 }

 .text-xs {
     font-size: 0.75rem;
 }

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

 .text-secondary {
     color: var(--text-secondary);
 }

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

 /* Cards */
 .card {
     background: var(--card-bg);
     border-radius: 12px;
     border: 1px solid var(--border-color);
     box-shadow: var(--shadow-md);
     margin-bottom: 2rem;
     overflow: hidden;
     transition: all 0.3s ease;
 }

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

 .card-header {
     background: var(--bg-secondary);
     padding: 1.5rem;
     border-bottom: 1px solid var(--border-color);
     font-weight: 600;
     font-size: 1.125rem;
 }

 .card-content {
     padding: 1.5rem;
 }

 /* Red Carpet Button System */
 .rc-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 0.75rem 1.5rem;
     font-size: 0.875rem;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.025em;
     border: none;
     border-radius: 8px;
     cursor: pointer;
     text-decoration: none;
     position: relative;
     overflow: hidden;
     transition: all 0.2s ease;
     box-shadow: var(--btn-shadow);
     min-height: 44px;
 }

 .rc-btn:hover {
     box-shadow: var(--btn-shadow-hover);
     transform: translateY(-1px);
 }

 .rc-btn:active {
     transform: translateY(0);
     box-shadow: var(--shadow-sm);
 }

 /* Button Variants */
 .rc-btn-primary {
     background: var(--primary);
     color: white;
 }

 .rc-btn-primary:hover {
     background: var(--primary-dark);
 }

 .rc-btn-secondary {
     background: var(--secondary);
     color: white;
 }

 .rc-btn-success {
     background: var(--success);
     color: white;
 }

 .rc-btn-info {
     background: var(--info);
     color: white;
 }

 .rc-btn-warning {
     background: var(--warning);
     color: white;
 }

 .rc-btn-danger {
     background: var(--danger);
     color: white;
 }

 /* Flat Buttons */
 .rc-btn-flat {
     background: transparent;
     box-shadow: none;
     color: var(--text-primary);
     border: 1px solid var(--border-color);
 }

 .rc-btn-flat:hover {
     background: var(--bg-secondary);
     box-shadow: var(--shadow-sm);
 }

 .rc-btn-flat.rc-btn-primary {
     color: var(--primary);
     border-color: var(--primary-light);
 }

 .rc-btn-flat.rc-btn-primary:hover {
     background: var(--primary);
     color: white;
 }

 /* Button Sizes */
 .rc-btn-sm {
     padding: 0.5rem 1rem;
     font-size: 0.75rem;
 }

 .rc-btn-lg {
     padding: 1rem 2rem;
     font-size: 1rem;
 }

 .rc-btn-block {
     width: 100%;
 }

 /* Ripple Effect */
 .rc-btn-ripple {
     position: relative;
 }

 .rc-ripple {
     position: absolute;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.6);
     transform: scale(0);
     animation: ripple 0.6s linear;
 }

 [data-theme="dark"] .rc-ripple {
     background: rgba(255, 255, 255, 0.3);
 }

 @keyframes ripple {
     to {
         transform: scale(2.5);
         opacity: 0;
     }
 }

 /* Loader Component */
 .rc-loader {
     display: inline-block;
     position: relative;
 }

 .rc-circular {
     animation: rotate 2s linear infinite;
     width: 20px;
     height: 20px;
 }

 .rc-path {
     stroke: currentColor;
     stroke-dasharray: 1, 200;
     stroke-dashoffset: 0;
     animation: dash 1.5s ease-in-out infinite;
     stroke-linecap: round;
     stroke-width: 2;
     fill: none;
 }

 @keyframes rotate {
     100% {
         transform: rotate(360deg);
     }
 }

 @keyframes dash {
     0% {
         stroke-dasharray: 1, 200;
         stroke-dashoffset: 0;
     }

     50% {
         stroke-dasharray: 89, 200;
         stroke-dashoffset: -35px;
     }

     100% {
         stroke-dasharray: 89, 200;
         stroke-dashoffset: -124px;
     }
 }

 /* Grid System */
 .grid {
     display: grid;
     gap: 1rem;
 }

 .grid-2 {
     grid-template-columns: repeat(2, 1fr);
 }

 .grid-3 {
     grid-template-columns: repeat(3, 1fr);
 }

 .grid-4 {
     grid-template-columns: repeat(4, 1fr);
 }

 @media (max-width: 768px) {

     .grid-2,
     .grid-3,
     .grid-4 {
         grid-template-columns: 1fr;
     }
 }

 /* Spacing Utilities */
 .mb-1 {
     margin-bottom: 0.25rem;
 }

 .mb-2 {
     margin-bottom: 0.5rem;
 }

 .mb-3 {
     margin-bottom: 0.75rem;
 }

 .mb-4 {
     margin-bottom: 1rem;
 }

 .mb-6 {
     margin-bottom: 1.5rem;
 }

 .mb-8 {
     margin-bottom: 2rem;
 }

 .mr-2 {
     margin-right: 0.5rem;
 }

 .mr-4 {
     margin-right: 1rem;
 }

 /* Code Examples */
 .code-example {
     background: var(--bg-tertiary);
     border: 1px solid var(--border-color);
     border-radius: 8px;
     overflow: hidden;
     margin: 1rem 0;
 }

 .code-preview {
     padding: 2rem;
     border-bottom: 1px solid var(--border-color);
 }

 .code-snippet {
     background: #1e293b;
     color: #cbd5e1;
     padding: 1rem;
     overflow-x: auto;
     font-family: 'Monaco', 'Consolas', monospace;
     font-size: 0.875rem;
     line-height: 1.4;
 }

 /* Navigation */
 .nav {
     position: sticky;
     top: 0;
     background: var(--card-bg);
     border-bottom: 1px solid var(--border-color);
     padding: 1rem 0;
     margin: 0 -2rem 2rem -2rem;
     backdrop-filter: blur(10px);
     box-shadow: var(--shadow-md);
     z-index: 100;
 }

 .nav-content {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem;
 }

 .nav-list {
     display: flex;
     list-style: none;
     gap: 2rem;
     align-items: center;
 }

 .nav-link {
     color: var(--text-secondary);
     text-decoration: none;
     font-weight: 500;
     transition: color 0.2s ease;
 }

 .nav-link:hover,
 .nav-link.active {
     color: var(--primary);
 }

 /* Component Gallery */
 .component-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 1.5rem;
     margin: 2rem 0;
 }

 .demo-buttons {
     display: flex;
     flex-wrap: wrap;
     gap: 0.75rem;
     margin: 1rem 0;
 }

 /* Responsive */
 @media (max-width: 768px) {
     .container {
         padding: 1rem;
     }

     .demo-buttons {
         flex-direction: column;
     }

     .demo-buttons .rc-btn {
         justify-content: center;
     }
 }