انتقل إلى المحتوى

الفرق بين المراجعتين لصفحة: «ميدياويكي:Common.css»

من موسوعة زيارة الاربعين
لا ملخص تعديل
لا ملخص تعديل
سطر ١: سطر ١:
/* ===========================================================================
/* Modern Wiki Redesign - Calm & Trendy */
  PROFESSIONAL FORMAL TIMELESS WIKI DESIGN
  =========================================================================== */
    /* Category Section Styles */
        .mw-category-generated {
          display: none;
}
       
        .wiki-container {
            max-width: 1200px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
 
        .wiki-header {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
            padding: 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
 
        .wiki-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
            opacity: 0.3;
        }
 
        .wiki-title {
            font-size: 2.5em;
            font-weight: 700;
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
        }
 
        .wiki-subtitle {
            font-size: 1.2em;
            opacity: 0.9;
            position: relative;
            z-index: 1;
        }
 
        .wiki-content {
            display: flex;
            min-height: 600px;
        }
 
        .sidebar {
            width: 300px;
            background: #f8f9fa;
            border-right: 1px solid #e9ecef;
            padding: 20px;
        }
 
        .sidebar h3 {
            color: #495057;
            margin-bottom: 15px;
            font-size: 1.1em;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 2px solid #007bff;
            padding-bottom: 5px;
        }
 
        .category-item {
            display: inline-block;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            padding: 5px 12px;
            margin: 3px;
            border-radius: 15px;
            font-size: 0.9em;
            text-decoration: none;
            transition: all 0.3s ease;
        }
 
        .category-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }
 
        .toc {
            margin-top: 30px;
        }
 
        .toc ul {
            list-style: none;
            padding-left: 0;
        }
 
        .toc li {
            margin: 8px 0;
            padding-left: 20px;
            position: relative;
        }
 
        .toc li::before {
            content: '▶';
            position: absolute;
            left: 0;
            color: #007bff;
            font-size: 0.8em;
        }
 
        .toc a {
            color: #495057;
            text-decoration: none;
            transition: color 0.3s ease;
        }
 
        .toc a:hover {
            color: #007bff;
        }
 
        .main-content {
            flex: 1;
            padding: 30px;
        }
 
        .infobox {
            float: right;
            width: 300px;
            margin: 0 0 20px 20px;
            background: linear-gradient(145deg, #ffffff, #f0f0f0);
            border: 1px solid #ddd;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
 
        .infobox h4 {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            margin: -20px -20px 15px -20px;
            padding: 15px 20px;
            border-radius: 15px 15px 0 0;
            font-size: 1.1em;
        }
 
        .infobox table {
            width: 100%;
            border-collapse: collapse;
        }
 
        .infobox td {
            padding: 8px;
            border-bottom: 1px solid #eee;
        }
 
        .infobox td:first-child {
            font-weight: bold;
            color: #495057;
            width: 35%;
        }
 
        .section {
            margin-bottom: 40px;
        }
 
        .section h2 {
            color: #2c3e50;
            font-size: 1.8em;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 3px solid #007bff;
            position: relative;
        }
 
        .section h2::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(45deg, #667eea, #764ba2);
        }
 
        .section h3 {
            color: #34495e;
            font-size: 1.4em;
            margin: 25px 0 15px 0;
            padding-left: 15px;
            border-left: 4px solid #007bff;
        }
 
        .section p {
            margin-bottom: 15px;
            text-align: justify;
            line-height: 1.8;
        }
 
        .highlight-box {
            background: linear-gradient(135deg, #667eea20, #764ba220);
            border-left: 4px solid #667eea;
            padding: 20px;
            margin: 20px 0;
            border-radius: 0 10px 10px 0;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
        }


        .image-gallery {
/* Root Variables - Calm Color Palette */
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }
 
        .image-item {
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }
 
        .image-item:hover {
            transform: scale(1.05);
        }
 
        .image-item img {
            width: 100%;
            height: 150px;
            object-fit: cover;
        }
 
        .image-caption {
            padding: 10px;
            background: #f8f9fa;
            font-size: 0.9em;
            text-align: center;
        }
 
        .references {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-top: 30px;
        }
 
        .references h3 {
            margin-bottom: 15px;
            color: #495057;
        }
 
        .references ol {
            padding-left: 20px;
        }
 
        .references li {
            margin: 10px 0;
            line-height: 1.6;
        }
 
        .footer {
            background: #343a40;
            color: white;
            padding: 20px;
            text-align: center;
        }
 
        .edit-button {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            font-size: 1.5em;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
            transition: all 0.3s ease;
        }
 
        .edit-button:hover {
            transform: scale(1.1);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.6);
        }
 
        @media (max-width: 768px) {
            .wiki-content {
                flex-direction: column;
            }
           
            .sidebar {
                width: 100%;
                border-right: none;
                border-bottom: 1px solid #e9ecef;
            }
           
            .infobox {
                float: none;
                width: 100%;
                margin: 20px 0;
            }
        }
        .mw-category-generated h2 {
            color: #2d3748;
            font-size: 1.6em;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e2e8f0;
            font-weight: 300;
            text-align: center;
        }
       
        .mw-category-generated p {
            color: #718096;
            font-size: 1em;
            margin-bottom: 20px;
            text-align: center;
            line-height: 1.6;
        }
       
        /* Category Groups */
        .mw-category {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }
       
        .mw-category-group {
            background: white;
            border-radius: 10px;
            border: 1px solid #e2e8f0;
            overflow: hidden;
            transition: all 0.3s ease;
        }
       
        .category-header {
            background: #f0f9ff;
            padding: 15px;
            border-bottom: 1px solid #e2e8f0;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }
       
        .category-header:hover {
            background: #e0f2fe;
        }
       
        .category-header h3 {
            font-size: 1.3em;
            color: #1e40af;
            font-weight: 400;
            margin: 0;
        }
       
        .category-arrow {
            font-size: 1em;
            color: #64748b;
            transition: transform 0.3s ease;
        }
       
        .category-arrow.expanded {
            transform: rotate(180deg);
        }
       
        .category-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease;
        }
       
        .category-content.expanded {
            max-height: 500px;
        }
       
        .mw-category-group ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
       
        .mw-category-group li {
            padding: 12px 18px;
            border-bottom: 1px solid #f1f5f9;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
       
        .mw-category-group li:last-child {
            border-bottom: none;
        }
       
        .mw-category-group li:hover {
            background: #f8fafc;
        }
       
        /* Links */
        a {
            color: #3b82f6;
            text-decoration: none;
            font-weight: 400;
            transition: color 0.3s ease;
        }
       
        a:hover {
            color: #1d4ed8;
        }
       
        /* Category Tree Styles */
        .CategoryTreeSection {
            width: 100%;
        }
       
        .CategoryTreeItem {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
        }
       
        .CategoryTreeToggle {
            width: 24px;
            height: 24px;
            background: #dbeafe;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #1e40af;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9em;
            font-weight: 500;
        }
       
        .CategoryTreeToggle:hover {
            background: #bfdbfe;
        }
       
        .CategoryTreeEmptyBullet {
            width: 8px;
            height: 8px;
            background: #cbd5e1;
            border-radius: 50%;
            display: inline-block;
        }
       
        /* Page count styling */
        span[title] {
            background: #f1f5f9;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.85em;
            color: #64748b;
            border: 1px solid #e2e8f0;
        }
       
        /* Pages Section */
        #mw-pages {
            background: #fffbf5;
            border-radius: 10px;
            padding: 20px;
            margin-top: 25px;
            border: 1px solid #fde68a;
        }
       
        #mw-pages h2 {
            color: #92400e;
            font-size: 1.6em;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #fde68a;
            font-weight: 300;
            text-align: center;
        }
       
        #mw-pages .mw-category-group {
            border-color: #fde68a;
        }
       
        #mw-pages .category-header {
            background: #fef3c7;
            border-bottom-color: #fde68a;
        }
       
        #mw-pages .category-header:hover {
            background: #fed7aa;
        }
       
        #mw-pages .category-header h3 {
            color: #92400e;
        }
       
        #mw-pages a {
            color: #d97706;
        }
       
        #mw-pages a:hover {
            color: #92400e;
        }
       
        /* Responsive Design */
        @media (max-width: 768px) {
            .wiki-container {
                margin: 15px;
                padding: 20px;
                border-radius: 12px;
            }
           
            .wiki-header {
                padding: 30px 20px;
                margin-bottom: 30px;
            }
           
            .wiki-title {
                font-size: 2.2em;
            }
           
            .mw-category-generated,
            #mw-pages {
                padding: 20px;
            }
           
            .mw-category {
                grid-template-columns: 1fr;
                gap: 20px;
            }
           
            .category-header {
                padding: 15px;
            }
           
            .mw-category-group li {
                padding: 15px 20px;
            }
        }
       
        /* Focus styles for accessibility */
        a:focus,
        .CategoryTreeToggle:focus,
        .category-header:focus {
            outline: 2px solid #3b82f6;
            outline-offset: 2px;
        }
       
        /* Smooth transitions */
        .category-header,
        .mw-category-group li,
        .CategoryTreeToggle {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
/* CSS Variables for Professional Color Palette */
:root {
:root {
  /* Professional Primary Colors */
   --primary-bg: #f8fafc;
   --primary: #2563eb;
   --secondary-bg: #ffffff;
  --primary-light: #3b82f6;
   --accent-bg: #e2e8f0;
  --primary-dark: #1d4ed8;
   --sidebar-bg: #f1f5f9;
 
  /* Professional Secondary Colors */
   --secondary: #64748b;
  --secondary-light: #94a3b8;
  --secondary-dark: #475569;
 
  /* Professional Neutral Colors */
  --bg-primary: #ffffff;
   --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
 
  /* Professional Border Colors */
  --border-primary: #e2e8f0;
   --border-secondary: #cbd5e1;
  --border-accent: #2563eb;
 
  /* Professional Text Colors */
   --text-primary: #1e293b;
   --text-primary: #1e293b;
   --text-secondary: #475569;
   --text-secondary: #64748b;
   --text-muted: #64748b;
   --text-muted: #94a3b8;
   --text-inverse: #ffffff;
   --border-color: #e2e8f0;
 
   --hover-bg: #f1f5f9;
  /* Professional Accent Colors */
   --accent-color: #3b82f6;
   --accent-blue: #0ea5e9;
   --accent-hover: #2563eb;
   --accent-success: #059669;
   --success-color: #10b981;
   --accent-warning: #d97706;
   --warning-color: #f59e0b;
   --accent-error: #dc2626;
 
  /* Professional Typography */
   --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-secondary: Georgia, 'Times New Roman', serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
 
  /* Professional Spacing System */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
 
  /* Professional Shadows */
   --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
   --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-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-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
 
   --radius-sm: 0.375rem;
  /* Professional Border Radius */
   --radius-md: 0.5rem;
   --radius-sm: 0.25rem;
   --radius-lg: 0.75rem;
   --radius-md: 0.375rem;
   --radius-lg: 0.5rem;
 
  /* Professional Transitions */
  --transition: 0.2s ease-in-out;
}
}


/* ===========================================================================
/* Base Styles */
  GLOBAL RESET & BASE STYLES
  =========================================================================== */
 
* {
* {
    box-sizing: border-box;
  box-sizing: border-box;
    margin: 0;
    padding: 4px !important;
 
}
 
  .menu-container {
            max-width: 600px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }
 
        h1 {
            text-align: center;
            color: #333;
            margin-bottom: 30px;
            font-size: 2.5em;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }
 
        .menu-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
 
        .menu-item {
            margin-bottom: 10px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease;
        }
 
        .menu-item:hover {
            transform: translateY(-3px);
        }
 
        .menu-toggle {
            display: none;
        }
 
        .menu-label {
            display: block;
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
            padding: 18px 25px;
            cursor: pointer;
            position: relative;
            font-size: 1.1em;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            outline: none;
        }
 
        .menu-label:hover {
            background: linear-gradient(135deg, #43a3f5 0%, #00e8f5 100%);
            transform: scale(1.02);
        }
 
        .menu-label:after {
            content: '▼';
            position: absolute;
            left: 25px;
            top: 50%;
            transform: translateY(-50%);
            transition: transform 0.3s ease;
            font-size: 0.9em;
        }
 
        .menu-toggle:checked + .menu-label:after {
            transform: translateY(-50%) rotate(180deg);
        }
 
        .submenu {
            background: #f8f9fa;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, padding 0.4s ease;
            padding: 0 25px;
        }
 
        .menu-toggle:checked ~ .submenu {
            max-height: 300px;
            padding: 20px 25px;
        }
 
        .submenu li {
            list-style: none;
            padding: 12px 0;
            border-bottom: 1px solid #e9ecef;
            position: relative;
            padding-right: 30px;
            transition: all 0.3s ease;
        }
 
        .submenu li:last-child {
            border-bottom: none;
        }
 
        .submenu li:before {
            content: '●';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            color: #007bff;
            font-size: 1.2em;
        }
 
        .submenu li:hover {
            background: rgba(0, 123, 255, 0.1);
            padding-right: 35px;
            border-radius: 8px;
        }
 
        .submenu li a {
            color: #333;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }
 
        .submenu li:hover a {
            color: #007bff;
        }
 
        /* تأثيرات إضافية */
        .menu-item:nth-child(1) .menu-label {
            background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
        }
 
        .menu-item:nth-child(1) .menu-label:hover {
            background: linear-gradient(135deg, #ff5252 0%, #ff9800 100%);
        }
 
        .menu-item:nth-child(2) .menu-label {
            background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
        }
 
        .menu-item:nth-child(2) .menu-label:hover {
            background: linear-gradient(135deg, #26c6da 0%, #2e8b57 100%);
        }
 
        .menu-item:nth-child(3) .menu-label {
            background: linear-gradient(135deg, #a8e6cf 0%, #7fcdcd 100%);
        }
 
        .menu-item:nth-child(3) .menu-label:hover {
            background: linear-gradient(135deg, #81c784 0%, #4dd0e1 100%);
        }
 
        .menu-item:nth-child(4) .menu-label {
            background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 100%);
        }
 
        .menu-item:nth-child(4) .menu-label:hover {
            background: linear-gradient(135deg, #ffcd02 0%, #ff5252 100%);
        }
 
        /* أنيميشن للظهور */
        .menu-item {
            animation: fadeInUp 0.6s ease forwards;
            opacity: 0;
            transform: translateY(20px);
        }
 
        .menu-item:nth-child(1) { animation-delay: 0.1s; }
        .menu-item:nth-child(2) { animation-delay: 0.2s; }
        .menu-item:nth-child(3) { animation-delay: 0.3s; }
        .menu-item:nth-child(4) { animation-delay: 0.4s; }
 
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
 
        /* استجابة للأجهزة المحمولة */
        @media (max-width: 768px) {
            .menu-container {
                margin: 10px;
                padding: 20px;
            }
           
            .menu-label {
                padding: 15px 20px;
                font-size: 1em;
            }
           
            h1 {
                font-size: 2em;
            }
        }
      .table-container {
            padding: 20px;
            overflow-x: auto;
        }
       
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            font-size: 14px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
       
        th {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
            color: #2c3e50;
            padding: 20px 15px;
            text-align: center;
            font-weight: bold;
            font-size: 16px;
            text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
        }
       
        td {
            padding: 15px;
            border-bottom: 1px solid #f0f0f0;
            vertical-align: top;
            transition: all 0.3s ease;
        }
       
        tr:hover td {
            background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
            transform: scale(1.02);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
       
        .section-basic {
            background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
        }
        #bodyContentOuter{
            overflow-x: auto;
    border-top: 4px solid #bb8960;
    border-radius: 15px 5px;
    box-shadow: 6px -3px 10px rgba(0, 0, 0, 0.1);
    margin: 8px;
    padding: 9px 20px !important;
        }
        .section-colors {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
        }
       
        .section-links {
            background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
        }
       
        .section-user {
            background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
        }
       
        .section-mobile {
            background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
        }
       
        .section-animations {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
       
        .code-sample {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 10px;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            color: #495057;
            margin: 5px 0;
            white-space: pre-wrap;
            word-wrap: break-word;
            max-width: 300px;
        }
       
        .feature-tag {
            background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
            color: #2c3e50;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            display: inline-block;
            margin: 2px;
            text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
        }
       
        .color-indicator {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: inline-block;
            margin-left: 10px;
            border: 2px solid #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
       
        .color-green { background: #28a745; }
        .color-blue { background: #007bff; }
        .color-yellow { background: #ffc107; }
        .color-red { background: #dc3545; }
        .color-purple { background: #6f42c1; }
       
        .responsive-note {
            background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
            padding: 15px;
            border-radius: 10px;
            margin: 20px 0;
            text-align: center;
            color: #2c3e50;
            font-weight: bold;
        }
       
        @media (max-width: 768px) {
            .header h1 {
                font-size: 1.8em;
            }
           
            table {
                font-size: 12px;
            }
           
            th, td {
                padding: 10px 8px;
            }
           
            .code-sample {
                font-size: 10px;
                max-width: 200px;
            }
        }
html {
  font-size: 16px;
  line-height: 1.5;
}
}


body {
body {
   font-family: var(--font-primary);
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
   font-size: 1rem;
  background: var(--primary-bg);
   color: var(--text-primary);
   line-height: 1.6;
   line-height: 1.6;
  color: var(--text-primary);
   margin: 0;
  background-color: var(--bg-secondary);
   padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
 
/* ===========================================================================
  PROFESSIONAL TYPOGRAPHY
  =========================================================================== */
 
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
   margin-bottom: var(--space-4);
}
 
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-6);
  letter-spacing: -0.025em;
}
 
h2 {
  font-size: 1.875rem;
  color: var(--primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-5);
   padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border-primary);
}
 
h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: var(--space-6);
}
}


h4 {
/* Container Redesign */
  font-size: 1.25rem;
.mw-page-container {
  color: var(--text-primary);
   max-width: 1400px;
  margin-top: var(--space-5);
}
 
h5 {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-top: var(--space-4);
}
 
h6 {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: var(--space-4);
}
 
p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: 1.7;
}
 
/* ===========================================================================
  PROFESSIONAL LAYOUT
  =========================================================================== */
 
.mw-body-container {
   max-width: 1200px;
   margin: 0 auto;
   margin: 0 auto;
   padding: var(--space-6);
   background: var(--secondary-bg);
}
   box-shadow: var(--shadow-lg);
 
.mw-body {
   background: var(--bg-primary);
  border: 1px solid var(--border-primary);
   border-radius: var(--radius-lg);
   border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
   overflow: hidden;
   overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
}
}


.mw-content-container {
.mw-page-container-inner {
   padding: var(--space-8);
   display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - 40px);
  gap: 0;
}
}


.mw-content {
/* Header Redesign */
   max-width: 100%;
.mw-body-header {
   font-size: 1rem;
   background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-bg) 100%);
   line-height: 1.7;
   padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border-color);
   grid-column: 1 / -1;
}
}


/* ===========================================================================
.firstHeading {
  PROFESSIONAL HEADER
  font-size: 2.5rem;
  =========================================================================== */
  font-weight: 700;
 
   color: var(--text-primary);
.mw-header {
   margin: 0 0 0.5rem 0;
   background: var(--bg-primary);
  text-align: center;
   border-bottom: 1px solid var(--border-primary);
  background: linear-gradient(135deg, var(--accent-color), var(--success-color));
  padding: var(--space-4) 0;
   -webkit-background-clip: text;
   position: sticky;
   -webkit-text-fill-color: transparent;
   top: 0;
   background-clip: text;
  z-index: 100;
   backdrop-filter: blur(8px);
}
}


.mw-header-container {
.mw-page-title-separator {
   max-width: 1200px;
   color: var(--text-muted);
  margin: 0 auto;
   margin: 0 0.5rem;
  padding: 0 var(--space-6);
   display: flex;
  align-items: center;
  justify-content: space-between;
}
}


.mw-logo {
/* Sidebar Redesign */
   font-size: 1.5rem;
.vector-column-start {
   font-weight: 700;
   background: var(--sidebar-bg);
  color: var(--primary);
  padding: 1.5rem;
   text-decoration: none;
   border-right: 1px solid var(--border-color);
  transition: var(--transition);
   grid-row: 2 / -1;
}
}


.mw-logo:hover {
.vector-main-menu {
   color: var(--primary-light);
   background: transparent;
}
}


/* ===========================================================================
.vector-pinnable-header {
  PROFESSIONAL NAVIGATION
   background: var(--accent-color);
  =========================================================================== */
   color: white;
 
  padding: 0.75rem 1rem;
.mw-portlet {
   background: var(--bg-primary);
   border: 1px solid var(--border-primary);
   border-radius: var(--radius-md);
   border-radius: var(--radius-md);
   margin-bottom: var(--space-4);
   margin-bottom: 1rem;
  overflow: hidden;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
}


.mw-portlet-head {
.vector-pinnable-header-label {
   background: var(--bg-tertiary);
   font-size: 0.9rem;
  color: var(--text-primary);
  padding: var(--space-3) var(--space-4);
   font-weight: 600;
   font-weight: 600;
  font-size: 0.875rem;
   text-transform: uppercase;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-primary);
}
.mw-portlet-body {
  padding: var(--space-2);
}
}


.mw-portlet-body ul {
.vector-menu-content-list {
   list-style: none;
   list-style: none;
  padding: 0;
  margin: 0;
}
}


.mw-portlet-body li {
.vector-menu-content-list li {
   margin: 0;
   margin: 0.25rem 0;
}
}


.mw-portlet-body a {
.vector-menu-content-list a {
   display: block;
   display: block;
   padding: var(--space-2) var(--space-4);
   padding: 0.75rem 1rem;
   color: var(--text-secondary);
   color: var(--text-secondary);
   text-decoration: none;
   text-decoration: none;
   border-radius: var(--radius-sm);
   border-radius: var(--radius-sm);
   transition: var(--transition);
   transition: all 0.2s ease;
   font-size: 0.9375rem;
   font-weight: 500;
}
}


.mw-portlet-body a:hover {
.vector-menu-content-list a:hover {
   background: var(--surface-hover);
   background: var(--hover-bg);
   color: var(--primary);
   color: var(--accent-color);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
}


.mw-portlet-body a:active,
/* Navigation Buttons */
.mw-portlet-body a.active {
.vector-pinnable-header-toggle-button {
   background: var(--primary);
   background: rgba(255, 255, 255, 0.2);
   color: var(--text-inverse);
  border: none;
   color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
}


/* ===========================================================================
.vector-pinnable-header-toggle-button:hover {
  PROFESSIONAL LINKS
   background: rgba(255, 255, 255, 0.3);
  =========================================================================== */
 
a {
  color: var(--primary);
  text-decoration: none;
   transition: var(--transition);
}
}


a:hover {
/* Main Content Area */
   color: var(--primary-light);
.mw-content-container {
   text-decoration: underline;
   grid-column: 2;
  grid-row: 2;
  display: flex;
   flex-direction: column;
}
}


a:visited {
.mw-body {
   color: var(--primary-dark);
  flex: 1;
  padding: 2rem;
   background: var(--secondary-bg);
}
}


/* External links */
/* Content Styling */
a.external::after {
.mw-body-content {
   content: ' ↗';
   max-width: 800px;
   font-size: 0.75em;
   margin: 0 auto;
   color: var(--text-muted);
   line-height: 1.8;
  margin-left: 0.25em;
}
}


/* ===========================================================================
.mw-parser-output p {
  PROFESSIONAL TABLES
   margin: 1.5rem 0;
  =========================================================================== */
   color: var(--text-primary);
 
   font-size: 1.1rem;
table {
  width: 100%;
  border-collapse: collapse;
   margin: var(--space-6) 0;
   background: var(--bg-primary);
   border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}
}


th {
.mw-parser-output h2 {
  background: var(--bg-tertiary);
   color: var(--text-primary);
   color: var(--text-primary);
   padding: var(--space-3) var(--space-4);
   font-size: 1.8rem;
  text-align: left;
   font-weight: 700;
   font-weight: 600;
   margin: 2rem 0 1rem 0;
   font-size: 0.875rem;
   padding-bottom: 0.5rem;
   text-transform: uppercase;
   border-bottom: 2px solid var(--accent-color);
  letter-spacing: 0.05em;
  position: relative;
   border-bottom: 1px solid var(--border-primary);
}
}


td {
.mw-parser-output h2::after {
   padding: var(--space-3) var(--space-4);
   content: '';
   border-bottom: 1px solid var(--border-primary);
  position: absolute;
   color: var(--text-secondary);
   bottom: -2px;
  vertical-align: top;
  left: 0;
  width: 50px;
  height: 2px;
   background: var(--success-color);
}
}


tr:hover {
/* Arabic Text Enhancement */
   background: var(--surface-hover);
.mw-content-rtl {
   direction: rtl;
  text-align: right;
}
}


tr:last-child td {
.mw-content-rtl h2 {
   border-bottom: none;
   border-bottom: 2px solid var(--accent-color);
}
}


/* ===========================================================================
.mw-content-rtl h2::after {
  PROFESSIONAL FORMS
   right: 0;
  =========================================================================== */
   left: auto;
 
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
   color: var(--text-primary);
   background: var(--bg-primary);
  transition: var(--transition);
}
}


input[type="text"]:focus,
/* Toolbar Redesign */
input[type="search"]:focus,
.vector-page-toolbar {
input[type="email"]:focus,
  background: var(--accent-bg);
input[type="password"]:focus,
   padding: 1rem 2rem;
textarea:focus,
   border-bottom: 1px solid var(--border-color);
select:focus {
   outline: none;
   border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
}


button,
.vector-menu-tabs {
input[type="submit"],
   display: flex;
.mw-ui-button {
   gap: 0.5rem;
   padding: var(--space-3) var(--space-6);
   background: transparent;
  background: var(--primary);
  color: var(--text-inverse);
   border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
   font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
}


button:hover,
.vector-menu-tabs a {
input[type="submit"]:hover,
  padding: 0.5rem 1rem;
.mw-ui-button:hover {
  background: var(--secondary-bg);
   background: var(--primary-light);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-weight: 500;
   border: 1px solid var(--border-color);
}
}


button:active,
.vector-menu-tabs a:hover {
input[type="submit"]:active,
  background: var(--accent-color);
.mw-ui-button:active {
  color: white;
   background: var(--primary-dark);
  transform: translateY(-2px);
   box-shadow: var(--shadow-md);
}
}


/* Secondary button style */
.vector-menu-tabs .selected a {
.mw-ui-button.mw-ui-quiet {
   background: var(--accent-color);
   background: transparent;
   color: white;
   color: var(--primary);
   box-shadow: var(--shadow-sm);
   border: 1px solid var(--primary);
}
}


.mw-ui-button.mw-ui-quiet:hover {
/* Right Sidebar */
   background: var(--primary);
.vector-column-end {
   color: var(--text-inverse);
  grid-column: -1;
  grid-row: 2 / -1;
   background: var(--sidebar-bg);
   padding: 1.5rem;
  border-left: 1px solid var(--border-color);
  width: 280px;
}
}


/* ===========================================================================
/* Table of Contents */
  PROFESSIONAL CODE BLOCKS
.vector-toc {
  =========================================================================== */
   background: var(--secondary-bg);
 
code {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  border: 1px solid var(--border-primary);
}
 
pre {
   background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: var(--space-4);
   border-radius: var(--radius-md);
   border-radius: var(--radius-md);
   overflow-x: auto;
   padding: 1rem;
   margin: var(--space-6) 0;
   box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-primary);
   margin-bottom: 1.5rem;
   font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
}
}


pre code {
.vector-toc-contents {
   background: transparent;
   list-style: none;
   padding: 0;
   padding: 0;
   border: none;
   margin: 0;
  color: inherit;
}
}


/* ===========================================================================
.vector-toc-list-item {
  PROFESSIONAL BLOCKQUOTES
  margin: 0.5rem 0;
  =========================================================================== */
}


blockquote {
.vector-toc-link {
   margin: var(--space-6) 0;
   display: block;
   padding: var(--space-4) var(--space-6);
   padding: 0.5rem 0.75rem;
  background: var(--bg-tertiary);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
   color: var(--text-secondary);
   color: var(--text-secondary);
   font-style: italic;
   text-decoration: none;
   position: relative;
   border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
}


blockquote p:last-child {
.vector-toc-link:hover {
   margin-bottom: 0;
   background: var(--hover-bg);
  color: var(--accent-color);
}
}


/* ===========================================================================
.vector-toc-list-item-active .vector-toc-link {
  PROFESSIONAL LISTS
  background: var(--accent-color);
  =========================================================================== */
  color: white;
}


ul, ol {
/* Categories Section */
   padding-left: var(--space-6);
.mw-category-generated {
   margin: var(--space-4) 0;
   background: var(--accent-bg);
   padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
}
}


li {
.mw-category-generated h2 {
   margin: var(--space-2) 0;
   color: var(--text-primary);
   color: var(--text-secondary);
   margin-bottom: 1rem;
   line-height: 1.6;
   font-size: 1.5rem;
}
}


ul li::marker {
.mw-category ul {
   color: var(--primary);
  list-style: none;
  padding: 0;
  display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}
}


ol li::marker {
.mw-category li {
   color: var(--primary);
  background: var(--secondary-bg);
   font-weight: 600;
  padding: 0.75rem;
   border-radius: var(--radius-sm);
   box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
}


/* Definition lists */
.mw-category li:hover {
dl {
  transform: translateY(-2px);
   margin: var(--space-4) 0;
   box-shadow: var(--shadow-md);
}
}


dt {
.mw-category a {
  font-weight: 600;
   color: var(--text-primary);
   color: var(--text-primary);
   margin-top: var(--space-3);
   text-decoration: none;
}
   font-weight: 500;
 
dd {
  margin-left: var(--space-4);
  color: var(--text-secondary);
}
 
/* ===========================================================================
  PROFESSIONAL IMAGES
  =========================================================================== */
 
img {
  max-width: 100%;
   height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
}
}


.thumb {
.mw-category a:hover {
  background: var(--bg-primary);
   color: var(--accent-color);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
   padding: var(--space-3);
  margin: var(--space-4);
  box-shadow: var(--shadow-sm);
}
}


.thumbcaption {
/* Footer */
.mw-footer {
  background: var(--text-primary);
   color: var(--text-muted);
   color: var(--text-muted);
   font-size: 0.875rem;
   padding: 2rem;
   margin-top: var(--space-2);
   grid-column: 1 / -1;
   text-align: center;
   text-align: center;
}
}


/* ===========================================================================
.mw-footer ul {
  PROFESSIONAL SEARCH
   list-style: none;
  =========================================================================== */
   padding: 0;
 
   margin: 0.5rem 0;
.mw-search-form {
   display: flex;
   background: var(--bg-primary);
  justify-content: center;
   border: 1px solid var(--border-primary);
   gap: 2rem;
   border-radius: var(--radius-md);
  flex-wrap: wrap;
   padding: var(--space-4);
   margin: var(--space-6) 0;
}
}


.mw-search-form input[type="search"] {
.mw-footer a {
   font-size: 1rem;
   color: var(--text-muted);
  margin-bottom: var(--space-3);
  text-decoration: none;
  transition: color 0.2s ease;
}
}


/* ===========================================================================
.mw-footer a:hover {
  PROFESSIONAL MESSAGES & ALERTS
   color: var(--accent-color);
  =========================================================================== */
 
.mw-message {
   padding: var(--space-4);
  border-radius: var(--radius-md);
  margin: var(--space-4) 0;
  border-left: 4px solid;
}
}


