:root {
    /* Colors */
    --primary: #e94560;
    --primary-dark: #4d2dff;
    --primary-darker: #2a1a9e;
    --secondary: #00f0ff;
    --accent: #ff4d88;
    --success: #00e676;
    --warning: #ffc107;
    --danger: #ff5252;
    --info: #2196f3;
    
    /* Backgrounds */
    --bg-dark: #0a0a12;
    --bg-darker: #07070f;
    --bg-card: #12121d;
    --bg-card-light: #1a1a2a;
    
    /* Text */
    --text-primary: #fff;
    --text-secondary: #b8c2d9;
    --text-muted: #6b7280;
    
    /* Borders */
    --border-color: #252535;
    --border-light: #303040;
    
    /* Other */
    --radius: 0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}
        :root {
             --dark: #0d0221;
            --darker: #070116;
            --text: #fff;
            --text-muted: #b8c2d9;
            --border: #2a2a3c;
        }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
 label {
  display: block;
  font-weight: 500;
}

select, textarea {
   font-size: var(--font-scale-body);
  border: 1px solid var(--color-border);
  border-radius: 0;
  background-color: #fff;
  color: var(--color-text);
}
textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  font-size: 1rem;
  color:#333;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: border 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
  outline: none;
}

textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-focus);
  outline: none;
}

fieldset {
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}
legend {
  font-weight: bold;
  margin-bottom: var(--space-sm);
}

pre {
width:100%;min-height:80px;
background: #282c34 !important;
color:white !important;border-radius: 4px;
  padding: var(--space-md);
  overflow-x: auto;  white-space: pre-wrap; /* allows wrapping for better mobile support */
  word-break: break-word;
}

pre code {
flex: 1;width:100%;min-height:80px;background: #282c34 !important;
font-family: var(--font-mono);
  border-radius:4px;
  color:white !important;
  white-space: pre-wrap; /* allows wrapping for better mobile support */
  word-break: break-word;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}
        /* Typography */
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        h1 {
            font-size: 3.5rem;
            line-height: 1.2;
            font-weight: 800;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        h2 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            position: relative;
            display: inline-block;
        }

        h2:after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
        }

        h3 {
            font-size: 1.75rem;
            color: var(--secondary);
        }

        p {
            margin-bottom: 1.5rem;
            color: var(--text-secondary);
        }

        a {
            color: var(--secondary);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        a:hover {
            color:lightblue;
        }

        /* Layout */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        section {
            padding: 1rem 0;
            position: relative;
        }
 

/* Remove default list styling */
ol {
  counter-reset: item;
  list-style: none;
  padding:20px;
  margin: 0;
}

/* List item styling */
ol li {
  counter-increment: item;
  padding: 14px 18px;
  margin-bottom: 12px;
  background-color: #374151; /* dark card background */
  border: 1px solid #4b5563; /* subtle border */
  border-radius: 10px;
  position: relative;
  transition: all 0.2s ease;
  word-wrap: break-word;
}
/* Custom counter / number styling */
ol li::before {
  content: counter(item);
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #2563eb; /* blue circle */
  color: #f9fafb; /* light number */
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Mobile responsiveness */
@media screen and (max-width: 600px) {
  ol li {
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 0.95rem;
  }
  ol li::before {
    left: -35px;
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }
}
   /* Buttons */
        .index-btn {
            display: inline-block;
            padding: 0.8rem 1.8rem;
            border-radius: var(--radius);
            font-weight: 600;
            font-family: 'Montserrat', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-size: 0.9rem;
        }

        .index-btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
        }

        .index-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
        }

        .index-btn-secondary {
            background: transparent;
            color: var(--secondary);
            border: 2px solid var(--secondary);
        }

        .index-btn-secondary:hover {
            background: var(--secondary);
            color: var(--bg-dark);
        }
 
         /* Header Container */
        .cyber-header-v2 {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: var(--darker);
            border-bottom: 1px solid var(--border);
            z-index: 1000;
            padding: 0 20px;
        }

        .header-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
        }

        /* Top Bar (Mobile) */
        .mobile-top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
        }

        .logo-v2 {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--text);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-v2 img {
            height: 40px;
        }

        .mobile-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        /* Hamburger Menu */
        .menu-toggle {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .menu-toggle span {
            display: block;
            width: 25px;
            height: 2px;
            background-color: var(--secondary);
            transition: all 0.3s ease;
        }

        .menu-toggle.active span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        /* Search */
        .search-container-v2 {
            position: relative;
        }

        .search-trigger {
            background: none;
            border: none;
            color: var(--secondary);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 5px;
        }

        .search-box {
            position: absolute;
            top: 0;
            right: 0;
            background: var(--dark);
            border: 1px solid var(--secondary);
            padding: 10px;
            display: none;
            z-index: 1001;
            width: 300px;
        }

        .search-box.active {
            display: flex;
            gap: 10px;
        }

        .search-input {
            flex: 1;
            padding: 8px;
            background: var(--darker);
            border: 1px solid var(--border);
            color: var(--text);
            outline: none;
        }

        .search-input:focus {
            border-color: var(--secondary);
            box-shadow: 0 0 5px var(--secondary);
        }

        .search-btn-v2 {
            padding: 8px 15px;
            background: var(--primary);
            color: white;
            border: none;
            cursor: pointer;
        }

        /* Navigation */
        .main-nav {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .main-nav.active {
            max-height: 1000px;
        }
 
        .nav-list {
            list-style: none;
            padding: 10px 0;
        }

        .nav-item {
            border-bottom: 1px solid var(--border);
        }

        .nav-link {
            display: block;
            padding: 15px;
            color: var(--text);
            text-decoration: none;
            font-weight: bold;
            text-transform: uppercase;
            position: relative;
        }

        .nav-link:hover {
            color: var(--secondary);
        }

        /* Dropdowns */
        .dropdown-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .dropdown-toggle::after {
            content: "▼";
            font-size: 0.7rem;
            transition: transform 0.3s ease;
        }

        .dropdown-toggle.active::after {
            transform: rotate(180deg);
        }

        .dropdown-menu {
            background: var(--dark);
            padding-left: 20px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .dropdown-menu.active {
            max-height: 1000px;
        }

        .dropdown-item {
            display: block;
            padding: 12px 15px;
            color: var(--text-muted);
            text-decoration: none;
            border-left: 2px solid var(--border);
        }

        .dropdown-item:hover {
            color: var(--secondary);
            border-left-color: var(--secondary);
        }

        /* Buttons */
        .btn-v2 {
            padding: 8px 15px;
            border-radius: 0;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }

        .btn-v2-primary {
            background: var(--primary);
            color: white; border: 2px solid var(--primary);
        }
     .btn-v2-primary:hover {
            background: transparent;
            border:2px solid var(--primary);
            color: var(--secondary);
        
        }
        .btn-v2-outline{
            background: transparent;
            color: var(--secondary);
            border: 2px solid var(--secondary);
        }

        .btn-v2-outline:hover {
            background: var(--secondary);
            color: var(--bg-dark);
        }
   
 @media (max-width: 768px) {     
      .search-container-v2 {  margin-top: 10px ;
        display: block;
        position: relative;
        }
      .search-trigger {
         display: none;
        }
       .btn-v2 {
         margin-top: 80px ;
        }
      .search-box {   
            display: flex;
            gap: 10px;
            top:0;
            right: 0;
            background: var(--dark);
            border: 1px solid var(--secondary);
            padding: 10px;
             z-index: 1001;
            width: 100%;
        }
      .search-box.active {
            display: flex;
            gap: 10px;
        }
}
        /* Desktop Layout */
        @media (min-width: 768px) {
            .header-container {
                flex-direction: row;
                align-items: center;
                height: 70px;
            }

            .mobile-top-bar {
                padding: 0;
            }

            .menu-toggle {
                display: none;
            }
 .main-nav {
     flex-direction: row-reverse;
  display: flex;
  justify-content: space-between;  
  align-items: center;  
  padding: 0 1rem; 
  max-height: none;
  overflow: visible;
  width:100%;
  margin: 0 30px;
          }
 
            .nav-list {
                display: flex;
                padding: 0;
                gap: 10px;
            }

            .nav-item {
                border-bottom: none;
                position: relative;
            }

            .nav-link {
                padding: 10px 15px;
            }

            .dropdown-menu {
                position: absolute;
                top: 100%;
                left: 0;
                min-width: 250px;
                background: var(--darker);
                border: 1px solid var(--border);
                box-shadow: 0 5px 15px rgba(0,0,0,0.3);
                padding: 10px 0;
                z-index: 100;
            }

            .dropdown-item {
                border-left: none;
                padding: 8px 15px;
            }

            .mobile-actions {
                display: none;
            }

            .desktop-actions {
                display: flex;
                gap: 10px;
            }
        }

        /* Animations */
        @keyframes flicker {
            0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
            20%, 22%, 24%, 55% { opacity: 0.7; }
        }

        .flicker {
            animation: flicker 3s infinite;
        }

        @keyframes rgb {
            0% { text-shadow: 0 0 5px var(--primary); }
            33% { text-shadow: 0 0 5px var(--secondary); }
            66% { text-shadow: 0 0 5px var(--accent); }
            100% { text-shadow: 0 0 5px var(--primary); }
        }

        .rgb-text {
            animation: rgb 3s infinite;
        }
/* Page Content */
.page-content {
    width: 100%;height:100%;
    background-color: var(--bg-card);
    border-radius: 0;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.8rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 1.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-content h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: var(--primary);
    border-radius: 0;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.6);
}

.page-content h2 {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.page-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 80%;
    background-color: var(--primary-dark);
    border-radius: 0;
}

.page-content h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--text-muted);
    padding-left: 1rem;
}

.page-content p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Lists */
.page-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2.5rem;
    z-index:1;
}

.page-content ul li {
    position: relative;
    padding: 1rem 0 1rem 2.5rem;
    margin-bottom: 0.75rem;
    background-color: var(--bg-card-light);
    border-radius: 0;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.page-content ul li::before {
    content: '•';
    color: var(--primary);
    font-size: 1.5rem;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.page-content ul li:hover {
    background-color: var(--bg-card);
    border-color: var(--primary);
}

.page-content ul li strong {
    color: var(--secondary);
    font-weight: 600;
}
 .tooltip-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
   transform: translateX(-30%);
  background-color: #333;
  color: white;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
  white-space: normal; /* allow wrapping */
  max-width: 180px;     /* limit width */
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 555555;
  text-align: left;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tooltip-btn:hover::after,
.tooltip-btn:focus::after {
  opacity: 1;
}
@media (max-width: 768px) { 
    .tooltip-btn::after {
   transform: translateX(-10%);
  padding: 4px 6px;
  font-size: 12px;
  max-width: 110px; 
}
}
/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.sub-card {
    background-color: var(--bg-card-light);
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.sub-card h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.sub-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 0;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card-light);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--bg-card);
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: var(--bg-card);
}
  /* Base table styling */
table.layout.display.responsive-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  background: var(--bg-dark);
  border: 1px solid var(--border);
}

/* Table header */
table.layout.display.responsive-table thead {
  background-color:var(--bg-card);
}

table.layout.display.responsive-table th,
table.layout.display.responsive-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
   font-size: 14px;
}

table.layout.display.responsive-table th {
  font-weight: bold;
  color: var(--secondary);
}

/* Zebra striping for rows */
table.layout.display.responsive-table tbody tr:nth-child(even) {
  background-color: var(--bg-card);
}
 
