body {
    margin: 0;
    font-family: sans-serif;
    background-color: #ffffff;
    color: #3f3f3f;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr;
}

.mobile-container {
    display: none
  }

.top-nav  {
    background-color: #3f3f3f;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #9F5CD0;
    height: 5vh;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.top-nav #app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.top-nav h1 {
    margin-left: 20px;
}

.social-icons {
    margin-right: 20px;
}

.social-icons a {
    color: #ffffff;
    margin-left: 10px;
    font-size: 20px;
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 4fr;
    height: 100%;
    overflow: hidden;
}

.bottom-right-div {
    position: absolute;
    bottom: 20px;
    right: 0;
    /* Optional: add padding, background, etc. */
    margin: 8px;
    color: #ffff;
}

.left-menu {
    background-color: #3f3f3f;
    color: #ffffff;
    padding: 20px;
    width: 100%; 
    box-sizing: border-box;
    min-width: 300px;
     position: relative;
}


.left-menu ul {
    list-style: none;
    padding: 2px;
    padding: 0;
}

.left-menu li {
    padding: 2px;
}

.left-menu p {
    margin: 2px;
}

.submenu{
    padding-left: 20px !important;
}

a.link,
a.link:visited,
a.link:active,
a.link:hover {
  text-decoration: none;
  color: inherit;
}

.left-menu a {
    color: #ffffff;
    text-decoration: none;
    display: block;
}

.main-content {
    padding: 20px;
    overflow-wrap:anywhere
}

.card {
    background-color: #ffffff;
    border: 1px solid #3f3f3f;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    height:82vh;
    overflow: auto;
}

.tree {
    list-style: none;
    padding-left: 20px;
    font-size: smaller;
}
.tree ul {
    list-style: none;
    padding-left: 20px;
}
.tree li {
    padding: 3px 0;
}
.file-item {
    cursor: pointer;
}
.file-item:hover {
    text-decoration: underline;
    color: #9F5CD0;
}

.file-input {
    display: none; 
}

.file-input-white-label {
    color: #3f3f3f;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #9F5CD0;
    display: inline-block;
    transition: background-color 0.3s ease;
    width:50%;
}

/* Removed selection control helpers to rely on default behavior */

.file-input-label {
    background-color: #3f3f3f;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #9F5CD0;
    display: inline-block;
    transition: background-color 0.3s ease;
    text-align: center;
}

.file-input-label:hover {
    background-color: #4f4f4f;
    border-color: #af6ce0;
}

.file-input-label:active {
    transform: translateY(1px);
}

.form-check-label {
    color: #3f3f3f;  /* Reset label color to default */
}

#on-only {
    accent-color: #9F5CD0;  /* Changes the checkbox color when checked */
    cursor: pointer;
}

.settings-container {
    position: absolute;
    bottom: 30px;
    left: 20px;
}

