/* Main Styles for YouTube MP3/MP4 Converter */

body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    font-size: 14px !important;
}

/* Dropdown scrollable menu */
.scrollable-menu {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Ensure dropdown shows scrollbar when open */
.dropdown-menu.scrollable-menu.show {
    max-height: 400px;
    overflow-y: auto !important;
    display: block;
    padding-right: 10px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scrollable-menu::-webkit-scrollbar {
    width: 8px;
    background-color: rgba(0, 0, 0, 0.1);
}

.scrollable-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scrollable-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.scrollable-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Heading Styles */
h1 {
    font-size: 20px !important;
}

h2 {
    font-size: 18px !important;
}

h3 {
    font-size: 16px !important;
}

   .btn-mp3.mp4-mode {
       background-color: #ff8800;
       color: #ffffff;  /* Added this line */
   }

.btn-download {
    background-color: #28a745; /* Green color */
    border-color: #28a745;
    color: white;
}

.btn-download:hover {
    background-color: #218838; /* Darker green on hover */
    border-color: #1e7e34;
}


.btn-mp3 {
    background-color: #007bff !important;
    color: #fff !important;
    padding: 7px 7px !important;
   
    font-weight: bold !important;
    border: none !important;
    transition: all 0.3s ease !important;
    margin-right: 1px !important;
    min-width: 45px !important;
    white-space: nowrap !important;
font-size:14px !important;
	
}

.btn-mp4 {
    background-color: #007bff !important;
    color: #fff !important;
    padding: 7px 7px !important;
 
    font-weight: bold !important;
    border: none !important;
    transition: all 0.3s ease !important;
    margin-right: 1px !important;
    min-width: 45px !important;
    white-space: nowrap !important;
font-size:14px !important;
}

.btn-convert {
    background-color: #007bff !important;
    color: #fff !important;
    padding: 7px 10px !important;
    border-radius: 0px 5px 5px 0 !important;
    font-weight: bold !important;
    border: none !important;
    white-space: nowrap !important;
    font-size: 14px !important;
margin-left: 1px !important;
}

.btn-convert:hover {
    background-color: #1d8aff !important;
    color: #fff !important;
    padding: 7px 10px !important;
    border-radius: 0px 5px 5px 0 !important;
    font-weight: bold !important;
    border: none !important;
    white-space: nowrap !important;
    font-size: 14px !important;
}

.form-input::placeholder {
    color: #525252 !important;
    opacity: 1 !important;

}

.form-input {
border: 1px solid #343434 !important;
}



.table-striped > tbody > tr:nth-of-type(2n+1) > * {
  --bs-table-accent-bg: var(--bs-table-striped-bg);
  color: #fff !important;
}

/* FAQ Section */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.faq-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
font-size: 14px;
}


/* Contact Section */
.contact-section {
    margin-top: 2rem;
}

.contact-section p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.contact-section label {
    font-weight: bold;
    color: #333;
}

.contact-section .form-control {
    margin-bottom: 1rem;
}

.contact-section .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.contact-section .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}


/* Copyright Section */
.copyright-section {
    margin-top: 2rem;
}

.copyright-section h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.copyright-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
font-size: 14px;
}

.copyright-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.copyright-section ul li {
    margin-bottom: 0.75rem;
    color: #555;
}

.copyright-section address {
    font-style: normal;
    margin-bottom: 1.5rem;
}

.copyright-section address a {
    color: #0d6efd;
    text-decoration: none;
}

.copyright-section address a:hover {
    text-decoration: underline;
}

/* Privacy Policy Section */
.privacy-section {
    margin-top: 2rem;
}

.privacy-section h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.privacy-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
font-size:14px;
}

.privacy-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-section ul li {
    margin-bottom: 0.75rem;
    color: #555;
}

.privacy-section address {
    font-style: normal;
    margin-bottom: 1.5rem;
}

.privacy-section address a {
    color: #0d6efd;
    text-decoration: none;
}

.privacy-section address a:hover {
    text-decoration: underline;
}


/* Terms of Use Section */
.terms-section {
    margin-top: 2rem;
}

.terms-section h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.terms-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
font-size:14px;
}

.terms-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.terms-section ul li {
    margin-bottom: 0.75rem;
    color: #555;
}

.terms-section address {
    font-style: normal;
    margin-bottom: 1.5rem;
}

.terms-section address a {
    color: #0d6efd;
    text-decoration: none;
}

.terms-section address a:hover {
    text-decoration: underline;
}


/* Navigation Styles */
.navbar {
    background-color: #121212;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 35px;
}

.nav-link {
    color: #fff !important;
    margin: 0 10px;
}

/* Dropdown menu position */
.navbar .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    max-width: 250px;
}