/* Responsive: Stack rows on mobile */
@media (max-width: 768px) {
  table.layout.display.responsive-table thead {
    display: none;
  }

  table.layout.display.responsive-table tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ddd;
   }

  table.layout.display.responsive-table td {
    display: block;
    text-align: left;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
  }

  table.layout.display.responsive-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    color: red;
  }
}
/* Case Studies */
.case-study {
    background-color: var(--bg-card-light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0;
}

.case-study h3 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.case-study p {
    margin-bottom: 0.5rem;
}

.case-study p strong {
    color: var(--accent);
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-container .tooltip-text {
  visibility: hidden;
  background-color: #333;
  color: var(--secondary);
  padding: 4px 8px;
  border-radius: var(--radius);
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 999;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip-container:active .tooltip-text,
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
/* Tooltips */
.tooltip-term {
    color:red;
    position: relative;
    display: inline-block;
    padding-left: 0.25rem;
}

.tooltip-btn {
    background-color: var(--primary);
      margin-left: 6px; /* adjust as needed */
 color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transition: all 0.2s;
}

.tooltip-btn:hover {
    background-color: var(--accent);
    transform: scale(1.2);
}

#tooltip-layer {
    position: fixed;
    pointer-events: none;
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--primary);
    max-width: 300px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
}
 
/* Responsive Design */
@media (max-width: 992px) {
    .page-content {
        padding: 1.5rem;
    }
    
    .page-content h1 {
        font-size: 2.2rem;
    }
    
    .page-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 1.25rem;
    }
    
    .page-content h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .page-content h2 {
        font-size: 1.6rem;
        margin-top: 2.5rem;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-content h1 {
        font-size: 1.8rem;
    }
    
    .page-content h2 {
        font-size: 1.4rem;
    }
    
    .page-content ul li {
        padding: 0.75rem 0 0.75rem 2rem;
    }
} 
/* Toggle button */
.divider button {
  position: fixed;
  top: 110px;
  left: 262px;
  width: 35px;
  height: 35px;
  background-color: #e94560;
  box-shadow: 0 0 15px rgba(233, 69, 96, 0.6); ;
  border: 3px solid #dee2e6;
  border-radius:0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
  user-select: none;
  z-index: 200;
  box-sizing: border-box;
  color: white;
  transition: left 0.3s ease;
}


.divider button span {
  font-size: 35px;
  width: 45px;
  height: 45px;
  line-height: 38px;
  display: block;
  text-align: center;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  color: white;
  box-sizing: border-box;
}

.divider button:hover {
  background: #ca1835;
}
.sidebar-hidden .divider button {
  left: 15px;  /* move button near the slim sidebar */
  top: 107px;
}

.sidebar-hidden .page-layout {
  padding-left:35px; /* leave space for slim sidebar */
}
 
.sidebar-hidden .cyber-nav {
        width: 35px;
        overflow: hidden;
    }
 
.sidebar-hidden .brand-name, .sidebar-hidden .user-type, .sidebar-hidden .nav-user, .sidebar-hidden .nav-menu li  , 
    .sidebar-hidden .settings-btn span, .sidebar-hidden .logout-btn span {
        display: none;
    }
 .sidebar-hidden .nav-footer {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
   .sidebar-hidden .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
 
@media (max-width: 768px) {
  .cyber-nav {
     z-index: 100 ;
    transform: translateX(0);
    transition: transform 0.3s ease;
  }
  /* Adjust toggle button to stay in place */
  .divider button {
    left: 0;
    top: 100px;
    z-index: 100;
  }
   .nav-menu li {
       display:none;
    }
  .sidebar-mobile-open .cyber-nav {
     width:70%;
    }
    .sidebar-mobile-open .user-type,.sidebar-mobile-open .user-info,.sidebar-mobile-open .nav-menu li a span, 
    .sidebar-mobile-open .settings-btn span,.sidebar-mobile-open .logout-btn span {
        display: block;
    }
    .sidebar-mobile-open .nav-footer {
        flex-direction: row;
    }
    .sidebar-mobile-open  .nav-user{
    display: flex;
    }
   /* Adjust toggle button to stay in place */
  .sidebar-mobile-open  .divider button {
   left:67%;
  }
  .sidebar-mobile-open .nav-menu li {
       display:block;
    }
  .sidebar-mobile-open .page-layout {
  position: relative;
  pointer-events: none; /* disable interactions behind the overlay */
}

.sidebar-mobile-open .page-layout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.3); /* optional dark overlay */
  z-index: 10;
  pointer-events: none;
}

  /* Ensure main content is not affected */
  .page-layout {
    padding-left: 35px !important;
  }
 
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-purple { background-color:#e94560; }
.bg-blue { background-color: #1e88e5; }
.bg-green { background-color: #43a047; }
.bg-orange { background-color: #fb8c00; }

/* Dashboard Layout */
.cyber-dashboard {
    display: flex;
    flex-direction:column;
    min-height: 100vh;
}

.cyber-main {
    flex: 1;
    display: flex;
    margin-top: 60px;
     overflow: auto;
}

.cyber-content {
    flex: 1;
    padding: 5px;
    overflow-y: auto;
}
.page-layout {
    flex: 1;
    flex-direction:column;
    padding-left:280px;
    height:100%;
    overflow-y: auto;
}

.cyber-nav {    
    position: fixed;
    width: 280px;
    height:90%;
    background-color: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 3% 5px 5px 5px;
    overflow: hidden;
} 
/* Navigation Styles */
.nav-brand {
    display: flex;
    align-items: center;
    padding: 0 20px 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.logo {
    width: 36px;
    height: 36px;
    margin-right: 12px;
}

.brand-name {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 18px;
    margin-right: 10px;
}

.user-type {
    background-color: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 700;
}

.nav-user {
    padding: 0 20px 30px;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius:0;
    object-fit: cover;
    border: 2px solid var(--primary);
    margin-right: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.user-rank {
    font-size: 12px;
    color: var(--secondary);
    margin: 2px 0;
}

.user-rep {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.user-rep i {
    margin-right: 5px;
    font-size: 10px;
}

.nav-menu {
  list-style: none;
  padding: 0 10px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
 }

/* WebKit browsers (Chrome, Edge, Safari) */
.nav-menu::-webkit-scrollbar {
  width: 10px;
  height: 6px;
  background: transparent;
  border-radius: 0 !important;
}

.nav-menu::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 0 !important;
}

.nav-menu::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 0 !important;
  border: none;
  box-shadow: none;
}

.nav-menu::-webkit-scrollbar-corner {
  background: transparent;
  border-radius: 0 !important;
}
 
.nav-menu li {
    margin-bottom: 5px;
} 
.nav-menu li a{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px; background:var(--card);color:var(--text-primary); border:1px solid var(--border); border-radius:0; box-shadow:var(--shadow)}
.nav-menu li a.active {
  color: var(--primary);
  font-weight: 650;
   background-color: var(--bg-card-light);
}
.status-tag{font-size:0.70rem; background:var(--tag); color:var(--muted); padding:2px 8px; border-radius:0; border:1px solid var(--border)}
.nav-menu li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-menu li a:hover {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.nav-menu li.active a {
    background-color: var(--bg-card);
    color: var(--primary);
    font-weight: 500;
}
.nav-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}
 
.settings-btn, .logout-btn {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.settings-btn:hover, .logout-btn:hover {
    color: var(--text-primary);
}

.settings-btn i, .logout-btn i {
    margin-right: 8px;
}

/* Header Styles */
.cyber-header {
    position: fixed;
    top: 0;
  left: 0;
  width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:5px;height:80px;
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
     z-index: 1000;
}

.search-container {
    position: relative;
    width: 400px;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-container input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    transition: all 0.3s;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(110, 72, 255, 0.2);
}

.search-type {
    display: flex;
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--bg-card-light);
    border-radius: 0;
    overflow: hidden;
}

.search-type span {
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s;
}

.search-type span:hover {
    color: var(--text-primary);
}

.search-type span.active {
    background-color: var(--primary);
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notifications, .messages {
    position: relative;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.notifications:hover, .messages:hover {
    color: var(--text-primary);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    border-radius:0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.quick-btn {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 0;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn i {
    margin-right: 8px;
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 72, 255, 0.3);
}

/* Content Styles */
.welcome-banner {
    margin-bottom: 30px;
}

.welcome-banner h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.welcome-banner p {
    color: var(--text-secondary);
    font-size: 15px;
}

.online-status {
    color: var(--success);
    font-size: 14px;
}

.online-status i {
    font-size: 10px;
    margin-right: 5px;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--bg-card);
    border-radius:0;
    padding: 20px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius:0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 20px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}
.dashboard-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Cards base style to fill container */
.dashboard-grid > .card {
  box-sizing: border-box;
}

/* 1st and 2nd card: full width */
.dashboard-grid > :nth-child(1),
.dashboard-grid > :nth-child(2),
.dashboard-grid > :nth-child(5),
.dashboard-grid > :nth-child(6) {
  flex: 1 1 100%;
}

/* 3rd and 4th cards: half width */
.dashboard-grid > :nth-child(3),
.dashboard-grid > :nth-child(4) {
  flex: 1 1 calc(50% - 10px); /* subtract half gap */
}

/* Responsive stack on small screens */
@media (max-width: 768px) {
  .dashboard-grid > .card {
    flex: 1 1 100% !important;
  }
}


/* Card Styles */
.card {
  background: #1a1a2a;
  border-radius: 0;
  border: 1px solid #2a2a3a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
 
}
 
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.view-all {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.view-all:hover {
    color: var(--secondary);
}

.card-body {
    padding:10px;
}
 
.path-progress {
    display: flex;
    gap: 30px;
 }

.path-track {
    width:70%;
    position: relative;
}

.path-milestones {
display: flex;
flex-wrap: wrap;
gap: 50px;
}

.milestone {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.milestone-icon {
    width: 72px;
    height: 72px;
    border-radius:0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 2px solid var(--border-light);
    color: var(--text-muted);
}

.milestone.completed .milestone-icon {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.milestone.active .milestone-icon {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    animation: pulse 2s infinite;
}

.milestone-label {
    font-size: 14px;
    color: var(--text-secondary);padding-left: 55px;
}

.milestone.completed .milestone-label {
    color: var(--text-primary);
    font-weight: 500;
}

.milestone.active .milestone-label {
    color: var(--primary);
    font-weight: 600;
}

.progress-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-light);
    z-index: 1;
}

.path-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 30%;
}

.stat-item {
    display: flex;
    flex-direction: row-reverse; /* or column-reverse */
    background-color: var(--bg-card-light);
    border-radius: 0;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.stat-item .stat-value {
    flex: 1;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item .stat-label {   flex: 3;
    font-size: 12px;
}


.lab-status {
    display: flex;
    align-items: center;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 0;
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--success);
}

.lab-status i {
    font-size: 8px;
    margin-right: 5px;
}

.lab-info {
    display: flex;
    gap: 20px;
}

.lab-image {
    width: 180px;
    height: 120px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.lab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lab-difficulty {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(251, 140, 0, 0.9);
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 0;
    display: flex;
    align-items: center;
}

.lab-difficulty i {
    margin-right: 5px;
    font-size: 10px;
}

.lab-details {
    flex: 1;
}

.lab-details h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.lab-details p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.lab-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.lab-meta i {
    margin-right: 5px;
}

.lab-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn i {
    margin-right: 8px;
    font-size: 12px;
}

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

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: var(--bg-card-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn.secondary:hover {
    background-color: var(--bg-card);
    transform: translateY(-2px);
}

.btn.danger {
    background-color: rgba(255, 82, 82, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.btn.danger:hover {
    background-color: rgba(255, 82, 82, 0.2);
    transform: translateY(-2px);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tool-item {
    background-color: var(--bg-card-light);
    border-radius: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius:0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
}

.tool-icon.nmap { background-color: #2196F3; }
.tool-icon.burp { background-color: #FF5722; }
.tool-icon.metasploit { background-color: #E91E63; }
.tool-icon.sqlmap { background-color: #4CAF50; }
.tool-icon.john { background-color: #9C27B0; }
.tool-icon.wireshark { background-color: #3F51B5; }

.tool-name {
    font-size: 13px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}

.tool-launch {
    width: 30px;
    height: 30px;
    border-radius: 0;
    background-color: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.tool-launch:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}
 

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius:0;
    overflow: hidden;
    flex-shrink: 0;
}

.activity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.username {
    font-weight: 600;
    font-size: 14px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

.activity-text {
    font-size: 14px;
    margin-bottom: 10px;
}

.activity-text a {
    color: var(--primary);
    text-decoration: none;
}

.activity-text a:hover {
    text-decoration: underline;
}

.activity-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.action-btn i {
    margin-right: 5px;
}
 

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.challenge-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-card-light);
    border-radius: 0;
    padding: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.challenge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.challenge-difficulty {
    width: 70px;
    padding: 5px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.challenge-difficulty.easy {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--success);
}

.challenge-difficulty.medium {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.challenge-difficulty.hard {
    background-color: rgba(255, 82, 82, 0.1);
    color: var(--danger);
}

.challenge-info {
    flex: 1;
}

.challenge-info h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.challenge-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.challenge-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.challenge-stats i {
    margin-right: 5px;
}

.challenge-start {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 15px;
}

.challenge-start:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.challenge-start i {
    margin-right: 8px;
}
 

.vuln-table {
    display: flex;
    flex-direction: column;
}

.vuln-header {
    display: flex;
    padding: 10px 15px;
    background-color: var(--bg-card-light);
    border-radius:0;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.vuln-header span {
    flex: 1;
}

.vuln-id { width: 120px; flex: 0 0 120px !important; }
.vuln-severity { width: 100px; flex: 0 0 100px !important; }
.vuln-date { width: 100px; flex: 0 0 100px !important; text-align: right; }

.vuln-row {
    display: flex;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-top: none;
    font-size: 14px;
    transition: all 0.3s;
}

.vuln-row:last-child {
    border-radius: 0 0 0 0;
}

.vuln-row:hover {
    background-color: var(--bg-card-light);
}

.vuln-row span {
    flex: 1;
}

.vuln-row.critical {
    border-left: 3px solid var(--danger);
}

.vuln-row.high {
    border-left: 3px solid var(--warning);
}

.vuln-row.medium {
    border-left: 3px solid var(--info);
}

.vuln-row.low {
    border-left: 3px solid var(--text-muted);
}

.severity-badge {
    padding: 3px 8px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
}

.vuln-row.critical .severity-badge {
    background-color: rgba(255, 82, 82, 0.1);
    color: var(--danger);
}

.vuln-row.high .severity-badge {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.vuln-row.medium .severity-badge {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--info);
}

.vuln-row.low .severity-badge {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--text-muted);
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(110, 72, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(110, 72, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(110, 72, 255, 0); }
}

/* Responsive Design */
@media (max-width: 1600px) {
    .dashboard-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .learning-progress, .current-lab {
        grid-column: span 3;
    }
    
    .toolbox, .community, .ctf-challenges {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .activity-header {
        flex-direction: column;

}
    .cyber-nav {
        width: 35px;
        overflow: hidden;
        height:93%;
    }
    
    .brand-name, .user-type, .nav-user, .nav-menu li a span, 
    .settings-btn span, .logout-btn span {
        display: none;
    }
    
    .nav-brand{
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
 .user-avatar {
        margin-right: 0;
    }
    
    .nav-menu li a {
        padding: 15px;
    }
    
    .nav-menu li a i {
        margin-right: 10px;
        font-size: 18px;
    }
    
    .nav-footer {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .search-container {
        width: 250px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .learning-progress, .current-lab, .toolbox, 
    .community, .ctf-challenges, .vulnerabilities {
        grid-column: span 1;
    }
    
    .path-progress {
        flex-direction: column;
    }
    
    .path-stats {
        flex-direction: row;
        width: 100%;
    }
    
    .lab-info {
        flex-direction: column;
    }
    
    .lab-image {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .cyber-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .search-container {
        width: 100%;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .path-stats {
        flex-direction: column;
    }
    
    .lab-actions {
        flex-direction: column;
    }
    
    .lab-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .challenge-item {
        flex-direction: column;
        text-align: center;
    }
    
    .challenge-difficulty {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .challenge-start {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .vuln-header {
        display: none;
    }
    
    .vuln-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .vuln-id, .vuln-severity, .vuln-name, .vuln-date {
        width: 100% !important;
        flex: 1 !important;
        text-align: left !important;
    }
}
/* =============================== AUTHENTICATION PART ========================== */
/* Auth Container */
.auth-container {
            display: flex;
            min-height: 100vh;
            position: relative;
            margin-top:50px;
            overflow: hidden;
        }

/* Cyber Pattern Background */
.cyber-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                linear-gradient(135deg, var(--bg-darker) 0%, transparent 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="10" height="10" fill="%23252535"/><rect x="20" width="10" height="10" fill="%23252535"/><rect x="40" width="10" height="10" fill="%23252535"/><rect x="60" width="10" height="10" fill="%23252535"/><rect x="80" width="10" height="10" fill="%23252535"/><rect y="20" width="10" height="10" fill="%23252535"/><rect y="40" width="10" height="10" fill="%23252535"/><rect y="60" width="10" height="10" fill="%23252535"/><rect y="80" width="10" height="10" fill="%23252535"/></svg>');
            opacity: 0.3;
            z-index: 0;
        }


/* Hero Section */
 .auth-hero {
            flex: 1;
            background: linear-gradient(135deg, var(--bg-darker) 0%, var(--primary-darker) 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 4rem;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

.auth-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MDAiIGhlaWdodD0iNjAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjA1IiBudW1PY3RhdmVzPSI1IiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSI2MDAiIGhlaWdodD0iNjAwIiBmaWx0ZXI9InVybCgjYSkiIG9wYWNpdHk9IjAuMDMiLz48L3N2Zz4=');
            opacity: 0.3;
        }

.hero-content {
            position: relative;
            z-index: 2;
            max-width: 600px;
        }

.hero-logo {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 2rem;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .hero-logo::before {
            content: '>>> ';
            color: var(--secondary);
        }

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

        .hero-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            line-height: 1.2;
            position: relative;
        }

        .hero-title::after {
            content: '_';
            animation: blink 1s infinite step-end;
            color: var(--secondary);
        }

        .hero-title span {
            color: var(--secondary);
        }

        .hero-subtitle {
            color: var(--text-secondary);
            margin-bottom: 2rem;
            font-size: 1.1rem;
        }

        .hero-features {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-top: 2rem;
            border-left: 3px solid var(--primary);
            padding-left: 1.5rem;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            position: relative;
        }

        .feature-item::before {
            content: '➜';
            color: var(--secondary-dark);
        }

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

        .security-indicator {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 3rem;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .security-status {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            color: var(--success);
        }

        .security-status::before {
            content: '';
            width: 8px;
            height: 8px;
            background-color: var(--success);
            box-shadow: 0 0 8px var(--success);
        }

        /* Auth Form Section */
        .auth-form-section {
            width: 500px;
            background-color: var(--bg-darkest);
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 3rem;
            box-shadow: var(--shadow);
            position: relative;
            z-index: 1;
            border-left: 1px solid var(--border-color);
        }

        .auth-form-container {
            width: 100%;
        }

        .auth-tabs {
            display: flex;
            margin-bottom: 2rem;
            border-bottom: 1px solid var(--border-color);
            position: relative;
        }

        .auth-tab {
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            font-weight: 600;
            color: var(--text-muted);
            position: relative;
            transition: all 0.3s ease;
            background: none;
            border: none;
            font-family: inherit;
            font-size: inherit;
            color: inherit;
        }

        .auth-tab.active {
            color: var(--primary);
        }

        .auth-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary);
        }

        .auth-tab:hover:not(.active) {
            color: var(--text-secondary);
        } 
.switch-form {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .switch-form.active {
            display: block;
        }
        .form-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .form-title::before {
            content: '$';
            color: var(--secondary);
        }

        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            color: var(--text-secondary);
            font-weight: 500;
            font-family: 'Inter', sans-serif;
        }

        .form-control {
            width: 100%;
            padding: 0.75rem 1rem;
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius:var(--radius);
            color: var(--text-primary);
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: var(--glow);
        }

        .password-wrapper {
            position: relative;
        }

        .toggle-password {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            cursor: pointer;
            font-size: 1rem;
            background: none;
            border: none;
            z-index: 2;
        }

        .password-strength {
            height: 3px;
            background-color: var(--bg-card-light);
            margin-top: 0.5rem;
            position: relative;
        }

        .password-strength::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 0;
            background-color: var(--danger);
            transition: width 0.3s ease, background-color 0.3s ease;
        }

        .password-strength[data-strength="1"]::after {
            width: 25%;
            background-color: var(--danger);
        }

        .password-strength[data-strength="2"]::after {
            width: 50%;
            background-color: var(--warning);
        }

        .password-strength[data-strength="3"]::after {
            width: 75%;
            background-color: var(--info);
        }

        .password-strength[data-strength="4"]::after {
            width: 100%;
            background-color: var(--success);
        }

        .password-hints {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
            display: none;
        }

        .form-control:focus ~ .password-hints {
            display: block;
        }

        .form-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .remember-me input {
            accent-color: var(--primary);
        }

        .forgot-password {
            font-size: 0.9rem;
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.3s ease;
            font-family: 'Inter', sans-serif;
        }

        .forgot-password:hover {
            color: var(--primary);
        }

        .authbtn {
            display: inline-block;
            height:45px;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            text-align: center;
            text-decoration: none;
            cursor: pointer;
            border: none;
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background-color: var(--primary);
            color: white;
            width: 100%;
        }

        .btn-primary:hover {
            background-color: #d1334e;
        }

        .btn-primary::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                to bottom right,
                transparent,
                transparent,
                transparent,
                rgba(255, 255, 255, 0.1),
                transparent,
                transparent,
                transparent
            );
            transform: rotate(30deg);
            animation: shine 3s infinite;
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

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

     .social-login-divider {
            display: flex;
            align-items: center;
            margin: 1.5rem 0;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .social-login-divider::before, .social-login-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background-color: var(--border-color);
            margin: 0 0.5rem;
        }

        .social-login {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .auth-footer {
            text-align: center;
            margin-top: 1.5rem;
            color: var(--text-muted);
            font-size: 0.9rem;
            font-family: 'Inter', sans-serif;
        }

        .auth-footer a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }

        .auth-footer a:hover {
            text-decoration: underline;
        }

        /* Terminal Window */
        .terminal-window {
            background-color: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 1rem;
            margin-top: 2rem;
            font-family: 'Fira Code', monospace;
            font-size: 0.85rem;
            line-height: 1.5;
        }

        .terminal-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            color: var(--text-muted);
        }

        .terminal-btn {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .terminal-btn.red {
            background-color: var(--danger);
        }

        .terminal-btn.yellow {
            background-color: var(--warning);
        }

        .terminal-btn.green {
            background-color: var(--success);
        }

        .terminal-line {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            margin-bottom: 0.5rem;
        }

        .terminal-prompt {
            color: var(--secondary);
        }

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

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

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

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        @keyframes shine {
            0% { transform: rotate(30deg) translate(-30%, -30%); }
            100% { transform: rotate(30deg) translate(30%, 30%); }
        }

        /* Responsive */
        @media (max-width: 992px) {
            .auth-container {
                flex-direction: column-reverse;     
            }
            
            .auth-hero {
                padding: 2rem;
                text-align: center;
            }
            
            .hero-content {
                max-width: 100%;
            }
            
            .auth-form-section {
                width: 100%;
                padding: 2rem;
                border-left: none;
                border-top: 1px solid var(--border-color);
            }
            
            .auth-tabs {
                justify-content: center;
            }
        }

        @media (max-width: 576px) {
            .form-actions {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
        }
.inputs-container {
  width: 100%;
  height:65px;
  position: relative;
  display: flex;           
  flex-direction:column;
   align-items: center;           /* vertical centering */
 }
 
.auth-inputs{
  width: 100%;
  position: relative;
  display: flex;           
  justify-content: center;       /* horizontal centering */
  align-items: center;           /* vertical centering */
  background: green;  
}

.hackerloiloader {
      width: 35px;
      height: 35px;
      border-radius: 50%;
      position: absolute;
      background-color: #000;
      border: 3px solid white;
      display: none;
      justify-content: center;
      align-items: center;
      transform: translateZ(0); /* GPU boost */
    }
.inputs-container svg{
border-radius: 50%;
  width: 35px;
  height:35px;
  animation: spin 2s linear infinite;
  transform-origin: 50% 50%;
}
.inputs-container circle{
      fill: none;
      stroke: #e94560;
      stroke-width: 10;
      stroke-linecap: round;
      stroke-dasharray: 15 30;
      animation: pulse-dash 1.4s ease-in-out infinite;
      transform-origin: 50% 50%;
    }

   @keyframes pulse-dash {
      0% {
        stroke-dashoffset: -10;
      }
      50% {
        stroke-dashoffset: 120;
      }
      100% {
        stroke-dashoffset: 80;
      }
    }
 .auth-status{
   padding-top:5px; 
   font-size:14px; 
   opacity: 0; 
   transition: opacity 0.4s ease;
 }
  .signup-status{
   padding-top:5px; 
   font-size:14px; 
   opacity: 0; 
   transition: opacity 0.4s ease;
 }
  .recover-status{
   padding-top:5px; 
   font-size:14px; 
   opacity: 0; 
   transition: opacity 0.4s ease;
 }
.hide {
    display: none!important
}

.show {
    display: block!important
}


/* ========================================================= Community discuss =====================================================================*/

.boxyTopic {
  position: relative;
  display: flex; 
  justify-content: space-between;
  background-color: var(--bg-card);
   border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 10px;
}
.boxytopicJoin {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card-light);
    color: var(--text-secondary);
    border-radius: var(--radius); 
    border:1px solid var(--border);
    width: 100%;    
    box-sizing: border-box; /* Ensure padding is included in the width calculation */

}
#join-btn {
    display: inline !important;
}

.user-container {
    display:flex;
    flex-direction:column;
    width:20%;
    background-color: var(--bg-card-light);
    color: #fff;
    border-radius: var(--radius);
 }
.user-Pro {
    display: flex;
    flex-direction: column;   
    align-items: center;
    justify-content: center;
}
 @media (max-width: 768px) {
    .user-Pro {
        align-items: flex-start;
        justify-content: flex-start;
    }.fixed {
   position:fixed;
   bottom:0;
   width:90%;
 left:35px;
z-index:99;
}
}
.profilepicture {
    width: 65px; /* Adjust the size as needed */
    height: 65px; /* Ensure the height matches the width to keep it square */
    border-radius: var(--radius); /* Makes the picture rounded */
     display: block; /* Ensures the image behaves like a block element */
}
.info-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* Reduced gap between circles */
  margin-top:0;
  margin-bottom:10px;
  position: relative;
}

.info-circle {
  width: auto; /* Adjust width for better fitting */
  height: auto; /* Height can be adjusted based on your needs */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius); /* Rounded corners */
  background-color: #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #333; /* Text color */
  font-size: 12px; /* Font size */
  text-align: center; /* Center align text */
  overflow: hidden; /* Hide overflow */
  word-wrap: break-word; /* Allow wrapping of long words */
  white-space: normal; /* Allow normal white space handling */
  padding: 5px; /* Padding for better appearance */
  margin: 0 5px; /* Margin between circles */
}

.circle-connector {
  width: auto; /* Smaller connector */
  height: 2px; /* Thinner connector */
  background-color: #bbb;
  margin-top: 0;
  animation: connectorExpand 2s ease forwards;
}
@keyframes circleGlow {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes connectorExpand {
  0% {
    width: 0;
  }
  100% {
    width: 30px;
  }
}
.under-review {
    position: relative;
}
   /* Set the text direction for Arabic text to RTL */
        .arabic-text {
            direction: rtl;
        }
        span .arabic-text {
    direction: rtl;
}
        .Forum-content span .arabic-text {
    direction: rtl;
}
.blurred-content {
    filter: blur(5px);
    width:100%;
}
.hidden-blurred-content {
    filter: blur(15px);
    width:100%;
 }

.under-review-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-dark);
    border:2px solid gray;
    padding: 10px;
    border-radius: var(--radius);
    font-weight: bold;
    z-index: 1; /* Ensure the text is above the blurred content */
}
.hidden-paragraph{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-dark);
    border:2px solid gray;
    padding: 10px;
    border-radius: var(--radius);
    font-weight: bold;
    z-index: 1; /* Ensure the text is above the blurred content */
}
.FollowButton {
    background-color: transparent;
    position:relative;
    left:0;
    top:0;
    bottom:10px;
    width:100%;
    color: white;
    border: 1px solid white;
    padding: 1px 5px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
}
.topic-content h2{
    margin-top:0;
}
.topic-content strong{
    font-size:12px;
}
.FollowButton:hover {
    background-color: transparent;
    color: #0056b3;
    border: 1px solid #0056b3;
}


    .post-content-wrapper {  
        display: flex;
        height:auto;
        min-height:120px;
     }
    .post-content {
    flex-grow: 1; /* Content will expand to take the remaining space */
    padding-right: 0; /* Space for the image on the right */
}
    .post-content { 
        position: relative;
        width: 100%;
        height:auto;
        margin-top:0;
        padding:5px;
    }
/* Styling for the image */
.post-image {
    width: 300px; /* Fixed width for the image on desktop */
    margin-left: 20px;
    margin-right: 5px;
    margin-bottom: 10px; /* Space between image and content */
    float: right; /* Makes the image float to the right of the content */
}
.pull-right{
    height:auto;
}


/* Make the image responsive */
.BlogPostImg {
    width: 100%;
    height: auto; /* Ensure the image is responsive */
    border-radius: var(--radius); /* Optional rounded corners */
}
.BlogPostImg {
    position: relative;
    transition: transform 0.3s ease; /* Adds a smooth transition effect */
}
/* Hover effect to make the image bigger */
.BlogPostImg:hover {
    transform: scale(2.1); /* Scales the image to 110% of its original size on hover */
    z-index:9999;
}
.userinteraction-Container {
    display: grid !important;;
    grid-template-columns: repeat(3, 1fr) !important;; /* Equal width columns */
    gap: 0 !important;; /* Visual separator */
    background: #2e2e2e; /* Grid line color */
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #2e2e2e;
    font-family: 'Inter', sans-serif;
}

/* Shared container styles */
.views-container, 
.likes-container, 
.switch-container {
    display: flex !important;;
    align-items: center !important;;
    justify-content: center !important;;
    gap: 0.5rem !important;;
    padding: 0.75rem;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    height: 100%;
}

/* Interaction elements */
 .heart-btn img {
    width: 24px;
    height: 24px;
    filter: invert(0.8);
    transition: all 0.2s ease;
}
.views-container img {
    width: 20px;
    height: 15px;
    filter: invert(0.8);
    transition: all 0.2s ease;
}
/* Like button animation */
.heart-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Apply a color change only to the inside of the heart */
.heart-btn:hover img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(73%) saturate(5255%) hue-rotate(331deg) brightness(106%) contrast(105%);
    /* This filter will apply a pinkish color to the inside of the heart */
}

/* Liked state: Add animation when liked */
.heart-btn.liked img{
    animation: heartPulse 0.4s ease-in-out;
}
/* Toggle switch - centered */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    margin: 0;
    align-items: center;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #999;
    transition: .3s;
}

input:checked + .slider {
    background-color: #4d90fe;
}

input:checked + .slider:before {
    transform: translateX(20px);
    background-color: white;
}

/* Text labels */
.ViewsForumCounter, 
.likeCount,.switchname {
    min-width: 60px;
    text-align: center;
}

.switch-container span {
    white-space: nowrap;
}
/* Mobile adjustments for screens ≤ 480px */
@media (max-width: 480px) {
    .userinteraction-Container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0 !important;
        border-width: 1px;
    }

    .views-container, 
    .likes-container, 
    .switch-container {
        gap: 0.25rem !important;
        padding: 0.4rem;
        font-size: 0.75rem;
    }

    .heart-btn img {
        width: 18px;
        height: 18px;
    }

    .views-container img {
        width: 16px;
        height: 12px;
    }

    .switch {
        width: 34px;
        height: 18px;
    }

    .slider:before {
        height: 12px;
        width: 12px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .slider:before {
        transform: translateX(16px);
    }

    .ViewsForumCounter, 
    .likeCount, 
    .switchname {
        min-width: 45px;
        font-size: 0.7rem;
    }
}


@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Optional: if you want the liked state to animate */
.heart-btn.liked img {
 filter: brightness(0) saturate(100%) invert(48%) sepia(73%) saturate(5255%) hue-rotate(331deg) brightness(106%) contrast(105%);
}


/* Prompt message styling */
.like-prompt {
    position: absolute;
    transform: translateX(80%);
    top:80%;
    background-color: #333;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
 
 /* Style the dropdown button */
  .Topicdropdown-button {
    position:relative;
    top:0;
    left:0;
    background-color: transparent;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    font-weight:900;
    cursor: pointer;
  }
 .Topicdropdown-button:hover {
    background-color: transparent;
    color: royalblue;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
  }
  .Topicdropdown{
         background-color: var(--bg-card-light);
  }
  /* Style the dropdown content (hidden by default) */
  .Topicdropdown-content {
      position:absolute;
     right: 0;       /* unset right */
     transform-origin: top left;
     z-index:9999999;
   }
@media(max-width: 768px){
     .Topicdropdown-content {
      position:relative;
     left: 0;     
}
}
  /* Style the dropdown content buttons */
  .Topicdropdown-content button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    text-decoration: none;
    background-color: #f9f9f9;
    color: #333;
    border: none;
    cursor: pointer;
  }

  /* Add hover effect to the dropdown content buttons */
  .Topicdropdown-content button:hover {
    background-color: #ddd;
  }
.closediscussionmodal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.closediscussionmodal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding:10px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: var(--radius);
}

.closediscussionmodal button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

button#confirmclosingdiscussion {
    background-color: #4CAF50;
    color: white;
}

button#cancelclosingdiscussion {
    background-color: #f44336;
    color: white;
}
 
.ReportModal {   
    padding-right:25%;
    padding-left:25%;
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top:0;
    width:100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
     justify-content: center; /* Center the modal */
    align-items: center; /* Center the modal vertically */
}

@media(max-width: 768px){
    .ReportModal {   
    padding-right:0;
    padding-left:0;
}
}
.TopicpopupContent{
  background-color:transparent;
  color:white;
  width:100%;
  height:auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
 .Repostselect, .Reporttextarea{
    width: 100%;
    padding: 0;
    margin: 10px 0 20px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    box-sizing: border-box;
}
 
  .close {
  position: absolute;
  top:0;
  right: 0;
  width: 35px;              /* Equal width */
  height: 35px;             /* Equal height */
  border-radius: var(--radius);
  background: red;
  color: #FFF;
  font-size: 1.5rem;
  display: flex;            /* Center text horizontally & vertically */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 99999999;
}
 
.globalpopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start; /* Align content to the top */
    justify-content: center; /* Center horizontally */
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

/* Popup content styles */
.globalpopup-content {
    z-index: 9999999;
    background: #fff;
    border-radius: var(--radius);
    padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  width: 100%; /* You can adjust the width as needed */
  height:auto;
  color:white;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 5%;
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -100px); /* Start above and center */
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Show the popup */
.globalpopup.show {
    opacity: 1;
    visibility: visible;
}

/* Animate the content drop-down */
.globalpopup.show .globalpopup-content {
    transform: translate(-50%, 0); /* Drop down to its final position */
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease; /* Smooth transition */
}
/* With increased specificity */
.globalpopup-content.gradient-success {
    background: linear-gradient(120deg, #2ecc71, #27ae60);
}

.globalpopup-content.gradient-failure {
    background: linear-gradient(120deg, #e74c3c, #c0392b);
}

/* Alternatively, using !important */
.gradient-success {
     background: linear-gradient(120deg, #2ecc71, #27ae60) !important;
}

.gradient-failure {
      background: linear-gradient(120deg, #e74c3c, #c0392b) !important;
}
.Topicpopup-content.gradient-success {
    background: linear-gradient(120deg, #2ecc71, #27ae60);
}

.Topicpopup-content.gradient-failure {
    background: linear-gradient(120deg, #e74c3c, #c0392b);
}
.boxyoutput {
    background-color: #333; /* White background */
    border: 1px solid #e0e0e0; /* Light gray border */
    border-radius: var(--radius); /* Rounded corners */
    padding: 20px; /* Padding around content */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
    max-width: 800px; /* Maximum width */
    margin: 0 auto; /* Center horizontally */
}

form.ask {
    background: var(--bg-card-light);
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
}

/* ViewsForumCounter Styles */
form.ask label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.2rem;
    color: var(--secondary);
}

/* Input and Select Styles */
form.ask input[type="text"],
form.ask input[type="text"],
form.ask select  {
    width: 100%;
    height:40px;
    padding:0;
    margin-bottom: 0.5rem;
    background: var(--bg-dark);    
    border: 1px solid  var(--border);
    border-radius: var(--radius);
    box-sizing: border-box;
    font-size: 1rem;
    color: #fff;
}
 
form.ask select {
    appearance: none;
    background: var(--bg-dark) url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 0.75rem center;
    background-size: 1rem 1rem;
}
/* Textarea Styles */
form.ask textarea {
    background: var(--bg-dark);    
    border: 1px solid  var(--border);
    border-radius: var(--radius);
    padding:5px;
    color:white;
    resize: vertical;
    font-family: Arial, sans-serif;
}
.ask-error-message{
   color: white;display:none; 
}
.panel-login .form-group {
  margin-bottom: 0; /* Adjust vertical spacing between form groups */
width:100%;
    }
.panel-login .form-group label {
  display: block;
  margin-bottom: 5px; /* Add a bit of spacing between label and input */
}
.panel-login input[type="text"]:hover,
.panel-login input[type="email"]:hover,
.panel-login input[type="password"]:hover,
.panel-login input[type="text"]:focus,
.panel-login input[type="email"]:focus,
.panel-login input[type="password"]:focus {
  outline: none;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  border-color: #008CBA;
  border:2px solid royalblue;
}
.form-group {
  margin-top: 20px;
  text-align: left;
  position: relative; 
}
.globalloader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px; /* bigger */
  height: 30px;
  border-radius: var(--radius);display:none;
  border: 5px solid white; /* light outer circle */
  border-right: 5px solid black; /* stylish colored part */
  border-left:5px solid black;
  box-shadow: 0 0 15px rgba(20, 210, 255, 2), 0 0 30px rgba(58, 123, 213, 2);
 animation: rotate-gradient 2.5s ease-in-out infinite;
}
/* Rotation keyframes: rotates then reverses */
@keyframes rotate-gradient {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}
.definition{
   padding: 25px;
    background: royalblue;
    color:black;
    border-radius: var(--radius);
    box-shadow: 0 0 50px 0 rgba(28, 28, 28, 0.1);
    width: 100%;
    margin: 0 auto;
}

 
.ReplyBoxyv2 {
            padding: 0;
            background: transparent;
            border-radius: var(--radius);
            width: auto;
            margin: 0 auto;
         }
      /* Modal Base Styling */
  .profilemodal {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1000;
  }

  /* Show modal */
  .profileshow {
    transform: translateX(0);
  }

  /* Close button styling */
  .profileclosebtn {
    position: absolute;
    top: 0;
    border-radius:var(--radius);
    right: 5px;
    font-size: 24px;
    cursor: pointer;
  }

  /* Modal Content */
  .profilemodal-content {
    background-color: var(--bg-dark);
    padding: 15px;
    margin-top:0;
    overflow-y: auto;
    height: 100%;
  }

  /* Hidden modal class to toggle visibility */
  .profilehidden {
    display: none;
  }
  .profileloading{
      margin-top:60px;
  }  
  .visitedprofile-headerv2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-top:20px;
}
.content-section .learning-progress{
      background-color: var(--bg-card);

}
.profile-header:hover {
  transform: scale(1.02);
}

.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-details {
  flex: 1;
  margin-left: 25px;
}

.username-follow {
  display: flex;
  align-items: center;
}

.username-follow h1 {
  margin-right: 15px;
}

.follow-button {
  padding: 8px 18px;
 margin-top:25px;
}

.followers-count {
  margin-top:10px;
  margin-left:0;
  color: var(--primary);
  font-size: 14px;
}

.profile-details h3 {
  font-size: 20px;
  color: #6c63ff;
  margin-bottom: 15px;
}

.profile-details p {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  max-width: 600px;
}

/* Social Media Icons */
.social-media {
  margin-top: 20px;
}

.social-icon {
  display: inline-block;
  margin-right: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  color: white;
  padding: 3px 8px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-icon.twitter {
  background-color: #1da1f2;
}

.social-icon.linkedin {
  background-color: #0077b5;
}

.social-icon.github {
  background-color: #333;
}
.social-icon.insta{
  background:darkred;  
}
.social-icon:hover {
  opacity: 0.8;
}

/* Content Section Layout */
.content-section {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

/* Learning Progress (30% width) */
.learning-progress {
  flex: 0 0 100%;
  background-color: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.learning-progress h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.progress-item {
  margin-bottom: 25px;
}

.progress-item h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--text-secondary);
}

.badge-container {
  display: flex;
  align-items: center;
}

.badge-image {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  margin-right: 15px;
}

.badge-title {
  font-size: 16px;
  color: #6c63ff;
}

.points-earned {
  font-size: 16px;
  color: #ccc;
}

.time-spent {
  font-size: 16px;
  color: #555;
}

/* Progress Bar */
.progress-bar-container {
  background-color: #e5e5e5;
  border-radius: var(--radius);
  overflow: hidden;
  height: 10px;
  margin-top: 5px;
}

.progress-bar {
  background-color: #6c63ff;
  height: 100%;
  border-radius: var(--radius);
}

/* Shared Topics (70% width) */
.shared-topics {
  flex: 0 0 70%;
  background-color: white;
  padding: 30px;
  border-radius: var(--radius);
  margin-left:5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

.shared-topics h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #6c63ff;
}

.topic-list {
  list-style: none;
}

.topic-item {
  font-size: 18px;
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f4f7fa;
  border-radius: var(--radius);
  transition: background-color 0.3s ease;
}

.topic-item:hover {
  background-color: #6c63ff;
  color: white;
}
.emojibigsize{
    font-size:100px;
    width:170px;
    height:170px;
}
/* Style for the rating section */
.rating-section {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  text-align: center; /* Center the text content within the container */
  height:auto;
  padding:0;
  margin-top: 35px; /* Add space above the buttons */
}

/* Style for the paragraph instructing the user to rate the answer */
.rate-paragraph {
 padding:0;
  font-size: 20px;
  color: #fff;
  margin-left:500px;
}

/* Style for the container holding the rating buttons */
.rating-buttons {
  display: flex;
  align-items: center;
  margin-top:0; /* Adjust the margin to control the spacing */
}

/* Style for the individual rating button */
.rating-button {
  background: none;
  border: none;
  cursor: pointer;
   display: inline-block;
  padding: 5px 5px;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  border-radius: var(--radius);  margin-top:0; /* Adjust the margin to control the spacing */
  transition: all 0.6s ease;
}

/* Style for the rating button on hover */
.rating-button:hover {
  color: #ffbb00;
  background:transparent;
}

/* Style for checked (selected) rating */
.rating-button.checked {
  color: #ffbb00;
}

.loadmore{
    position:relative;
    top:50px;
    left:0;
    background-color: transparent;
    color: black;
    border: 2px dashed black;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: bold;
    width:160px;
}
.loadmore:hover{
    background-color: transparent;
    color: #0056b3;
    border-top: 2px solid #0056b3;
    border-right: 2px solid #0056b3;
    border-bottom: 2px solid #0056b3;
}
/* Rating Section */
.rating-sectionv2 {
    display: flex;
    align-items: center;
    margin-top: 8px;
    margin-left:20%;
}

.rate-paragraphv2 {
    margin-right: 15px;
    font-weight: bold;
    color: #fff;
    font-size: 15px;
}

.rating-buttonsv2 button {
    background-color: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
}

.rating-buttonsv2 button:hover {
    color: #ffbb00;
}

/* Word Display for Star Ratings */
.word-displayv2 {
    margin-left: 10px;
    font-size: 14px;
    font-weight: bold;
    color:var(--secondary);
}

/* Success/Error Message */
.success-messagev2 {
    color: #27ae60;
    margin-left: 15px;
    font-size: 13px;
    font-weight: bold;
}

.error-messagev2 {
    color: #e74c3c;
    margin-left: 15px;
    font-size: 13px;
    font-weight: bold;
}

/* No More Replies */
.no-more-repliesv2 {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 20px;
}
.form-group { margin-bottom: 15px; }
    label { font-weight: bold; display: block; margin-bottom: 5px; color:red;}
    select, textarea {color:var(--text--primary);
      width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: var(--radius);
    }
.hidden { display: none; }
textarea.form-control {color:var(--text--primary);
    width: 100%;
    height:auto;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    resize: none; /* Allow vertical resizing */
}
/* Style the topic content */
.topic-content {
    height:100%;
    width:100%;
    background-color: var(--bg-card);
    border-left:1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius);
    margin-top: 0;
    overflow-wrap: anywhere;     /* Breaks words anywhere if needed */
  word-break: break-word;
}

.topic-content .title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.topic-content > div {
    margin-bottom: 10px;
    color: #555;
}

.label {
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 8px;
    color: var(--secondary);
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.rating-item{
  overflow-wrap: anywhere;    
  word-break: break-word;    
}
.rating-item span:first-child {
    font-weight: 500;
    min-width: 50px;max-width: 100px;
   color: var(--secondary);
}

.plus-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 16px;
    cursor: pointer;
}

.plus-btn:hover {
    background-color: #0056b3;
}

.progress-bar {
    flex: 1;
    height: 12px;max-width:100%;
    background-color: #e0e0e0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
 
.progress-fill {
    height: 100%;
    background-color: #28a745;
    width: 2px;
    transition: width 0.3s ease;
}

.winner-badge {
    background-color: #28a745;
    color: #fff;
    padding: 2px 6px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: bold;
}

.editable-item {
    display: inline-block;
    white-space: nowrap;
}

/* Overlay modal background */
.ReportModal, .Editmodal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* semi-transparent background */
  backdrop-filter: blur(4px); /* optional blur */
  justify-content: center;
  align-items: center;
}
.TopicpopupContent, .edit-modal-content {
  background-color: #333;
  margin: auto;
  padding: 0.5rem;
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  z-index:999999999;
}

/* Modal fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.closeReply {
  position: absolute;
  top: 78%;
  right: 0;
  width: 35px;              /* Equal width */
  height: 35px;             /* Equal height */
  border-radius: var(--radius);
  background: red;
  color: #FFF;
  font-size: 1.5rem;
  display: flex;            /* Center text horizontally & vertically */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 99999999;
}

.closeReply:hover {
  color: #333;
}
/* Close button */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #333;
}
#reportForm, #editForm {
padding: 1rem;
border-radius: var(--radius);
}

/* Form elements */
#reportForm label, #editForm label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-weight: 600;
  color: var(--secondary);
}

#editForm input[type="text"],
#editForm input[type="number"],
#editForm textarea,
#reportForm input[type="text"],
#reportForm input[type="number"],
#reportForm textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s;
}

#editForm input:focus,
#editForm textarea:focus,
#reportForm input:focus,
#reportForm textarea:focus {
  border-color: #007bff;
  outline: none;
}

/* Save button */
#saveeditchange {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#saveeditchange:hover {
  background-color: #0056b3;
}


 /* Sidebar Category Container */
.category-container { 
  background-color: var(--bg-card-light);
  display: flex;
    align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.left-sidebar-btn {
     width:100%;
    height:auto;
    font-size: 16px;
    color: #333;
    border-radius: 0;
    font-weight: 500;
}

.left-sidebar-btn:hover {
    color: #007bff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.left-sidebar-btn.active {
    color:var(--secondary);
    font-weight: 700;
}

.left-sidebar-btn.active:hover {
  color: #007bff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Category Switch Container */ 
.category-switch {
  display: flex;
  width:30%;
  flex-direction:column;
  align-items: center;
  justify-content: center;
  gap:5px
  padding:5px;
}

/* Hide the checkbox input */
.categorie-toggle-switch {
  display: none;
}

/* Category Slider */
.category-slider {
  position: relative;
  width: 36px;
  height: 22px;
  background-color: #7F8C8D;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.category-slider:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  background-color: white;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

/* Checked Slider State */
.categorie-toggle-switch:checked + .category-slider {
  background-color: #2ECC71;
}

.categorie-toggle-switch:checked + .category-slider:before {
  transform: translateX(14px);
}

/* Switch Label */
.categorie-switchname {
  color:var(--secondary);
  font-weight: 380;
  font-size: 14px;
}

/* Label Color Change When Checked */
.categorie-toggle-switch:checked + .category-slider + .categorie-switchname {
  color: #2ECC71;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .profile-wrapper {
    margin-right: 10px;
    margin-left: 10px;
  }

  .visitedprofile-header {
    flex-direction: column; /* Stack header contents vertically */
    align-items: flex-start;
  }

  .profile-image img {
    width: 100px;
    height: 100px;
  }

  .profile-details {
    margin-left: 0;
    margin-top: 10px; /* Add space between image and details */
  }

  .username-follow h1 {
    font-size: 20px; /* Adjust font size for smaller screens */
  }

  .social-icon {
    font-size: 12px;
    padding: 6px 10px;
    margin-right: 10px;
  }

  .content-section {
    flex-direction: column; /* Stack content sections */
  }

  .learning-progress {
    padding: 15px;
  }

  .shared-topics {
    margin-top:5px;
    padding: 15px;
  }
}      
        
@media (max-width: 600px) {
    #reportForm{
   width:100%;
}
    .user-container { 
    display: flex;
    flex-direction: row; /* Default to row direction */
    width:100%;
    border-radius: var(--radius);
}
 

.profile-topic {
    margin-left:0;
    margin-top:0;
    width: 60px; /* Adjust size as needed */
    height: 60px; /* Adjust size as needed */
}
 .user-info {
    margin-top:0;
    margin-left:0;
    width:60%;
    padding:5px;
    border-radius: var(--radius);
}
.info-container{
    
}
.info-circle span{
  font-size:10px;
}
.topic-content strong{
  font-size:10px;
}
.user-info p, .user-info button {
    margin:1px 0;
}

 .post-content-wrapper {
        flex-direction: column; /* Stack items vertically */
    }
    
    .post-content {
        padding-right: 0; /* Remove padding on mobile */
    }
    
    .post-content,
    .post-image {
        margin-left: 0; /* Reset margin */
        width:100%;
    }
        .post-image {
        width: 100%; /* Make the image full width on mobile */
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 10px; /* More space between image and text */
        float: none; /* Remove floating */
    }
    
    .BlogPostImg{
    width:100%;
    }
    /* Hover effect to make the image bigger */
.BlogPostImg:hover {
    transform: scale(1); /* Scales the image to 110% of its original size on hover */
    z-index:9999;
}
 
.user-JoinBoxyContainer .borderradiusbtn {
    font-size: 12px; /* Adjust the font size */
    padding:2px; /* Adjust padding (top/bottom, left/right) */
    line-height: 1; /* Adjust the line height */
    display: inline-block; /* Ensure proper button-like styling */
}
  .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    background-color: red;
    color: white;
    padding: 5px 7px;
    border: 2px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}
 
}
@media (max-width: 768px) {
    .post-container {
        flex-direction: column; /* Stack content vertically on mobile */
    }
    .boxyTopic {
flex-direction: column;
}
}
.edit { width:100%; background-color: #f0f0f0; color: black; border: none; border-radius:0; padding: 5px 10px; cursor: pointer; font-weight: bold; transition: background-color 0.3s; }
.edit:hover { background-color: darkgray; }

     /* Layout */
        .index-container {
            width: 100%;
            margin: 0 auto;
            padding: 0 2rem;
        }
  
        /* Hero Section */
        .index-hero {
            height: 100vh;
            min-height: 700px;
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
            position: relative;
            overflow: hidden;
        }

        .index-hero:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAyKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
            opacity: 2;
        }

        .index-hero-content {
            position: relative;
            z-index: 2;
            width: 50%;
        }

        .index-hero-subtitle {
            color: var(--secondary);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 0.9rem;
            margin-bottom: 1rem;
            display: inline-block;
            font-weight: 600;
        }

        .index-hero-description {
            font-size: 1.1rem;
            margin-bottom: 2.5rem;
            color: var(--text-secondary);
        }

        .index-hero-buttons {
            display: flex;
            gap: 1rem;
        }

        .index-hero-image {
            position: absolute;
            right: 0;
            top: 20%;
            transform: translateY(-50%);
            width: 50%;
            z-index: 1;
            opacity: 0.9;
        }

        .index-hero-image img {
            width: 100%;
            height: auto;
            filter: drop-shadow(0 10px 30px rgba(0, 240, 255, 0.2));
        }

        /* Services Section */
        .index-index-services {
            background-color: var(--bg-darker);
            position: relative;
        }

        .index-section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .index-section-header h2 {
            display: inline-block;
        }

        .index-section-description {
            max-width: 700px;
            margin: 0 auto 2rem;
            color: var(--text-secondary);
            text-align: center;
        }

        .index-services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            position: relative;
            z-index: 2;
        }

        .index-services-card {
            background-color: var(--bg-card);
            border-radius: var(--radius);
            padding: 2.5rem 2rem;
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .index-services-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow);
            border-color: var(--secondary);
        }

        .index-services-card:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(77, 45, 255, 0.1), rgba(233, 69, 96, 0.1));
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .index-services-card:hover:before {
            opacity: 1;
        }

        .index-services-icon {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            color: var(--secondary);
        }

        .index-services-title {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .index-services-description {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
        }

        .index-services-link {
            display: inline-flex;
            align-items: center;
            color: var(--primary);
            font-weight: 600;
        }

        .index-services-link i {
            margin-left: 0.5rem;
            transition: transform 0.3s ease;
        }

        .index-services-link:hover i {
            transform: translateX(5px);
        }

        /* About Section */
        .index-about {
            background-color: var(--bg-dark);
        }

        .index-about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .index-about-image {
            position: relative;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .index-about-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        .index-about-image:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(233, 69, 96, 0.2));
            z-index: 1;
        }

        .index-about-text h2 {
            margin-bottom: 1.5rem;
        }

        .index-about-features {
            margin-top: 2rem;
        }

        .index-feature-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 1.5rem;
        }

        .index-feature-icon {
            color: var(--primary);
            font-size: 1.2rem;
            margin-right: 1rem;
            margin-top: 0.2rem;
        }

        .index-feature-text h4 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }

        .index-feature-text p {
            margin-bottom: 0;
            color: var(--text-secondary);
        }

        /* CTA Section */
        .index-cta {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            text-align: center;
            padding: 6rem 0;
            position: relative;
            overflow: hidden;
        }

        .index-cta:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
            opacity: 1;pointer-events: none;

        }

        .index-cta-content {
            position: relative;
            z-index: 222;
        }

        .index-cta h2 {
            color: white;
            font-size: 2.8rem;
            margin-bottom: 1.5rem;
        }

        .index-cta p {
            color: rgba(255, 255, 255, 0.9);
            max-width: 700px;
            margin: 0 auto 2.5rem;
            font-size: 1.1rem;
        }

        .index-cta .index-btn {
            background: white;
            color: var(--primary);
            font-weight: 700;
            padding: 1rem 2.5rem;
            font-size: 1rem;
        }

        .index-cta .index-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
 .subscribe-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .subscribe-form input[type="email"] {
    padding: 0.75rem 1rem;
    border-radius: 0;
    border: none;
    width: 280px;
    max-width: 100%;
    font-size: 1rem;
  }
 

.subscribe-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.8rem 1.2rem;
  border-radius: 0;
  font-weight: 500;
  color: #fff;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s ease-in-out;
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}

.toast.show {
  opacity: 1;
}

.toast.hidden {
  display: none;
}
        /* Footer */
        footer {
            background-color: var(--bg-darker);
            padding: 5rem 0 2rem;
            position: relative;
        }

        .index-footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .index-footer-logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: white;
            font-family: 'Montserrat', sans-serif;
            margin-bottom: 1.5rem;
            display: inline-block;
        }

        .index-footer-logo span {
            color: var(--primary);
        }

        .index-footer-about p {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
        }

        .index-social-links {
            display: flex;
            gap: 1rem;
        }

        .index-social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%; 
            border: 2px solid var(--primary);
            background-color: var(--bg-card);
            color: var(--text-secondary);
            transition: all 0.3s ease;
        }

        .index-social-links a:hover {
            border: 2px solid var(--secondary);
            color: white;
        }

        .index-footer-links h3 {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            color: white;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .index-footer-links h3:after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 2px;
            background: var(--primary);
        }

        .index-footer-links ul {
            list-style: none;
        }

        .index-footer-links ul li {
            margin-bottom: 0.8rem;
        }

        .index-footer-links ul li a {
            color: var(--text-secondary);
            transition: all 0.3s ease;
            display: inline-block;
        }

        .index-footer-links ul li a:hover {
            color: var(--primary);
            transform: translateX(5px);
        }

        .index-footer-contact p {
            display: flex;
            align-items: flex-start;
            color: var(--text-secondary);
            margin-bottom: 1rem;
        }

        .index-footer-contact i {
            margin-right: 0.8rem;
            color: var(--primary);
            margin-top: 0.2rem;
        }

        .index-footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid var(--border-color);
        }

        .index-footer-bottom p {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        /* Responsive */
        @media (max-width: 992px) {
       .index-hero {
                min-height: 700px;
            }
            
            .index-hero-content {
               width: 500px;
            }
            
            .index-hero-image {
                width: 45%;
            }
            
            .index-about-content {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            
            .index-about-image {
                order: -1;
                max-width: 600px;
                margin: 0 auto;
            }
        }

        @media (max-width: 768px) {
 
            .index-hero {
                min-height: auto;
                padding: 8rem 0;
                height: auto;
            }
            
            .index-hero-content {
                 width: 100%;
                text-align: center;
            }
            
            .index-hero-buttons {
                justify-content: center;
            }
            
            .index-hero-image {
                position: relative;
                width: 100%;
                max-width: 500px;
                margin: 3rem auto 0;
                transform: none;
                top: auto;
                right: auto;
            }
            
           .index-hero nav ul {
                display: none;
            }
            
            .index-mobile-menu-btn {
                display: block;
            }
            
            .index-cta h2 {
                font-size: 2.2rem;
            }
        }

        @media (max-width: 576px) {
            .index-hero-buttons {
                flex-direction: column;
                gap: 1rem;
            }
            
            .index-btn {
                width: 100%;
                text-align: center;
            }
            
            .index-services-grid {
                grid-template-columns: 1fr;
            }
            
            .index-cta {
                padding: 4rem 0;
            }
            
            .index-cta h2 {
                font-size: 1.8rem;
            }
        }

        /* Animations */
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-20px);
            }
        }

        .index-floating {
            animation: float 6s ease-in-out infinite;
        }

        /* Particles */
        .index-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            overflow: hidden;
        }

        .index-particle {
            position: absolute;
            background-color: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            pointer-events: none;
        }
   .index-path-card {
            background-color: var(--bg-card);
            border-radius: var(--radius);
            padding: 2rem;
            border-left: 4px solid var(--primary);
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .index-path-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
            border-left-color: var(--secondary);
        }
        
        .index-path-level {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 1rem;
        }
        
        .index-level-beginner {
            background-color: rgba(0, 230, 118, 0.1);
            color: var(--success);
        }
        
        .index-level-intermediate {
            background-color: rgba(255, 193, 7, 0.1);
            color: var(--warning);
        }
        
        .index-level-advanced {
            background-color: rgba(233, 69, 96, 0.1);
            color: var(--primary);
        }
        
        .index-path-progress {
            margin-top: auto;
            padding-top: 1rem;
        }
        
        .index-progress-bar {
            height: 6px;
            background-color: var(--bg-card-light);
            border-radius: 3px;
            margin-bottom: 0.5rem;
            overflow: hidden;
        }
        
        .index-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 3px;
        }
        
        /* CTF Cards */
        .index-ctf-card {
            background-color: var(--bg-card);
            border-radius: var(--radius);
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
        }
        
        .index-ctf-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
            border-color: var(--secondary);
        }
        
        .index-ctf-image {
            height: 180px;
            overflow: hidden;
            position: relative;
        }
        
        .index-ctf-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .index-ctf-difficulty {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background-color: var(--bg-dark);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .index-ctf-content {
            padding: 1.5rem;
        }
        
        .index-ctf-stats {
            display: flex;
            justify-content: space-between;
            margin-top: 1rem;
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        
        .index-ctf-stat {
            display: flex;
            align-items: center;
        }
        
        .index-ctf-stat i {
            margin-right: 0.5rem;
            color: var(--text-secondary);
        }
        
        /* Community Section */
        .index-community-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }
        
        .index-community-feature {
            background-color: var(--bg-card-light);
            padding: 2rem;
            border-radius: var(--radius);
            text-align: center;
            transition: all 0.3s ease;
        }
        
        .index-community-feature:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
        }
        
        .index-community-icon {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            color: var(--secondary);
        }
        
        /* Tool Cards */
        .index-tool-card {
            background-color: var(--bg-card);
            border-radius: var(--radius);
            padding: 1.5rem;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
            border-left: 3px solid var(--primary);
        }
        
        .index-tool-card:hover {
            transform: translateX(5px);
            background-color: var(--bg-card-light);
        }
        
        .index-tool-icon {
            font-size: 1.5rem;
            margin-right: 1.5rem;
            color: var(--primary);
        }
        
        .index-tool-info h4 {
            margin-bottom: 0.5rem;
        }
        
        .index-tool-info p {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 0;
        }