.mw-message.mw-message-success {
/* Buttons */
   background: #f0fdf4;
.cdx-button {
   border-color: var(--accent-success);
  background: var(--accent-color);
   color: #166534;
  color: white;
  border: none;
   padding: 0.5rem 1rem;
   border-radius: var(--radius-sm);
   font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
}


.mw-message.mw-message-warning {
.cdx-button:hover {
   background: #fefbf1;
  background: var(--accent-hover);
   border-color: var(--accent-warning);
   transform: translateY(-1px);
  color: #92400e;
   box-shadow: var(--shadow-sm);
}
}


.mw-message.mw-message-error {
/* Responsive Design */
  background: #fef2f2;
@media (max-width: 1024px) {
  border-color: var(--accent-error);
   .mw-page-container-inner {
   color: #991b1b;
    grid-template-columns: 1fr;
}
   }
 
 
.mw-message.mw-message-info {
  .vector-column-start,
  background: #eff6ff;
   .vector-column-end {
  border-color: var(--accent-blue);
     display: none;
   color: #1e40af;
}
 
/* ===========================================================================
  PROFESSIONAL RESPONSIVE DESIGN
  =========================================================================== */
 
@media (max-width: 768px) {
   .mw-body-container {
     padding: var(--space-4);
   }
   }
    
    
   .mw-content-container {
   .mw-content-container {
     padding: var(--space-6);
     grid-column: 1;
   }
   }
 
}
   .mw-header-container {
 
     padding: 0 var(--space-4);
@media (max-width: 768px) {
   .mw-page-container {
     margin: 10px;
    border-radius: var(--radius-md);
   }
   }
    
    
   h1 {
   .mw-body-header {
     font-size: 1.875rem;
     padding: 1.5rem 1rem;
   }
   }
    
    
   h2 {
   .firstHeading {
     font-size: 1.5rem;
     font-size: 2rem;
   }
   }
    
    
   h3 {
   .mw-body {
     font-size: 1.25rem;
     padding: 1rem;
   }
   }
    
    
   table {
   .vector-page-toolbar {
     font-size: 0.875rem;
     padding: 0.5rem 1rem;
   }
   }
    
    
   th, td {
   .vector-menu-tabs {
     padding: var(--space-2) var(--space-3);
     flex-wrap: wrap;
   }
   }
}
}


@media (max-width: 480px) {
/* Animations */
   .mw-body-container {
@keyframes fadeIn {
     padding: var(--space-2);
   from {
     opacity: 0;
    transform: translateY(10px);
   }
   }
    
   to {
  .mw-content-container {
     opacity: 1;
     padding: var(--space-4);
     transform: translateY(0);
  }
 
  .mw-header-container {
     padding: 0 var(--space-2);
  }
 
  h1 {
    font-size: 1.5rem;
  }
 
  h2 {
    font-size: 1.25rem;
   }
   }
}
}


/* ===========================================================================
.mw-body-content {
  PROFESSIONAL PRINT STYLES
  animation: fadeIn 0.6s ease-out;
  =========================================================================== */
}
 
