﻿
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;  
}
/*/* Modern CSS Styles */
:root {
    --primary: #009688;
    --primary-light: #4db6ac;
    --primary-dark: #00766c;
    --secondary: #ffb300;
    --secondary-light: #ffd54f;
    --secondary-dark: #ff8f00;
    --accent: #e91e63;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --border-radius: 0px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background-color: var(--gray-50);
}

/* Modern Header */
/*.modern-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-logo img {
    height: 50px;
}

.page-title {
    margin-left: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}*/
.modern-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo left, title takes center trick */
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* for absolute centering */
}

.brand-logo {
    flex-shrink: 0; /* prevent shrinking */
}

    .brand-logo img {
        height: 50px;
    }

/* Title styles */
.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    position: absolute; /* center it independent of logo */
    left: 50%;
    transform: translateX(-50%);
}
/* Main Container */
.modern-product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Product Layout - full width */
.product-layout {
    display: block;
    width: 100%;
}

.product-left-column {
    max-width: 100%;
}

.product-right-column {
    display: none; /* removed recommended section */
}

/* Product Overview */
.product-overview {
    margin-bottom: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* Main Product Layout */
.product-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    width: 100%; /* ✅ keep inside viewport */
    max-width: 100%; /* ✅ clamp grid */
    overflow-wrap: break-word; /* ✅ prevent text overflow */
}

.product-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/*.product-img {
   max-width: 400px;*/ /* bigger on desktop */
    /*width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}*/