.socialicon {
    display: inline-block;
    background-image: url('https://www.ptutorials.com/images/div/Social-Media-Logo.webp');
    vertical-align: middle; background-repeat: no-repeat;
}
.facebook{background-position: -24px -22px;  width: 40px; height:40px;background-size: 320px auto;margin-left:0;}
.X{background-position: -84px -22px;  width: 40px; height:40px;background-size: 320px auto;margin-left:0;}
.pinterest{background-position: -142px -107px;  width: 40px; height:40px;background-size: 320px auto;margin-left:0;}
.instagram{background-position: -142.5px -22px;  width: 40px; height:40px;background-size: 320px auto;margin-left:0;}
.policy-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.policy-section h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.policy-section h3 {
  margin-top: 2rem;
  color: var(--secondary);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.3rem;
}

.policy-section p,
.policy-section li {
  font-size: 1rem;
  color: var(--text-secondary);
}

.policy-section ul,
.policy-section ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.policy-section a {
  color: var(--primary);
  text-decoration: none;
}

.policy-section a:hover {
  text-decoration: underline;
}

.policy-section .brand-highlight {
  color: var(--primary);
}

.policy-section .effective-date {
  font-style: italic;
  color: var(--text-muted);
}
.quiz-section {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-dark);
    border-radius: var(--radius);
    border: 3px solid #007bff;
  }
  .quiz-options {
    list-style-type: none;
    padding-left: 0;
  }
  .quiz-options li {
    padding: 8px;
    margin: 5px 0;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius:  var(--radius);
  }
  .quiz-options li:hover {
    background: #e9ecef;
  }
  .exam-container {
position:relative;
align-items: center;
  justify-content: center;
  text-align: center;
    width: 100%;
    margin: 50px auto;
    background-color: var(--bg-dark);
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.code-block {
    background-color:var(--bg-dark);
    padding: 10px;
    border-radius:  var(--radius);
} 
.answer-inputs {
    margin-top: 20px;
}

input.incorrect {
    color:black;  /* Ensure text color applies */
    background-color: lightred !important; /* Light green background */
    border: 2px solid red !important; /* Green border */
}

input.correct {
    color:black;  /* Ensure text color applies */
    background-color: #e6ffe6 !important; /* Light green background */
    border: 2px solid green !important; /* Green border */
}

/* Ensure styling still applies even if input is disabled */
input.correct:disabled {
    color: black !important;
    background-color: #e6ffe6 !important;
    border: 2px solid green !important;
    opacity: 1; /* Prevents default faded look */
    pointer-events: none; /* Ensure it's not editable */
}
/* Ensure styling still applies even if input is disabled */
input.incorrect:disabled {
    color: black !important;
    background-color: lightred !important; /* Light green background */
    border: 2px solid red !important; /* Green border */
    opacity: 1; /* Prevents default faded look */
    pointer-events: none; /* Ensure it's not editable */
}
.feedback {
background:var(--bg-dark);
border:1px solid black;
width: 70%;
height:auto;
position:fixed;
left:25%;
top:90px;
text-align: center;
}

 
#feedback {
    color: #fff;
}