.settings-icon {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.settings-icon:hover {
    transform: rotate(45deg);
}

.settings-dropdown {
    position: absolute;
    bottom: 40px;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    min-width: 350px;
    color:#3f3f3f
}

.settings-dropdown.show {
    display: block;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    color:#3f3f3f;
}
.dropdown-item a {
    color:#3f3f3f;
}
.dropdown-item:hover {
    background: #f5f5f5;
}

.menu-container {

    height: 70vh   
}

/* Webkit browsers (Chrome, Safari, newer Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #9F5CD0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #af6ce0;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #9F5CD0 #f1f1f1;
}

li {
    list-style-type: none;
}


/* Info Container Styles */
#info-container {
    padding: 20px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.stat-card h3 {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.stat-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.2;
}

/* Specific stat card colors */
.green { border-left: 4px solid #34a853; }
.amber { border-left: 4px solid #fbbc05; }
.blue { border-left: 4px solid #2145e4; }
.red { border-left: 4px solid #ea4335; }

.pad-left{
    padding-left: 10px;
}

/* Info Panel Styles */
.info-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    height: fit-content;

}

.info-panel h2 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.info-content {
    display: grid;
    gap: 15px;
}

.info-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    word-break: break-all;
}

/* Panels Container */
.panels-container {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 20px;
    margin-top: 20px;
}

/* Table Styles */
.table-bordered {
    border: 1px solid #dee2e6; 
    border-radius: 8px; 
    overflow: hidden;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
    padding: 15px; /* Add 15px padding to each cell */
}

.table-bordered th {
    background-color: #3f3f3f;
    border-bottom: 2px solid #9F5CD0; 
    color: white; /* Light grey background for header */
}

.table-responsive {
  word-wrap: break-word;
  overflow-x: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width:90%
}

.purple-border{
    border-bottom: 2px solid #9F5CD0; 
}

.highlight {
    background-color: #ccb5dd;
}
  
.selected {
    background-color: #9F5CD0;
  }


.sub-card{
    border:#dee2e6 1px solid;
    border-radius: 8px;
    height:auto;
    margin-bottom: 20px;
  }
  
.sub-card-header{
    background-color: #3f3f3f;
    color: #ffffff;
    font-weight: bold;
    padding: 10px;
    margin-bottom: 20px;
    border-bottom: #9F5CD0 1px solid;
    border-radius: 8px 8px 0 0;
    margin-top: 0px!important;
    }
.sub-card-body{
    border:#dee2e6 2px solid;
    border-radius: 8px;
    margin:5px
}

.roundCorners{
    border-radius: 8px;
}

#apps{
    padding-bottom: 20px;
    padding-top: 20px;
    border-bottom: #9F5CD0 2px solid;
}

#spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #9F5CD0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

.inline-icon {
    display: flex;
    align-items: center;
  }

/* Add these new product-specific styles while maintaining existing color variables */
.product-hero {
    text-align: center;
    padding: 3rem;
    background-color: white;
}

.product-screenshot {
    max-width: 80%;
    margin: 2rem auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.product-banner {
    text-align: center;
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    width:80%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-price {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    margin-bottom: 0.5rem;
}

.product-features li:before {
    content: "✓";
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.features {
    list-style: none;
    padding: 0;
}

.features li {
    margin-bottom: 0.5rem;
}

.features li:before {
    content: "✕";
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Modal styles */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.product-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    padding: 16px;
    padding-left: 20px;
    border-radius: 4px;
    background-color: var(--background-color, #ffffff);
    color: var(--text-color, #333333);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-in-out;
    border: 1px solid var(--border-color, #e0e0e0);
    position: relative;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.toast.success::before {
    background-color: var(--success-color, #4caf50);
}

.toast.information::before {
    background-color: var(--info-color, #9F5CD0);
}

.toast.error::before {
    background-color: var(--error-color, #f44336);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

.inlineButtons{
    display: flex; gap: 8px;
    width:100%
}
.codeBox{
    width:100%;
    margin: 10px 10px 0px 0px;
    border-radius: 8px;
    height: 200px;
    display:block;
    border:black 1px solid;
}

.custom-flag-div{
    width:100%;
    margin: 10px 10px 0px 0px;
}

.popup{
    border-radius: 8px 8px 8px 8px;
    position: fixed;
    top : 50%;
    left : 50%;
    transform : translate(-50%,-50%); 
    padding : 10px;
    height : 400px;
    width : 800px;
    overflow : auto;
    background-Color : white;  
    border:black 1px solid;  
    z-Index: 1000;
}

.description{
    padding : 10px;
    width : 90%;
    height : 250px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.toggle-switch input[type="checkbox"] {
    width: 40px;
    height: 20px;
    appearance: none;
    background: #ccc;
    outline: none;
    border-radius: 20px;
    transition: background 0.3s;
    position: relative;
    cursor: pointer;
}

.toggle-switch input[type="checkbox"]:checked {
    background: #9F5CD0;
}

.toggle-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    background: #fff;
    transition: 0.3s;
}

.toggle-switch input[type="checkbox"]:checked::before {
    left: 21px;
}

.faq-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 10px 0;
  padding: 0;
  background: #fafafa;
  transition: box-shadow 0.2s;
}
.faq-question {
  cursor: pointer;
  padding: 16px;
  font-weight: bold;
  user-select: none;
}
.faq-answer {
  display: none;
  padding: 16px;
  border-top: 1px solid #eee;
  color: #333;
  background: #fff;
}
.faq-item.active .faq-answer {
  display: block;
}
.faq-screenshot{
    height:300px;
}
.faq-answer li {
    list-style-type: circle;
}

.screenshot-commentary-container {
  padding: 0px 200px 0px 200px;
  display: flex;
  align-items: stretch; /* Stretch children to same height */
  gap: 24px;
  margin: 24px 0 0 0;
  width: 100%;
  flex-wrap: wrap;
  box-sizing: border-box;
  justify-content: flex-start;
}

.commentary {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding:10px;
}

.screenshot {
  flex: 2 1 500px;
  min-width: 180px;
  /* Remove any fixed height */
  display: flex;
  align-items: stretch;
}

.screenshot img {
  width: 100%;
  height: 100%; /* Fill parent height */
  object-fit: cover; /* Or 'contain' if you want full image visible */
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

@media (max-width: 800px) {
    #login{
    display: none;
  }
  .main-container {
    display: none;
  }
  .mobile-container {
    display: block;
    padding: 20px;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .screenshot-commentary-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .commentary, .screenshot {
    max-width: 100%;
    min-width: 0;
  }
  

}

.history-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 10px;
}

.history-col {
    flex: 1 1 0;
    padding: 20px;
    border: 1px solid #000000;
    background: #fafafa;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Mobile-first responsive design improvements */

/* Base mobile styles */
.top-nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
}

.top-nav h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.social-icons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Hero section mobile optimization */
.hero-section {
    padding: 2rem 1rem;
}

.hero-content {
    flex-direction: column;
    gap: 2rem;
}

.hero-text-block {
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;

    text-align: center;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-features-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.hero-features-list li {
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.hero-image-block {
    width: 100%;
    padding-top: 20px;
}

.hero-main-img {
    width: 100%;
    height: auto;
    max-width: 500px;
     display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Product cards mobile optimization */
.product-pricing-cards {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
}

.product-card {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem;
    font-size: 1.5rem;
}

.product-price {
    font-size: 2rem;
    margin: 1rem 0;
}

.product-features,
.features {
    font-size: 0.9rem;
}

.product-features li,
.features li {
    padding: 0.3rem 0;
}

/* Modal mobile optimization */
.product-modal-content {
    width: 90%;
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
}

.product-modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-modal-content input {
    font-size: 1rem;
    padding: 0.75rem !important;
    margin: 0.75rem 0 !important;
}

.product-modal-content button {
    font-size: 1rem;
    padding: 0.75rem;
    margin-top: 1rem;
}

/* Screenshot sections mobile optimization */
.screenshot-commentary-container {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
}

.commentary {
    text-align: center;
}

.commentary h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.commentary p {
    font-size: 1rem;
    line-height: 1.5;
}





/* Footer mobile optimization */
footer {
    padding: 1.5rem 1rem !important;
    font-size: 0.85rem !important;
    line-height: 1.4;
}

footer a {
    display: inline-block;
    margin: 0.2rem 0;
}

/* Tablet styles */
@media (min-width: 768px) {
    .top-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-text-block {
        flex: 1;
        text-align: left;
    }
    
    .hero-image-block {
        flex: 1;
        padding-top:20px;
    }
    
    .product-pricing-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .product-card {
        flex: 1;
        min-width: 300px;
        max-width: 350px;
    }
    
    .screenshot-commentary-container {
        flex-direction: row;
        align-items: center;
    }
    
    .commentary {
        flex: 1;
        text-align: left;
    }
    
    .screenshot {
        flex: 1;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .hero-section {
        padding: 4rem 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .product-pricing-cards {
        padding: 4rem 2rem;
    }
    
    .screenshot-commentary-container {
        padding: 3rem 2rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .file-input-label:hover {
        transform: none;
    }
    
    .file-input-label:active {
        transform: scale(0.98);
    }
    
    /* Larger touch targets */
    .social-icons a {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}