.product-img {
    width: 100%; /* ✅ scale with parent */
    height: auto;
    max-width: 100%; /* ✅ don’t exceed container */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.product-details {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

    .product-list li {
        margin-bottom: 0.5rem;
        color: var(--gray-700);
    }

    .product-list strong {
        color: var(--gray-800);
        min-width: 120px;
        display: inline-block;
    }

.product-ratings {
    margin-bottom: 1rem;
    color: var(--warning);
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

/* Tab Section */
.tab-section {
    margin-bottom: 3rem;
}

.modern-tab {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.e-tab-header {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.e-toolbar-item {
    padding: 0;
}

.e-tab-wrap {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--gray-700);
}

.e-active .e-tab-wrap {
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.e-tab-wrap:hover {
    background: var(--gray-50);
}

.tab-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-content {
    padding: 2rem;
    background: var(--white);
}

    .tab-content h3 {
        margin-bottom: 1rem;
        color: var(--primary-dark);
    }

.intro-text {
    margin-bottom: 2rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.material-card {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

    .material-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

.material-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 150, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.material-card h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.material-card p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Auth Components */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-600);
}

    .auth-switch a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
    }

        .auth-switch a:hover {
            text-decoration: underline;
        }

/* Blockchain Section */
.blockchain-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.loading-blockchain {
    text-align: center;
    padding: 2rem;
    color: var(--gray-600);
}

.blockchain-error {
    color: var(--error);
    text-align: center;
    padding: 2rem;
}

.blockchain-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

    .blockchain-status.valid {
        background: rgba(76, 175, 80, 0.1);
        color: var(--success);
    }

    .blockchain-status.invalid {
        background: rgba(244, 67, 54, 0.1);
        color: var(--error);
    }

.blockchain-details {
    margin-bottom: 1.5rem;
}

.blockchain-detail {
    display: flex;
    margin-bottom: 0.75rem;
}

.detail-label {
    font-weight: 600;
    min-width: 140px;
    color: var(--gray-700);
}

.detail-value {
    color: var(--gray-800);
    word-break: break-all;
}

.blockchain-link {
    text-align: center;
}

.explorer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

    .explorer-btn:hover {
        background: var(--primary-dark);
    }

/* Footer */
.modern-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

    .footer-section a:hover {
        color: var(--secondary-light);
    }

.social-links {
    display: flex;
    gap: 1rem;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: var(--transition);
    }

        .social-links a:hover {
            background: var(--secondary);
            color: var(--primary-dark);
        }

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 15px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .footer-links a {
        color: var(--white);
        text-decoration: none;
        font-size: 0.75rem;
    }

        .footer-links a:hover {
            color: var(--secondary-light);
        }

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

/* Tablet & Mobile */
@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image {
        order: -1;
        /*        max-width: 300px;
        justify-content: center;
        margin: 0 auto;*/
        max-width: 100%;
        margin: 0 auto;
    }
    .product-img {
        max-width: 300px; /* ✅ scale down on tablet */
    }
    .product-details {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modern-header {
        padding: 1rem;
    }

/*    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .page-title {
        margin-left: 0;
        margin-top: 1rem;
        font-size: 1.25rem;
    }*/
    header-content {
        flex-direction: column;
        align-items: flex-start; /* keep logo left */
    }

    .page-title {
        position: static; /* reset absolute */
        transform: none;
        margin-top: 0.5rem;
        text-align: center;
        width: 100%;
    }
    .modern-product-container {
        padding: 0 1rem;
    }

    .product-overview {
        padding: 1.5rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .material-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .e-tab-wrap {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-header {
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .product-details {
        padding: 1rem;
    }

    .product-title {
        font-size: 1.25rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    /*.product-img {
        max-width: 200px;*/ /* smaller image */
    /*}*/
    .product-img {
        max-width: 100%; /* ✅ full responsive on mobile */
    }

    .blockchain-detail {
        flex-direction: column;
        margin-bottom: 1rem;
    }

    .detail-label {
        min-width: auto;
        margin-bottom: 0.25rem;
    }

    .product-list strong {
        min-width: 100px;
    }
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .page-title {
        font-size: 1.25rem;
    }
}


/*mytrident html changes*/

.tab-header-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #eee;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin; /* Firefox */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

.tab-header {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex: 0 0 auto; /* Prevent shrinking on mobile */
}

    .tab-header i {
        font-size: 1.1rem;
        transition: color 0.3s ease;
    }

    /* Default inactive icon colors */
    .tab-header:nth-child(1) i {
        color: #4caf50;
    }
    /* Raw Material - green */
    .tab-header:nth-child(2) i {
        color: #2196f3;
    }
    /* Process - blue */
    .tab-header:nth-child(3) i {
        color: #9c27b0;
    }
    /* Brand - purple */
    .tab-header:nth-child(4) i {
        color: #ff9800;
    }
    /* Rewards - orange */
    .tab-header:nth-child(5) i {
        color: #607d8b;
    }
    /* Blockchain - gray */

    /* Hover state */
    .tab-header:hover {
        color: #009688;
    }

        .tab-header:hover i {
            color: #009688 !important;
        }

    /* Active tab */
    .tab-header.active {
        color: #009688;
        border-bottom: 3px solid #009688;
    }

        .tab-header.active i {
            color: #009688 !important;
        }

/*.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

    .tab-content.active {
        display: block;
    }
*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.simple-footer {
    background: #009688;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

    .simple-footer a {
        color: #ffd54f; /* Secondary accent */
        text-decoration: none;
        font-weight: 500;
    }

        .simple-footer a:hover {
            text-decoration: underline;
        }

.tab-header-list {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin; /* for Firefox */
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

    .tab-header-list li {
        flex: 0 0 auto; /* prevent shrinking */
        padding: 10px 15px;
        cursor: pointer;
    }
.form-transition {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

    .form-transition.visible {
        opacity: 1;
        max-height: 1000px; /* enough space */
    }

    .form-transition.hidden {
        opacity: 0;
        max-height: 0;
    }


/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

/* Card */
.auth-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .auth-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    /* Headers & labels */
    .auth-card h4 {
        text-align: center;
        font-size: 1.5rem;
        font-weight: 600;
        color: #00796B;
        margin-bottom: 20px;
    }

    .auth-card label {
        font-weight: 500;
        color: #333;
        margin-bottom: 6px;
        display: block;
    }

    /* Buttons */
    .auth-card .e-btn.e-primary {
        background-color: #0d6efd;
        border-radius: 6px;
        width: 100%;
        padding: 10px 0;
        font-weight: 600;
    }

        .auth-card .e-btn.e-primary:hover {
            background-color: #0b5ed7;
        }

    /* Switch links */
    .auth-switch, .auth-card .mt-3 {
        text-align: center;
        margin-top: 15px;
    }

        .auth-switch a, .auth-card .mt-3 a {
            color: #0d6efd;
            font-weight: 500;
            text-decoration: none;
        }

            .auth-switch a:hover, .auth-card .mt-3 a:hover {
                text-decoration: underline;
            }


/* ------------------------- */
/*  DPP SPIN WHEEL CARD STYLES */
/* ------------------------- */

/*.dpp-spin-section {
    display: flex;
    flex-direction: column;
    align-items: center;*/ /* center horizontally */
    /*justify-content: center;*/ /* center vertically */
    /*text-align: center;
    min-height: 100vh;*/ /* full viewport height */
    /*padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.dpp-spin-card {
    background-color: #ffffff;*/ /* white background */
    /*padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);*/ /* soft shadow */
    /*display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;*/ /* card width */
/*}*/

/* ----------------- User Info ----------------- */
/*.dpp-spin-user-info {
    margin-bottom: 50px;*/ /* increased spacing */
    /*text-align: center;*/ /* center align text */
    /*font-family: 'Manrope', sans-serif;
    color: #0f172a;
}

    .dpp-spin-user-info .welcome-message {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .dpp-spin-user-info .user-info-row {
        margin: 4px 0;
        font-size: 1rem;
    }*/

/* ----------------- Spin Wheel ----------------- */
/*.dpp-spin-wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

    .dpp-spin-wheel-container svg {
        display: block;
        width: 400px;
        height: 400px;
        margin: auto;
    }

.dpp-spin-pointer {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    z-index: 10;
}

.dpp-spin-center-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    z-index: 5;
}*/

/* ----------------- Buttons ----------------- */
/*.dpp-spin-wheel-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

    .dpp-spin-wheel-buttons button {
        padding: 10px 25px;
        font-size: 1rem;
        font-weight: 600;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }

        .dpp-spin-wheel-buttons button#spinBtn {
            background-color: #0b5aa6;
            color: #fff;
        }

            .dpp-spin-wheel-buttons button#spinBtn:hover {
                background-color: #094980;
            }

        .dpp-spin-wheel-buttons button#claimBtn {
            background-color: #16a34a;
            color: #fff;
        }

            .dpp-spin-wheel-buttons button#claimBtn:hover {
                background-color: #15803d;
            }*/

/* ----------------- Result Message ----------------- */
/*.dpp-spin-result {
    margin-top: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
}*/

/* ----------------- Wheel Animation ----------------- */
/*.dpp-wheel-animation #wheelGroup {
    transition: transform 4s cubic-bezier(.33,1,.68,1);
    transform-origin: 200px 200px;
}*/