.dropdown-item {
     color: #e0e0e0 !important;
    font-size: 14px !important;

}

.dropdown-item:focus, .dropdown-item:hover {
    color: #d7d7d7 !important;
    background-color: #2b2b2b !important;
}

/* Ensure the dropdown menu is visible and properly positioned when shown */
.navbar .dropdown-menu.show {
    transform: none !important;
    inset: auto !important;
    position: absolute !important;
    margin-top: 0.125rem;
    background: #121212;
    color: #fff !important;
}

/* Fix for scrollable menu on mobile */
@media (max-width: 991px) {
    .navbar .dropdown-menu.scrollable-menu {
        position: static !important;
        max-width: 100%;
        overflow-y: auto;
        max-height: 300px;
        width: 100%;
        float: none;
    }
    
    .navbar .dropdown-menu.show {
        position: static !important;
        transform: none !important;
        inset: auto !important;
        margin-top: 0 !important;
    }
}

/* Menu.php scrollable dropdown */
#main-nav .dropdown-menu.scrollable-menu {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Container Styles */
.container-main {
    max-width: 800px;
    margin: 0 auto;
}

/* Converter Box Styles */
.converter-box {
    background-color: #1e1e1e;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    overflow: hidden;
}

/* Form Styles */
.form-input {
    background-color: #252525;
    border: none;
    color: #fff;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 16px;
}

.form-input:focus {
    background-color: #333;
    color: #fff;
    box-shadow: none;
    border: none;
}

.input-group {
    flex-wrap: nowrap !important;
}

/* Button Styles */
.btn-mp3 {
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
    margin-right: 1px;
    min-width: 70px;
    white-space: nowrap;
}

.btn-mp3.mp4-mode {
    background-color: #ff8800;
}

.btn-convert {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    white-space: nowrap;
}

/* Content Styles */
.page-title {
    text-align: center;
    margin: 30px 0;
    font-size: 24px;
    font-weight: bold;
}

.instruction-text {
    line-height: 1.6;
    color: #aaa;
}

.steps-list {
    margin-top: 20px;
}

.steps-list ol {
    padding-left: 20px;
}

.steps-list li {
    margin-bottom: 15px;
    color: #ccc;
}

/* Footer Styles */
.footer-text {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
margin-bottom: 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

/* Spinner and Notification Styles */
#loading-spinner {
    display: none;
}

.notification {
    display: none;
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 5px;
}

.notification-success {
    background-color: rgba(25, 135, 84, 0.2);
    border: 1px solid #198754;
    color: #d1e7dd;
    text-align: center;
}

.notification-error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #f8d7da;
}

/* Result Card Styles */
.result-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 10px;
    margin-top: 20px;
    border: 1px solid #333;
    display: none;
    text-align: center;
    width: 100%;
}

.title-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    word-break: break-word;
    padding: 12px;
    color: #ffffff;
    text-align: center;
}

.download-buttons {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically (if needed) */
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    text-align: center; /* Ensures text inside buttons is also centered */
}

