:root {
            --background: #1a1a1a;
            --text: #ffffff;
            --border: #333333;
            --primary: #19daaf;
            --hover: #95f8df;
        }

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

        img {
            width: 100% !important;
        }

        .img {
            width: 100% !important;
        }

        ul {
            margin-left: 2rem;
        }

        body {
            font-family: "Lato", sans-serif;
            background: var(--background);
            color: var(--text);
            margin: 0;
            padding: 0;
            line-height: 1.5;
        }

        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
            /*background: rgba(255, 255, 255, 0.05);*/
            backdrop-filter: blur(10px);
            
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 800;
            font-size: 1.25rem;
            color: #FFFFFF;
        }
        

        .nav-menu {
            display: flex;
            gap: 2rem;
        }

        .nav-link {
            color: var(--text);
            text-decoration: none;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .nav-link:hover {
            opacity: 1;
        }

        .mobile-menu {
            display: none;
            cursor: pointer;
        }

        .main-content {
            max-width: 1000px;
            margin: 0 auto;
            padding: 2rem;
        }
        
        .main-content-title{
            text-align: center;            
        }

        .main-title{            
            font-size: 3.5rem;
            font-weight: 500;
            line-height: 1.1;
        }
        .main-title-m{            
            font-size: 2rem;
            font-weight: 500;
            line-height: 1.1;
        }
        
        .sub-title{
            color: #828ea0;
            font-size: 1.3rem;
            font-weight: 300;
        }

        .gradient-title {
            font-size: 3.5rem;
            font-weight: bold;
            margin: 2rem 0;
            background: linear-gradient(50.81deg, #48c2ff 18.75%, #5d9eff 31.1%, #d860e2 43.98%, #fa6664 59.48%, #fea808 81.17%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .gradient-logo {
            font-size: 2rem;          
            background: linear-gradient(50.81deg, #48c2ff 18.75%, #5d9eff 31.1%, #d860e2 43.98%, #fa6664 59.48%, #fea808 81.17%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .six-grid{
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .grid-item{
            background: rgba(255, 255, 255, 0.02);
            border-radius: 8px;
            padding: 1.5rem;
            text-align: center;
        }

        .sectionmargin{
            margin-top:4rem;
        }

        .darkgray{
            color: #828ea0;
            font-weight: 300;
            font-size: 16px;
            line-height: 1.4;
            margin-top: 1rem;
        }


        .drop-zone {
            border: 2px dashed var(--border);
            border-radius: 8px;
            padding: 2rem;
            text-align: center;
            margin: 2rem 0;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.02);
        }

        .drop-zone.drag-over {
            border-color: var(--primary);
            background: rgba(37, 99, 235, 0.1);
        }

        .button {
            background: rgba(255, 255, 255, 0.02);
            color: var(--text);
            border: 1px solid var(--border);
            padding: 0.6rem 1.3rem;
            border-radius: 4px;
            cursor: pointer;
            margin: 0.5rem;
            transition: background 0.2s;
            font-weight: 700;
            font-size: 1rem;
        }

        .button:hover {
            background: #FFFFFF;
            color:#000000;
        }

        .button:disabled {
            background: var(--border);
            cursor: not-allowed;
        }

        .button-white{
            background: #FFFFFF;
            color: #000000;
            border: none;
            padding: 0.7rem 1.5rem;
            border-radius: 4px;
            cursor: pointer;
            margin: 0.5rem;
            transition: background 0.2s;
            font-weight: 700;
            font-size: 1rem;
        }

        .button-white:hover {
            background: #f5f7fd;
        }        

        .button-clear{
            background: #1a1a1a;
            color: #828ea0;
            border: none;
            padding: 0.7rem 1.5rem;
            border-radius: 4px;
            cursor: pointer;
            margin: 0.5rem;
            transition: background 0.2s;
            font-weight: 700;
            font-size: 1rem;
        }

        .button-clear:hover {
            background: #ffffff;
            color: #1a1a1a;
        }  

        .preview-img {
            max-width: 100px;
            max-height: 100px;
            object-fit: contain;
            border-radius: 4px;
        }

        .conversion-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 2rem;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 8px;
            overflow: hidden;
        }

        .conversion-table th, 
        .conversion-table td {
            padding: 0.75rem;
            border: 1px solid var(--border);
            text-align: center;
        }

        .conversion-table th {
            background: rgba(255, 255, 255, 0.05);
        }

        .filename-input {
            width: 90%;
            padding: 0.5rem;
            border: 1px solid var(--border);
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.05);
            color: var(--text);
        }

        .filename-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .buttons-container {
            margin-top: 1rem;
            text-align: right;
        }

        #output {
            margin-top: 2rem;
        }

        /* FAQ Sections */
        .faq-section {
            margin-top: 20px;
        }

        .faq-item {
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 1px solid #323232;
        }

        .faq-item:last-child {
            border-bottom: none;
        }

        .faq-item h4 {
            color: #FFFFFF;
            margin-bottom: 10px;
        }

        .faq-item p {
            color: #afafaf;
            margin: 0;
        }

        /* Article Styles*/

        section {
            color: #FFFFFF;
            font-size: 1.3rem;
            font-weight: 300;
        }
        .article-intro{
            margin: 0 0 2rem 0;
            gap: 1rem;
            display: flex;
            flex-direction: column;

        }
        .article-meta{

        }
        .article-reduction{
            background-color: #ffffff10;
            padding: 1.5rem;
            margin:1rem 0;
        }

        .article-try{
            display: grid;
            grid-template-columns: 3fr 1.5fr;
            background-color: #FFFFFF10;
            padding: 1.5rem;
            color: #FFFFFF;
            font-size: 1.3rem;
            font-weight: 300;
            align-items: center;
            gap: 2rem;
            margin: 2rem 0;
        }

        /* comparison table*/
        table {
            border-collapse: collapse;
            width: 100%;
            max-width: 800px;
            margin: 20px auto;
            font-family: "Lato", sans-serif;
          }
          
          th, td {
            border: 1px solid #828ea0;
            padding: 12px;
            text-align: left;
          }
          
          th {          
            font-weight: 600;
          }
          
          tr:nth-child(even) {
            background-color: #828ea010;
          }
          
          .check {
            color: var(--primary);
            font-size: 24px;
          }
          
          .cross {
            color: #828ea0;
            font-size: 24px;
          }
          
          .center {
            text-align: center;
          }

        /* Footer Styles */
        .footer {
            
            color: #828ea0;
            padding: 4rem 2rem 1rem 2rem;
            margin: 0rem auto;
            font-weight: 300;
            max-width: 1000px;
        }

        .footer-content {
            
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 2fr 1fr;
            gap: 2rem;
        }

        .footerCopyright{
            max-width: 1200px;
            margin: 0 auto;
            border-top: 1px solid #828ea020;
            margin-top: 3rem;
            padding: 1rem;
            display: flex;
            justify-content: center;
            font-size: 12px;
        }

        .footer-column h3 {
            margin-bottom: 1rem;
            font-size: 1rem;
            color: #FFFFFF;
        }

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

        .social-links a {
            color: #fff;
            text-decoration: none;
            font-size: 1.5rem;
        }
        .ourSites{
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        .ourSitesBlock{
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        a:-webkit-any-link {
            color: #828ea0 !important;
            cursor: pointer;
            text-decoration: none !important;
        }


        /* navigation*/
        .auth-buttons {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .username {
            font-family: 'Lato', sans-serif;
            font-weight: 500;
            color: #333;
        }
        
        .login-button {
            background: transparent;
            border: 1px solid #ddd;
            color: #333;
        }
        
        .login-button:hover {
            background: #f5f5f5;
        }
        
        .register-button {
            /* Assuming your existing button class has the main styling */
        }
        
        .logout-button {
            background: transparent;
            border: none;
            padding: 0.5rem;
            color: #666;
        }
        
        .logout-button:hover {
            color: #333;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .auth-buttons {
                gap: 0.5rem;
            }
            
            .username {
                font-size: 0.9rem;
            }
        }

/* Tesitng new responsive*/
/* Adding these new responsive styles */
        
        @media screen and (max-width: 768px) {
            .nav {
                padding: 1rem;
            }
            
            .nav-menu {
                display: none; /* Hide menu on mobile - you might want to add a hamburger menu later */
            }

            

            .gradient-title {
                font-size: 2rem;
            }
            .main-title{
                font-size: 2rem;
            }
            .sub-title {
                font-size: 1rem;
            }

            .main-content {
                padding: 1rem;
            }

            /* Responsive table styles */
            .conversion-table {
                border: none;
                background: none;
            }

            .conversion-table thead {
                display: none; /* Hide table headers on mobile */
            }

            .conversion-table tbody tr {
                display: block;
                background: rgba(255, 255, 255, 0.02);
                margin-bottom: 1rem;
                padding: 1rem;
                border-radius: 8px;
                border: 1px solid var(--border);
            }

            .conversion-table td {
                display: grid;
                grid-template-columns: 100px 1fr;
                gap: 1rem;
                align-items: center;
                padding: 0.5rem;
                border: none;
                border-bottom: 1px solid var(--border);
            }

            .conversion-table td:last-child {
                border-bottom: none;
            }

            /* Add labels for each cell */
            .conversion-table td::before {
                content: attr(data-label);
                font-weight: bold;
                color: rgba(255, 255, 255, 0.7);
            }

            .filename-input {
                width: 100%;
                box-sizing: border-box;
            }

            .buttons-container {
                text-align: center;
            }

            .button {
                /*width: 100%;*/
                margin: 0.5rem 0;
            }
            .six-grid{            
            grid-template-columns: 1fr 1fr;
            }
            .footer-content {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Optimize for very small screens */
        @media screen and (max-width: 400px) {
            .conversion-table td {
                grid-template-columns: 1fr;
                gap: 0.5rem;
            }

            .preview-img {
                width: 100%;
                max-height: 150px;
                object-fit: contain;
            }
            .six-grid{            
            grid-template-columns: 1fr;
            }
            .footer-content {
                grid-template-columns: 1fr;
            }
            .mobile-menu {
                display: block;
            }
        }