#attempts {
    font-weight: bold;
}

/* Base Quiz Container */
.quizzescontent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background: var(--bg-darker);
    color: var(--text-primary);
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
}

#timer {
  font-size: 1.2rem;
  color: #f44336;
  margin-bottom: 20px;
}

#countdown {
  font-weight: bold;
  color: #e91e63;
}

/* Main Quiz Container */
#quiz-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    width: 100%;
     padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.quiz-question {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.4;
    position: relative;
    padding-bottom: 1rem;
}

.quiz-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}
/* Option Table Styling */
.quizzescontent table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

.quizzescontent td {
border:1px solid black;
  padding: 10px;
  text-align: left;
}

.quizzescontent input[type="radio"] {
  margin-right: 10px;
  accent-color: #00fa9a; /* Custom accent color for the radio buttons */
}

.quizzescontent label {
  font-size: 1.2rem;
  cursor: pointer;
}

/* Next Button */
.quizzescontent #next-container {
  margin-top: 30px;
}

.quizzescontent #next {
  background-color: var(--primary);
  color: var(--text-primary);
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.quizzescontent #next:hover {
 animation: scaleUp 0.5s ease-out;
}

.quizzescontent #next:active {
  background-color: #388e3c;
}
.quizzescontent .option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.quizzescontent .option-checkbox {
    margin-right: 10px;
}

