/* Metropolis Font Faces */
@font-face {
    font-family: "Metropolis";
    src: url("/fonts/Metropolis-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/Metropolis-RegularItalic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/Metropolis-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/Metropolis-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/Metropolis-SemiBold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/Metropolis-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

/* Custom CSS for M for Coding - Dark Theme */
:root {
    --primary-color: #a41c1c;
    --primary-dark: #7d1515;
    --primary-light: #c92828;
    --primary-gradient: linear-gradient(135deg, #a41c1c 0%, #7d1515 100%);
    --secondary-gradient: linear-gradient(45deg, #a41c1c, #c92828);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-bg: #1a1a1a;
    --dark-surface: #2d2d2d;
    --dark-card: #3a3a3a;
    --dark-text: #e0e0e0;
    --dark-text-muted: #b0b0b0;
    --dark-border: #4a4a4a;
}
.bg-primary{
    background: #0D0D0D !important;
}
.text-primary{
    color: var(--primary-color) !important;
}
body {
    font-family: "Metropolis", sans-serif;
    background: #0e0e0efa;
    color:#DDDDDD
}
.form-control-plaintext{
        color: #acacac;
}

/* Navbar Improvements */
.navbar-brand {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    padding: .2rem 0 !important;
}

.navbar-brand img {
    max-height: 50px !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    margin-right: 8px !important;
}
.dev-avatar{
    background-color: var(--primary-color) !important;
}

#nxtgenLogoF{
    display: none !important;
}

.navbar-nav .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    min-height: 48px !important;
    white-space: nowrap !important;
}

.navbar-nav .nav-link i {
    margin-right: 6px !important;
    font-size: 0.9rem !important;
    width: 16px !important;
    text-align: center !important;
}

.navbar {
    min-height: 60px !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.navbar-toggler {
    border: none !important;
    padding: 0.5rem !important;
}

/* Mobile navbar adjustments */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
        justify-content: flex-start !important;
    }
    
    .navbar-brand {
        padding: 0.2rem 0 !important;
    }
    
    .navbar-collapse {
        margin-top: 0.5rem !important;
        border-top: 1px solid #333 !important;
        padding-top: 1rem !important;
    }
}

.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 140px);
}