.btn-download, .btn-next, .btn-byclickdownloader {
    background-color: #0074e4;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    min-width: auto;
flex: unset;
width: auto;
    height: 38px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

.btn-download:hover, .btn-next:hover, .btn-byclickdownloader:hover {
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
}

.btn-byclickdownloader {
    min-width: 170px;
}

.download-history-title {
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.list-group-item {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

/* Button Text Styles */
.btn-text-desktop {
    display: inline;
}

.btn-text-mobile {
    display: none;
}

/* Responsive Styles */
@media (max-width: 576px) {
    .btn-text-desktop {
        display: none;
    }
    .btn-text-mobile {
        display: inline;
    }
    .converter-box {
        padding: 15px 10px;
    }
    .input-group {
        flex-direction: row !important;
        width: 100%;
        margin-bottom: 10px !important;
    }
    .form-input {
        padding: 8px 10px;
        font-size: 14px;
    }
    .input-group .form-control {
        width: auto;
        flex: 1;
        min-width: 0;
    }
    .btn-mp3, .btn-convert {
        flex-shrink: 0;
        padding: 8px 10px;
        font-size: 13px;
    }
    .download-buttons {
        flex-direction: row;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        gap: 5px;
        justify-content: center;
    }
    .btn-download, .btn-next, .btn-byclickdownloader {
        padding: 8px 5px;
        min-width: auto;
        flex: 1;
        font-size: 13px;
        max-width: 33%;
    }
    .result-card {
        padding: 15px 10px;
    }
    .title-text {
        font-size: 1rem;
        padding: 8px;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .btn-byclickdownloader {
        min-width: 0;
    }
    .container-main {
        padding: 10px 10px;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 577px) and (max-width: 768px) {
    .download-buttons {
        gap: 8px;
    }
    .btn-download, .btn-next {
        min-width: 90px;
    }
    .btn-byclickdownloader {
        min-width: 140px;
    }
} 




/** custom **/

         .stats-card {
            background-color: #1e1e1e;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .stats-number {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }
        
        .stats-title {
            font-size: 1rem;
            color: #b0b0b0;
            margin-bottom: 0;
        }
        
        .chart-container {
            background-color: #1e1e1e;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .recent-downloads {
            background-color: #1e1e1e;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .login-box {
            max-width: 400px;
            margin: 100px auto;
            background-color: #1e1e1e;
            border-radius: 8px;
            padding: 2rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .download-item {
            border-bottom: 1px solid #333;
            padding: 10px 0;
        }
        
        .download-item:last-child {
            border-bottom: none;
        }
        
        .mp3-label {
            background-color: #007bff;
            color: white;
            padding: 3px 7px;
            border-radius: 3px;
            font-size: 0.8rem;
        }
        
        .mp4-label {
            background-color: #ff8800;
            color: white;
            padding: 3px 7px;
            border-radius: 3px;
            font-size: 0.8rem;
        }
        
        .country-label {
            background-color: #333;
            color: white;
            padding: 3px 7px;
            border-radius: 3px;
            font-size: 0.8rem;
            margin-right: 5px;
        }
        
        .daily-summary-box {
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #333;
        }
        
        .dashboard-tabs {
            margin-bottom: 20px;
        }
        
        .dashboard-tabs .nav-link {
            color: #b0b0b0;
            background-color: transparent;
            border: none;
            padding: 0.5rem 1rem;
            margin-right: 1rem;
            border-radius: 4px;
        }
        
        .dashboard-tabs .nav-link.active {
            color: #fff;
            background-color: #007bff;
        }
        
        .tab-content {
            padding: 1rem 0;
        }
        
        .country-stat-item {
            display: flex;
            justify-content: space-between;
            padding: 5px 0;
            border-bottom: 1px solid #333;
        }
        
        .country-stat-item:last-child {
            border-bottom: none;
        }
        
        /* PWA Stats styling */
        .pwa-stats-loader {
            min-height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .pwa-stats-content .stats-card {
            transition: all 0.3s ease;
            height: 100%;
        }
        
        .pwa-stats-content .stats-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
        }
        
        .pwa-stats-content .stats-number {
            background: linear-gradient(45deg, #007bff, #00c6ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 2.2rem;
        }
        
        .pwa-stats-content .col-md-6 .stats-number {
            font-size: 2.5rem;
        }
        
        .pwa-stats-content h4 {
            font-size: 1.2rem;
            color: #d0d0d0;
            font-weight: 500;
            border-bottom: 1px solid #333;
            padding-bottom: 0.5rem;
        }
        
        .pwa-stats-content .chart-container {
            transition: all 0.3s ease;
        }
        
        .pwa-stats-content .chart-container:hover {
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
        }
        
        @media (max-width: 767px) {
            .pwa-stats-content .stats-number {
                font-size: 1.8rem;
            }
            
            .pwa-stats-content .col-md-6 .stats-number {
                font-size: 2rem;
            }
            
            .pwa-stats-content .stats-card {
                padding: 1rem;
            }
            
            .chart-container {
                padding: 1rem;
            }
        }
        
        /* Dark theme table styles */
        .table {
            color: #e0e0e0;
            background-color: #1e1e1e;
        }
        
        .table-striped > tbody > tr:nth-of-type(odd) {
            background-color: #252525;
        }
        
        .table-hover tbody tr:hover {
            background-color: #303030;
        }
        
        .table thead th {
            background-color: #2d2d2d;
            color: #b0b0b0;
            border-bottom: 2px solid #333;
            font-weight: 500;
        }
        
        .table td, .table th {
            border-color: #333;
            padding: 12px;
        }
        
        .card {
            background-color: #1e1e1e;
            border: 1px solid #333;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .card-header {
            background-color: #252525;
            border-bottom: 1px solid #333;
            padding: 1rem 1.5rem;
        }
        
        .card-title {
            color: #e0e0e0;
            margin: 0;
            font-size: 1.1rem;
        }
        
        .card-body {
            padding: 1.5rem;
        }
        
        /* Format labels */
        .format-mp3 {
            background-color: #007bff;
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        .format-mp4 {
            background-color: #ff8800;
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
        }








@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    src: url("../webfonts/fa-solid-900.woff2") format("woff2"),
         url("../webfonts/fa-solid-900.woff") format("woff");
}