.quizzescontent .option-label:hover {
    color:white;
    background-color: #333;
}

.quizzescontent .selected {
    background-color: #98fb98; /* Highlight color */
    color: black;
}

.quizzescontent .disabled {
    background-color: #ccc !important; /* Gray out the button */
    color: #666 !important; /* Dim text */
    cursor: not-allowed; /* Show disabled cursor */
    opacity: 0.6; /* Reduce opacity */
    pointer-events: none; /* Prevent clicking */
    transition: 0.3s ease; /* Smooth transition */
}

/* Result Message */
.quizzescontent #result {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 30px;
}

.quizzescontent .msg-success {
  color: #4caf50;
  font-size: 1.5rem;
  border: 2px solid #4caf50;
  padding: 15px;
  border-radius: 10px;
  background-color: #e8f5e9;
}

.quizzescontent .msg-danger {
  color: #f44336;
  font-size: 1.5rem;
  border: 2px solid #f44336;
  padding: 15px;
  border-radius: 10px;
  background-color: #ffebee;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  0% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Transition Effects for Table Rows and Buttons */
.quizzescontent .quiz-question, .quizzescontent table, .quizzescontent #next {
  animation: scaleUp 0.5s ease-out;
}

.quizzescontent table td, .quizzescontent input[type="radio"], .quizzescontent label {
  transition: all 0.3s ease;
}