/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
 
::-webkit-scrollbar-track {
  background: var(--accent-bg);
}


@media print {
::-webkit-scrollbar-thumb {
  * {
   background: var(--text-muted);
    background: transparent !important;
   border-radius: var(--radius-sm);
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
 
  a,
  a:visited {
    text-decoration: underline;
  }
 
  a[href]:after {
    content: " (" attr(href) ")";
   }
 
  abbr[title]:after {
    content: " (" attr(title) ")";
   }
 
  .mw-header,
  .mw-portlet {
    display: none;
  }
 
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
 
  p, blockquote {
    orphans: 3;
    widows: 3;
  }
 
  blockquote {
    page-break-inside: avoid;
  }
}
}


/* ===========================================================================
::-webkit-scrollbar-thumb:hover {
  PROFESSIONAL ACCESSIBILITY
  background: var(--accent-color);
  =========================================================================== */
}


/* Focus styles */
/* Focus States */
*:focus {
a:focus,
   outline: 2px solid var(--primary);
button:focus {
   outline: 2px solid var(--accent-color);
   outline-offset: 2px;
   outline-offset: 2px;
}
}


/* Reduced motion */
/* Print Styles */
@media (prefers-reduced-motion: reduce) {
@media print {
   * {
  .vector-column-start,
     animation-duration: 0.01ms !important;
  .vector-column-end,
    animation-iteration-count: 1 !important;
  .vector-page-toolbar,
     transition-duration: 0.01ms !important;
   .mw-footer {
     display: none;
  }
 
  .mw-page-container-inner {
     grid-template-columns: 1fr;
   }
   }
}
 
 
  .mw-body {
/* High contrast mode */
     padding: 0;
@media (prefers-contrast: high) {
  :root {
     --border-primary: #000000;
    --text-primary: #000000;
    --text-secondary: #000000;
   }
   }
}
}