/* Hero Section */
.hero-section {
    color: white;
    padding: 100px 0;
    margin-top: -70px;
    padding-top: 170px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Feature Cards */
.feature-card {
    background: #0d0d0d;
    border: 1px solid var(--dark-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

/* Hover effect removed for better user experience */

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.pricing-card {
    background: #181818;
    /* border: 2px solid var(--dark-border); */
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    box-shadow: 0px 0px 60px #000000a3;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #2a1f1f 0%, #3a2525 100%);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-gradient);
    color: white;
    padding: 8px 15px 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.plan-duration {
    color: var(--dark-text-muted);
    margin-bottom: 20px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.plan-description {
    color: var(--dark-text-muted);
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.feature-list li {
    padding: 8px 0;
    color: var(--dark-text-muted);
}

.feature-list li i {
    color: var(--success-color);
    margin-right: 10px;
}
.feature-icon img {
    width: 50px;
    height: 50px;
}

/* Buttons */
.btn-primary-custom {
    background: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform:none;
    letter-spacing: 1px;
    color: #000;
}

.btn-primary-custom:hover {
    transform: translateY(-1px);
    background: #fff;
    color: #000;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    background: transparent;
}

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

/* Token Display */
.token-container {
    background: var(--dark-surface);
    border: 2px solid var(--dark-border);
    border-radius: 10px;
    padding: 20px;
}

.copy-token-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    border: none;
}
.logout{
    color: var(--primary-color);
    text-decoration: none;
}
.token-display {
    font-family: 'Courier New', monospace;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 5px;
    padding: 15px;
    word-break: break-all;
    margin: 10px 0;
    color: var(--dark-text);
}

.token-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.token-status.active {
    background: #d4edda;
    color: #155724;
}

.token-status.expired {
    background: #f8d7da;
    color: #721c24;
}

.token-status.inactive {
    background: #e2e3e5;
    color: #6c757d;
}

/* Dashboard Cards */
.dashboard-card {
    background: #181a1c;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-text);
}

.stat-label {
    color: var(--dark-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Loading States */
.spinner {
    border: 3px solid var(--dark-border);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Alert Messages */
.alert-custom {
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
}

/* Tables */
.table-custom {
    background: var(--dark-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.table-custom thead {
    background: var(--primary-gradient);
    color: white;
}

.table-custom tbody tr {
    background: var(--dark-card);
    border-bottom: 1px solid var(--dark-border);
    color: var(--dark-text);
}

.table-custom tbody tr:hover {
    background: var(--dark-surface);
}

/* Profile Section */
.profile-card {
    background: #0D0D0D;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
}

/* Bootstrap Dark Theme Overrides */
.form-control {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.form-control:focus {
    background: var(--dark-surface);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(164, 28, 28, 0.25);
    color: var(--dark-text);
}

.form-control::placeholder {
    color: var(--dark-text-muted);
}

.input-group-text {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

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

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

.alert {
    border-radius: 10px;
}

.alert-info {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.2);
    color: var(--dark-text);
}
.alert-success{
     background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: var(--dark-text);
}


.modal-content {
    background: #131313;
    color: var(--dark-text);
    border: 2px solid #272323;
}
.btn-close{
    color:#fff !important;
    background: transparent !important;
    border:none !important;
}

.testimonial{
    position: relative;
}
.testimonial p{
    padding-bottom: 40px;
}
.developer{
    position: absolute;
    bottom: 20px;
}
.modal-header {
    border-bottom-color: var(--dark-border);
}

.modal-footer {
    border-top-color: var(--dark-border);
}

.dropdown-menu {
    background: var(--dark-card);
    border-color: var(--dark-border);
}

.dropdown-item {
    color: var(--dark-text);
}
code{
    color: #fff !important;
}
.dropdown-item:hover {
    background: var(--dark-surface);
    color: var(--dark-text);
}
.plan-price{
    overflow-x: auto;
}

/* Text colors for dark theme */
.text-muted {
    color: var(--dark-text-muted)!important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text);
}

p {
    color: var(--dark-text-muted);
}
/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .pricing-card {
        margin-bottom: 20px;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
}
@media (max-width: 600px) {
    .hero-btn-group{
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px;
        margin-top: 50px !important;
    }
    .hero-btn-group a {
        width: 90%;
        margin: auto;
    }
    .container{
        padding-right: 25px !important;
        padding-left: 25px !important;
    }
}

.footer-row{
    display: flex;
    align-items: center;
    justify-content: center;
}
table{
    width: 100% !important;
}

tr{
    background: #171717 !important;
}
td,th{
    padding: 1rem 1rem !important;
    color: #eee !important;
}
td{
     background: #171717 !important;
}
th{
    background: var(--primary-color) !important;
}

/* Beautiful Account Information Section */

.account-info-container {
    background: #0D0D0D;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.account-info-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0D0D0D;
}

.account-header {
    padding: 25px 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffffff08;
}

.mfclink{
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

.account-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-title i {
    color: #a41c1c;
    font-size: 1.5rem;
}

.account-status-badge {
    background: linear-gradient(135deg, #38852c, #1c935a);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

span.badge {
    border-radius: 50px;
    padding: 12px;
}
.account-details {
    padding: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

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

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(164, 28, 28, 0.2), rgba(209, 41, 41, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.info-icon i {
    color: #ffffff;
    font-size: 1.3rem;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.85rem;
    color: #a0a0a0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    #nxtgenLogo{
        display: none !important;
    }
    #nxtgenLogoF{
        display: block !important;
    }
    .account-info-container {
        margin-top: 20px;
    }

    .account-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .account-details {
        padding: 20px;
    }

    .info-item {
        padding: 15px 0;
    }

    .info-icon {
        width: 45px;
        height: 45px;
        margin-right: 15px;
    }
}
/* Responsive Design */
@media (min-width: 900px) {
    #hiwb{
        margin-top: 10px;
    }
}

/* Flow Diagram Styles */
.flow-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.flow-number {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.flow-content {
    flex: 1;
}

.flow-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.flow-text {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .flow-step {
        flex-direction: column;
        text-align: center;
    }
    .grouped-logo{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
}