.quizzescontent table td:hover {
  background-color: #222;
}

.quizzescontent input[type="radio"]:hover {
  transform: scale(1.1);
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .quizzescontent {
        padding: 0;
    }
    
    #quiz-container {
        padding: 1.75rem;
    }
    
    .quiz-question {
        font-size: 1.3rem;
    }
    
    .quiz-option label {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    #next {
        width: 100%;
        padding: 1rem;
    }
}
  .quizmodal .quiztitle {
            position: absolute;
            top: 25%;
            font-size: 3rem;
            font-weight: bold;
            color: #fff;
            text-shadow: 0 0 10px #ffeb3b, 0 0 20px #ffeb3b;
            animation: glow 1s infinite alternate, bounce 1.5s ease infinite;
            z-index: 10;
        }
/* Modal styles for failure */
        .quizmodal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
             background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 20;   
            visibility: hidden;
        }
        .quizmodal-content {
            width:100%;
            background: none;
            padding: 0;
            border-radius: 10px;
            text-align: center;
            justify-content: center;
            align-items: center;
            color: white;
        }
        .quizmodal-button {
            background: #ffcc00;
            padding: 10px 20px;
            font-size: 1.2em;
            border: none;
            cursor: pointer;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            transition: transform 0.2s ease-in-out;
            z-index:9999;
        }
        .quizmodal-button:hover {
            transform: scale(1.1);
        }
        @keyframes glow {
            from { text-shadow: 0 0 10px #ffeb3b, 0 0 20px #ffeb3b; }
            to { text-shadow: 0 0 20px #ffeb3b, 0 0 40px #ffeb3b; }
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        #fireworks  {
            width:100%;
            position: absolute;
            top: 0;
            left: 0;
            z-index:10; /* Keep the canvas behind the text */
        }
        #fireworks {
            visibility: hidden;
        }
#quizresult{
         position: absolute;
            top: 50%;
            font-size: 4rem;
            font-weight: bold;
            color: #ff4c4c;
            text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
            animation: shake 0.5s ease-in-out infinite alternate;
            z-index: 10;
        }