مراجعة ١٠:٤٣، ١٤ يوليو ٢٠٢٥

/* Modern Wiki Redesign - Calm & Trendy */

/* Root Variables - Calm Color Palette */
:root {
  --primary-bg: #f8fafc;
  --secondary-bg: #ffffff;
  --accent-bg: #e2e8f0;
  --sidebar-bg: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --hover-bg: #f1f5f9;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --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);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Container Redesign */
.mw-page-container {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--secondary-bg);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
}

.mw-page-container-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - 40px);
  gap: 0;
}

/* Header Redesign */
.mw-body-header {
  background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-bg) 100%);
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border-color);
  grid-column: 1 / -1;
}

.firstHeading {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-color), var(--success-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mw-page-title-separator {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

/* Sidebar Redesign */
.vector-column-start {
  background: var(--sidebar-bg);
  padding: 1.5rem;
  border-right: 1px solid var(--border-color);
  grid-row: 2 / -1;
}

.vector-main-menu {
  background: transparent;
}

.vector-pinnable-header {
  background: var(--accent-color);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.vector-pinnable-header-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vector-menu-content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vector-menu-content-list li {
  margin: 0.25rem 0;
}

.vector-menu-content-list a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-weight: 500;
}

.vector-menu-content-list a:hover {
  background: var(--hover-bg);
  color: var(--accent-color);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

/* Navigation Buttons */
.vector-pinnable-header-toggle-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vector-pinnable-header-toggle-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Main Content Area */
.mw-content-container {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
}

.mw-body {
  flex: 1;
  padding: 2rem;
  background: var(--secondary-bg);
}

/* Content Styling */
.mw-body-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.mw-parser-output p {
  margin: 1.5rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.mw-parser-output h2 {
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
  position: relative;
}

.mw-parser-output h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--success-color);
}

/* Arabic Text Enhancement */
.mw-content-rtl {
  direction: rtl;
  text-align: right;
}

.mw-content-rtl h2 {
  border-bottom: 2px solid var(--accent-color);
}

.mw-content-rtl h2::after {
  right: 0;
  left: auto;
}

/* Toolbar Redesign */
.vector-page-toolbar {
  background: var(--accent-bg);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.vector-menu-tabs {
  display: flex;
  gap: 0.5rem;
  background: transparent;
}

.vector-menu-tabs a {
  padding: 0.5rem 1rem;
  background: var(--secondary-bg);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.vector-menu-tabs a:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.vector-menu-tabs .selected a {
  background: var(--accent-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Right Sidebar */
.vector-column-end {
  grid-column: -1;
  grid-row: 2 / -1;
  background: var(--sidebar-bg);
  padding: 1.5rem;
  border-left: 1px solid var(--border-color);
  width: 280px;
}

/* Table of Contents */
.vector-toc {
  background: var(--secondary-bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.vector-toc-contents {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vector-toc-list-item {
  margin: 0.5rem 0;
}

.vector-toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.vector-toc-link:hover {
  background: var(--hover-bg);
  color: var(--accent-color);
}

.vector-toc-list-item-active .vector-toc-link {
  background: var(--accent-color);
  color: white;
}

/* Categories Section */
.mw-category-generated {
  background: var(--accent-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

.mw-category-generated h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.mw-category ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.mw-category li {
  background: var(--secondary-bg);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

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

.mw-category a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.mw-category a:hover {
  color: var(--accent-color);
}

/* Footer */
.mw-footer {
  background: var(--text-primary);
  color: var(--text-muted);
  padding: 2rem;
  grid-column: 1 / -1;
  text-align: center;
}

.mw-footer ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.mw-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mw-footer a:hover {
  color: var(--accent-color);
}

/* Buttons */
.cdx-button {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.cdx-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .mw-page-container-inner {
    grid-template-columns: 1fr;
  }
  
  .vector-column-start,
  .vector-column-end {
    display: none;
  }
  
  .mw-content-container {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .mw-page-container {
    margin: 10px;
    border-radius: var(--radius-md);
  }
  
  .mw-body-header {
    padding: 1.5rem 1rem;
  }
  
  .firstHeading {
    font-size: 2rem;
  }
  
  .mw-body {
    padding: 1rem;
  }
  
  .vector-page-toolbar {
    padding: 0.5rem 1rem;
  }
  
  .vector-menu-tabs {
    flex-wrap: wrap;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mw-body-content {
  animation: fadeIn 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--accent-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Focus States */
a:focus,
button:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .vector-column-start,
  .vector-column-end,
  .vector-page-toolbar,
  .mw-footer {
    display: none;
  }
  
  .mw-page-container-inner {
    grid-template-columns: 1fr;
  }
  
  .mw-body {
    padding: 0;
  }
}