#failurequizresult{
         position: absolute;
            top: 60%;
            left:30%;
            font-size: 1.5rem;
            font-weight: bold;
            color:white;
            text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
            animation: shake 0.5s ease-in-out infinite alternate;
            z-index: 10;
        }
#successquizresult{
         position: absolute;
            top: 60%;
            left:30%;
            font-size: 1.5rem;
            font-weight: bold;
            color:white;
            text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
            animation: shake 0.5s ease-in-out infinite alternate;
            z-index: 10;
        }
.quizmodal.visible {
    visibility: visible;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

@keyframes fadeRed {
    from { text-shadow: 0 0 5px #ff4c4c, 0 0 10px #ff0000; }
    to { text-shadow: 0 0 15px #ff0000, 0 0 30px #b30000; }
}

.teardrop {
    position: absolute;
    width: 5px;
    height: 10px;
    background: rgba(0, 162, 255, 0.7);
    border-radius: 50%;
    opacity: 0.8;
    animation: fall 2s linear infinite;
}

@keyframes fall {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100px); opacity: 0; }
}
 .centered-page-layout {
      display: flex;
 
      height: 100%;
      width: 100%;
      flex-direction: column;
  
  }
  .centered-page-content {
      display: flex;
 
      align-items: center;
      height: 100%;
      width: 100%;
      flex-direction: column;
      text-align: center;
  }.twofa-form {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.twofa-form h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.twofa-form label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.twofa-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    background-color: var(--bg-card-light);
    color: var(--text-primary);
    border-radius: var(--radius);
    font-size: 1rem;
}

.twofa-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);
}

.twofa-form button {
    background-color: var(--primary);
    color: var(--text-primary);
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.twofa-form button:hover {
    background-color: var(--primary-dark);
}

.rating-containerv2 {
    background: linear-gradient(145deg, #222, #111);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
    max-width: 350px;
    margin: 10px auto;
    font-family: 'Poppins', sans-serif;
    text-align: center;
  }
.rating-containerv2 span {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
  }
.labelcaptcha {
    font-size: 14px;
    color: var(--text-primary);
    display: block;
    margin-bottom:10px;
  }
  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

  /* Captcha input container */
  .captchainputcontainerv2 {
    display: flex;
     background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 0;
    overflow: hidden;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .captchaContainerv2 {
    flex: 1; /* Takes up remaining space */
    overflow: hidden;
    text-align: center;
    background:lightgray;
        height:50px;
    width:150px;
    display: flex;
    align-items: center; /* Vertically centers content */
    justify-content: center; /* Horizontally centers content */
  }
 .captchaContainerv2 img{
    flex: 1; /* Takes up remaining space */
    overflow: hidden;
    text-align: center;
    background:lightgray;
        height:50px;
    width:150px;
    display: flex;
    align-items: center; /* Vertically centers content */
    justify-content: center; /* Horizontally centers content */
  }

  .reloadCaptchav2 {
    position: relative; /* Positioned relative to the container */
    flex-direction:column;
    top: 0;
    height: 100%; /* Matches the height of the parent container */
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center; /* Centers the image inside the button */
    justify-content: center;
  }

  .reloadCaptchav2 img {
    animation: none; /* No animation by default */
  }

  .reloadCaptchav2.loading img {
    animation: rotate 3s linear infinite;
  }
  .captchaTimer{
      font-size:14px;
  }
    #captchaInputv2 {
    flex: 1; text-align: center;
    border: none;
    padding: 12px;
    outline: none;
    font-size: 14px;
    color: #222;
    border-radius:0;
     background: lightblue;    
     border: 1px solid #ccc;
     width:100%;
     height:10px;
  }

  #captchaInputv2::placeholder {
    color: #bbb;
  }

  /* Button hover effect */
  #captchaInputv2:focus {
    background:lightblue;
    box-shadow: 0 0 5px rgba(80, 80, 200, 0.3);
  }
  .resetemailcode {
    display: inline-block;
    background-color: rgba(255, 193, 7, 0.1); /* translucent yellow (warning) */
    color: var(--warning);
    border: 1px solid var(--warning);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    margin-top: 0;
    box-shadow: var(--shadow);
}
 .sidebar-section-container {
    position: relative;
    background-color: #2c3e50; /* dark blue-gray background */
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 0;
  }

  .sidebar-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff; /* white text */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    user-select: none;
    display: inline-block;
  }
  /* Pop Toast Base */
.subscribe-toast {
  visibility: hidden;
  min-width: 250px;
  max-width: 400px;
  margin: 0 auto;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 12px 16px;
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-family: Arial, sans-serif;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease, bottom 0.5s ease;
}

/* Toast Visible State */
.subscribe-toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* Success Style */
.subscribe-toast.success {
  background-color: #28a745; /* Green */
}

/* Error Style */
.subscribe-toast.error {
  background-color: #dc3545; /* Red */
}

/* Optional Fade-Out Effect */
.subscribe-toast.hide {
  opacity: 0;
  bottom: 30px;
}
.date-control {
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background-color:lightgray;
  border: 1px solid #888;
  border-radius: 0;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Hover & focus effects */
.date-control:hover {
  border-color: #888;
}

.date-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
}

/* Remove default calendar icon style on some browsers */
.date-control::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

.date-control::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.account-form-content input[type="text"]
{
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.account-form-content input:focus
{
  border-color: #007bff;
  outline: none;
}
 
.switchmenu a.active {
    background-color: #555;
}
.account-form-content #profile-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
}

.account-form-content #emoji-popup {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    max-height: 300px;
    max-width: 650px;
    overflow: auto;
    display: none;
}

.account-form-content #emoji-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.account-form-content .emoji-button {
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
}

.account-form-content #preview-profile-pic {
    margin-top: 20px;
    font-size: 36px;
}

.account-form-content  .editaccounttoolbar button.active {
  background-color: royalblue;
  }
.account-form-content  .editaccounttoolbar {
            top:0;
    position: relative; /* Add position relative */
  }
  .EmailUpdateLoader{
    position: absolute;
    top:4%;
    left:14%;
    transform: translate(-50%, -50%);
    width: 33px;
    height: 33px;
    border-radius: 50%;
    display: none;
    border: 5px solid white;
    margin-top: 20px;
}
.EmailUpdateLoader img {
    position: absolute;top: 4px;left:0;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

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

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

  .profileFormLoader{
    position: absolute;
    top:4%;
    left:14%;
    transform: translate(-50%, -50%);
    width: 33px;
    height: 33px;
    border-radius: 50%;
    display: none;
    border: 5px solid white;
    margin-top: 20px;
}
.profileFormLoader img {
    position: absolute;top: 4px;left:0;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

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

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

.passwordloader{
    position: absolute;
    top:4%;
    left:14%;
    transform: translate(-50%, -50%);
    width: 33px;
    height: 33px;
    border-radius: 50%;
    display: none;
    border: 5px solid white;
    margin-top: 20px;
}
.passwordloader img {
    position: absolute;top: 4px;left:0;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.usernameloader{
    position: absolute;
    top:4%;
    left:5%;
    transform: translate(-50%, -50%);
    width: 33px;
    height: 33px;
    border-radius: 50%;
    display: none;
    border: 5px solid white;
    margin-top: 20px;
}

.usernameloader img {
    position: absolute;top: 4px;left:0;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.captchamodal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
  
    overflow: auto; /* Enable vertical and horizontal scrolling */
}
.captcha-content {
    background-color: var(--bg-card);
    border-radius:var(--radius);
    padding: 20px 30px;    
    margin: auto; 
    width: auto;
    max-width: 500px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position:relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
 }
.captcha-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background:red;
  padding:0 5px 0 5px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

.captcha-close:hover {
  background:var(--primary);
  color: var(--text-secondary);
}

.captcha-content input[type="text"] {
    width: 100%;
    padding:15px 15px;
    font-size: 1em;
    border: 2px solid #ccc;
    border-radius: var(--radius)
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom:5px;
}

.captcha-content input[type="text"]:focus {
    border-color: #0275d8;
    box-shadow: 0 0 4px rgba(2, 117, 216, 0.5);
}

/* Green border when input is focused and valid */
#user-username:focus {
    border: 2px solid green !important;
}

/* Red border when input is focused and invalid */
#user-username.invalid:focus {
    border: 2px solid red !important;
}
#user-username {
    background-color: var(--bg-card);
    color:white;
    flex-grow: 1;                    /* Make the input field take up available space */
    padding: 8px;                    /* Add padding inside the input */
    font-size: 16px;                 /* Set font size */
    border: 2px solid #ccc;          /* Set border style */
    border-radius: 0;              /* Rounded corners for the input */
    width: 100%;                     /* Ensure input spans the available width */
    height: 100%;  
    box-sizing: border-box;          /* Include padding and border in width */
}

.status-icon {
    font-size: 25px;                 /* Adjust the size of the status icon */
    margin-left: 10px;               /* Space between the input and the icon */
    color: #fff;                     /* Default color for icon (can be changed based on status) */
}
.username-available-status {
    font-size: 12px;       /* Small font size */
    color: #fff;           /* A neutral color */
    font-weight: normal;   /* Normal font weight */
    display: inline-block; /* To ensure it displays inline with other elements */
}
.EditprofileTd input:focus {
    border-color: #4CAF50;           /* Change border color when the input is focused */
    outline: none;                   /* Remove default outline */
}

.EditprofileTd input.invalid {
    border-color: red;               /* Border color for invalid input */
}
@media (max-width: 500px) {
    .captcha-content {
        padding: 15px 20px;
        width: 95%;
    }
}
 #expertForm {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#expertForm .form-group {
  margin-bottom: 1.5rem;
}

#expertForm label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#expertForm input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

#expertForm input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);
}

#expertForm input[type="text"]::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

#title-counter {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

.error-message {
  margin-top: 0.5rem;
  color: var(--danger);
  font-size: 0.85rem;
}

/* For the submit button (if you add one later) */
#expertForm button[type="submit"] {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#expertForm button[type="submit"]:hover {
  background-color: var(--primary-dark);
} 
#detailsSection {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

#detailsSection.hidden {
  display: none;
}

#detailsSection .form-group {
  margin-bottom: 1.25rem;
}

#detailsSection label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

#detailsSection input[type="number"] {
  width: 100%;
  max-width: 200px;
  padding: 0.65rem 1rem;
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  -moz-appearance: textfield; /* Firefox */
}

/* Remove number input arrows */
#detailsSection input[type="number"]::-webkit-outer-spin-button,
#detailsSection input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#detailsSection input[type="number"]:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  #detailsSection input[type="number"] {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  #expertForm {
    margin: 1rem;
    padding: 1.5rem;
  }

  #expertForm label {
    font-size: 0.8rem;
    letter-spacing: 0.3px;
  }

  #expertForm input[type="text"] {
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
  }

  #title-counter {
    font-size: 0.7rem;
  }

  .error-message {
    font-size: 0.8rem;
  }

  #expertForm button[type="submit"] {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  #expertForm {
    margin: 0.5rem;
    padding: 1.25rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  #expertForm label {
    margin-bottom: 0.4rem;
  }

  #expertForm input[type="text"] {
    padding: 0.6rem 0.8rem;
  }
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 10px;
}

/* Profile Card */
.profile-card {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}
.profile-card:hover {
  transform: translateY(-4px);
}

.profile-card h3 {
  margin-bottom: 10px;
  color: #333;
  font-size: 1rem;
}

.profile-card p {
  margin-bottom: 10px;
  color: #555;
}

/* Inputs */
.input-glass {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.5);
  transition: border 0.3s;
}
.input-glass:focus {
  outline: none;
  border-color: #0077cc;
  background: #fff;
}

 button.ActivateAccountButton#DeleteAccountBnt {
    background-color: red;
}

/* Button */
.btn-glass {
  background-color: #0077cc;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-glass:hover {
  background-color: #005fa3;
}
.boxyimage {
  background:var(--bg-card);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
 }

.label-title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 5px;
}

#profile-button {
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f1f1f1;
  color: #333;
  cursor: default;
  width: 100%;
  box-sizing: border-box;
}
 

.custom-upload-button {
  display: inline-block;
  background-color: #2563eb;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: fit-content;
}

.custom-upload-button:hover {
  background-color: #1e40af;
}
 
.Topicpopup-content{
  background-color:var(--bg-card-light);
  margin: 10% auto;
  padding: 10px;
  width: 70%;margin-top:0;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}.popup { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0.2, 0.2, 0.2,0.9); z-index:9999;}
  .close {
  position: absolute;
  top: 0;
  right: 0;
  background:red;
  padding:0 5px 0 5px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  }

  .close:hover {
    background-color: #ff8f8f;
  }
@media (max-width: 750px) {
 .Topicpopup-content{ 
  margin: 10% auto;
  padding: 10px;
  width: 100%;margin-top:0;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}.popup { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index:9999;}
  .close {
  position: absolute;
  top: 0;
  right: 0;
  background:red;
  padding:0 5px 0 5px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  }

  .close:hover {
    background-color: #ff8f8f;
  }
}
.replybox {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #1e1e1e;
    border-radius: 0; /* Sharp edges */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    border: 1px solid #333;
    color: #e0e0e0;
}

.replybox h4 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.25;
}

.replybox b {
    display: block;
    color: #a0a0a0;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 1rem;
}

.replybox textarea {
    width: 100%;
    height:80px;
    padding: 0.75rem;
    border: 1px solid #444;
    border-radius: 0; /* Sharp edges */
    min-height: 20px; /* Smaller height */
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e0e0e0;
    background-color: #252525;
    resize: vertical;
    transition: border-color 0.2s ease-in-out;
    margin-bottom: 1.5rem;
}

.replybox textarea:focus {
    outline: none;
    border-color: #4d90fe;
    box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.3);
}
 
/* Responsive adjustments */
@media (max-width: 768px) {
    .replybox {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .replybox h4 {
        font-size: 1.25rem;
    }
}
.reply-boxv3 {
  margin-bottom:10px;
  padding:0;
  display:flex;
  flex-direction:column;  border-left: 2px solid var(--border);
}

.reply-card {
   padding: 12px;
   width:100%;
   height:100%;
  border-radius: var(--border);
  background-color: var(--bg-card-light);
  border-bottom: 2px solid #ccc;
}

.profile-headerv3 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.profile-picv3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 0;
}

.reply-img {
  border-radius: var(--border);
  width: 45px; /* base size */
  height: 45px;
  object-fit: cover;
}

/* Scale image based on data-level */
.reply-boxv3[data-level="1"] .reply-img { width: 45px; height: 45px; }
.reply-boxv3[data-level="2"] .reply-img { width: 35px; height: 35px; }
.reply-boxv3[data-level="3"] .reply-img { width: 30px; height: 30px; }
.reply-boxv3[data-level="4"] .reply-img { width: 20px; height: 20px; }

.reply-user {
  font-weight: bold;
  margin-left: 12px;
  margin-top: 4px;
  color: #0077cc;
  cursor: pointer;
  text-decoration: none;
}

.reply-user:hover {
  text-decoration: underline;
}

.reply-date {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.reply-content {
  margin: 12px 0;
}

.reply-text {
  line-height: 1.5;
}

.rating-sectionv3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 2%;
  font-size: 0.9rem;
  color: #fff;
}
.profile-infov3{
    display:flex;
     gap: 3px;
    align-items: center;
}
  
/* Dropdown Menu */
.dropdown-menu-wrapper {
  position: relative;
}

.reply-menu-toggle {
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6c757d;
  transition: all 0.2s ease;
}

.reply-menu-toggle:hover {
  background: #f8f9fa;
  color: #4361ee;
}
 
.dropdown-menu-reply {
  position: absolute;
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 4px 0;
  min-width: 120px;
  min-height: 80px;
  z-index: 10;
  display: none;
  border: 1px solid #e9ecef;

  /* Reverse to open on left */
  right: 100%; /* Move entirely to the left of the trigger */
  top: 0;
  left: auto;  /* Override any default left positioning */
}


.dropdown-menu-reply button {
  color:var(--text-primary);
  width: 100%;
  text-align: left;
  padding: 4px 4px;
  background: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
}

.dropdown-menu-reply button:hover {
   color:var(--text-secondary);
}

/* Compact Reply Form */
.reply-form-container {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.reply-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #e9ecef;
  border-radius: var(--border);
  resize: vertical;
  min-height: 60px;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.reply-input:focus {
  outline: none;
  border-color: #4361ee;
}

.load-more-children {
  background: none;
  color: black;
  border-color: #007BFF;
  color: #007BFF;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: var(--border);
  cursor: pointer;
  margin-top: 8px;
}

.load-more-children:hover {
  border-color:lightblue;
  color:lightblue;
}
.load-more-replies {
  background: none;
  color: black;
  border-color: #007BFF;
  color: #007BFF;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: var(--border);
  cursor: pointer;
  margin-top: 8px;
}

.load-more-replies:hover {
  border-color:lightblue;
  color:lightblue;
}

@media (max-width: 768px) {
  .reply-card {
    padding: 8px;
  }

  .reply-img {
    width: 35px;
    height: 35px;
  }
.profile-infov3{
    flex-direction:column;
}
.rating-sectionv3{
    flex-direction:column;
}
.rating-buttonsv2{
    font-size:10px;
}
  
  .reply-boxv3[data-level="2"] .reply-img { width: 30px; height: 30px; }
  .reply-boxv3[data-level="3"] .reply-img { width: 25px; height: 25px; }
  .reply-boxv3[data-level="4"] .reply-img { width: 20px; height: 20px; }

  .reply-user {
    font-size: 0.85rem;
    margin-left: 8px;
  }

  .reply-date {
    font-size: 11px;
  }

  .reply-text {
    font-size: 0.85rem;
  }

  .btn {
    font-size: 0.7rem;
    padding: 2px 6px;
  }

  .btn-outline {
    padding: 2px 6px;
  }

  .reply-input {
    font-size: 0.85rem;
    padding: 6px;
  }

  .reply-menu-toggle {
    width: 20px;
    height: 20px;
  }

  .dropdown-menu-reply button {
    font-size: 0.75rem;
    padding: 4px 6px;
  }


  .load-more-children,
  .load-more-replies {
    font-size: 12px;
    padding: 4px 8px;
  }
}
/* Style for the Textarea */
.LogintoReplyTextarea {
    width: 100%;
    height: 70px;
    padding: 15px;
    font-size: 16px;
    border-radius: 0; /* Slightly larger border-radius for a modern look */
    border: 1px solid var(--border);
    background-color: var(--bg-dark);
    color:var(--text-primary); /* Text color */
    outline: none;
    resize: none; /* Disable manual resizing */
    transition: all 0.3s ease;
}

/* Textarea focus effect */
.LogintoReplyTextarea:focus {
    background: linear-gradient(145deg, #5c8fcd, #333); /* Softer blue gradient on focus */
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.1), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.7), 
                0 4px 8px rgba(50, 115, 220, 0.2); /* Light blue glow on focus */
    border: 1px solid var(--border); /* Subtle border change on focus */
}


/* Style for the Button */
.LogintoReplyButton {
    margin-top: 10px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #5c8fcd; /* Blue color */
    border: none;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition on hover */
}

/* Button hover effect */
.LogintoReplyButton:hover {
    background-color: #4876a6; /* Slightly darker blue on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Increased shadow on hover */
}

/* Button active (on click) effect */
.LogintoReplyButton:active {
    background-color: #3a5f84; /* Even darker blue on click */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.Repostselect{
       margin-top: 15px;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 0;
    border: 1px solid var(--border);
    background-color: var(--bg-dark);
    color: #fff;
    outline: none;
    cursor: pointer;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); /* Light shadow */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Select dropdown focus effect */
.Repostselect:focus {
    border-color: #5c8fcd;
    box-shadow: 0 4px 6px rgba(50, 115, 220, 0.2); /* Subtle glow effect */
}

/* Style for the Select Dropdown */
#displayOrder {
    margin-top: 15px;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 0;
    border: 1px solid var(--border);
    background-color: var(--bg-dark);
    color: #fff;
    outline: none;
    cursor: pointer;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); /* Light shadow */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Select dropdown focus effect */
#displayOrder:focus {
    border-color: #5c8fcd;
    box-shadow: 0 4px 6px rgba(50, 115, 220, 0.2); /* Subtle glow effect */
}

/* Optional media query for responsiveness */
@media (max-width: 600px) {
    .LogintoReplyTextarea {
        width: 100%; /* Full width on small screens */
    }

    .LogintoReplyButton {
        width: 100%; /* Full width on small screens */
        padding: 12px; /* Slightly reduced padding */
    }

    #displayOrder {
        width: 100%; /* Full width for select dropdown on small screens */
    }
}
.read-more-btn{
      display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.submit-reply-btn{
      background: transparent;
  color: #4361ee;
  border: 1px dashed #4361ee;
  padding: 3px 8px;
}

.submit-reply-btn:hover {
  background: rgba(67, 97, 238, 0.08);
}
.reply-btn{
  background: transparent;
  color: #4361ee;
  border: 1px dashed #4361ee;
  padding: 3px 8px;
}
.reply-btn:hover {
  background: rgba(67, 97, 238, 0.08);
}
.follow-button{
  background: transparent;
  color: #4361ee;
  border: 1px dashed #4361ee;
  padding: 5px 10px;
  cursor:pointer;
}
.follow-button:hover {
  background: rgba(67, 97, 238, 0.08);
}
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1rem 0;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 180px;
  background-color: var(--bg-card-light);
  border: 1px solid var(--border-light);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.socialnetworkicon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s ease;
}

/* Platform-specific colors on hover */
.facebook-btn:hover {
  background-color: rgba(24, 119, 242, 0.1);
  border-color: #1877f2;
}

.facebook-btn:hover .socialnetworkicon {
  filter: none;
}

.twitter-btn:hover {
  background-color: rgba(29, 161, 242, 0.1);
  border-color: #1da1f2;
}

.twitter-btn:hover .socialnetworkicon {
  filter: none;
}

.copy-btn:hover {
  background-color: rgba(101, 31, 255, 0.1);
  border-color: var(--primary);
}

.copy-btn:hover .socialnetworkicon {
  filter: none;
}

/* Copy feedback message */
.message {
  padding: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background-color: var(--bg-darker);
  border-radius: var(--radius);
  display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .share-buttons {
    gap: 0.5rem;
  }
  
  .share-btn {
    padding: 0.4rem 0.6rem;
    max-width: 160px;
  }
  
  .socialnetworkicon {
    width: 18px;
    height: 18px;
  }
}
.scroll-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #ccc;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background-color: #00bcd4;
  transition: width 0.25s;
}
.auth-separator {
  display: flex;
  align-items: center;
  gap: .75rem;               /* space between text and lines */
  color: #6b7280;            /* subtle gray text */
  font: 500 0.9rem/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px dashed #cbd5e1;  /* dashed line */
}

/* Optional: tighter max width */
.auth-separator {
  max-width: 420px;
  margin: 1rem auto;         /* center in its container */
}

/* Optional dark mode */
@media (prefers-color-scheme: dark) {
  .auth-separator { color: #9ca3af; }
  .auth-separator::before,
  .auth-separator::after { border-color: #4b5563; }
}

.google-logo {
            width: 35px;
            height: 35px;
            vertical-align: middle; /* Align the image vertically in the middle */
            margin-right: 0; /* Add some spacing between the image and text */
        }
.github-logo{
       width: 35px;
            height: 35px;
            vertical-align: middle; /* Align the image vertically in the middle */
            margin-right: 0; /* Add some spacing between the image and text */
            border-radius:50%;
}
.msg-success.boxyoutput {
    background-color: rgba(0, 230, 118, 0.1); /* Slight tint of success color */
    color: var(--success);
    border: 1px solid var(--success);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    line-height: 1.5;
    box-shadow: var(--shadow);
    text-align: center;
    margin: 1rem 0;
}
 
.msg-danger {
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%; /* You can adjust the width as needed */
  height:auto;
}
/* Styles for 'msg-success' class */
.msg-success {
  background-color: rgba(0, 230, 118, 0.1); /* Slight tint of success color */
    color: var(--success);
    border: 1px solid var(--success);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    line-height: 1.5;
    box-shadow: var(--shadow);
    text-align: center;
    margin: 1rem 0;
}
/* Styles for 'msg-danger' class */
.msg-danger {
  background: linear-gradient(120deg, #e74c3c, #c0392b);
  color: #fff;
}
    .chart {
      display: block;
      margin: 15px auto;
      max-width: 90%;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .cookies-popup {
  position: fixed;
  bottom: 20px;
  left: -350px;
  width: 300px;
  max-width: 90%;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-card);
  color: white;
  font-family: "Segoe UI", sans-serif;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  transition: left 0.45s ease-in-out;
  z-index: 9999999;
}

.cookies-popup.show {
  left: 20px;
}

.cookies-header {
     color:var(--text-secondary);
     font-size: 16px;
    font-weight: bold;  margin-bottom: 10px;
    text-shadow: 0px 0px 6px rgba(0, 255, 127, 0.8);
}

.cookies-title {
  font-size: 15px;
}

.cookies-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.cookies-buttons button {
  flex: 1;
  padding:5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .2s;
}

#yesButton {
  background:white;
  border:1px solid green;
  color: green;
}

#noButton {
  background:white;
  border:1px solid red;
  color: red;
}

.cookies-buttons button:hover {
  transform: scale(1.06);
}

.cookies-links {
    display: flex;            /* Use flexbox */
    justify-content: center;  /* Center the links horizontally */
    gap: 20px;               /* Optional: space between links */
    margin: 10px 0;          /* Optional: add some margin for spacing */
}

.cookies-links a {

    font-size:10px;
    margin: 5px 0;           /* Optional: add some margin between links */
    text-decoration: none;    /* Remove underline */
}
 .CookieConsentterminal-icon {
            color: royalblue;
            font-weight: bold;
        }

        .cursor {
            POSITION:absolute;
            width: 10px;
            height: 20px;margin-left:5px;
            background-color:royalblue; 
             animation: blink 1s step-end infinite;
        }

        /* Blinking cursor animation */
        @keyframes blink {
            50% {
                opacity: 0;
            }
        }
/* Terminal header with title */
.CookieConsentterminal-header {
    background-color: #333;
    color:lightblue;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0px 0px 6px rgba(0, 255, 127, 0.8);
}
