/********** Landing Page Color Override for Investor Template **********/
/* Apply Indo Foods Brand Colors to User Dashboard */

:root {
    --primary: #E60023 !important;
    --secondary: #F4A261 !important;
    --light: #FFF5F5 !important;
    --dark: #3D0A12 !important;
}

/* ===== PRIMARY COLOR (#E60023 - Brand Red) ===== */
.text--primary,
.text-primary,
.text-primary-color {
    color: #E60023 !important;
}

.btn--primary,
.btn-primary,
.btn-primary-color {
    background-color: #E60023 !important;
    border-color: #E60023 !important;
    color: #fff !important;
}

.btn--primary:hover,
.btn-primary:hover {
    background-color: #3D0A12 !important;
    border-color: #3D0A12 !important;
    color: #fff !important;
}

.bg--primary,
.bg-primary {
    background-color: #E60023 !important;
    color: #fff !important;
}

/* ===== BASE COLOR (Indo Foods Primary Red) ===== */
.text--base {
    color: #E60023 !important;
}

.btn--base {
    background-color: #E60023 !important;
    border-color: #E60023 !important;
    color: #fff !important;
}

.btn--base:hover {
    background-color: #3D0A12 !important;
    border-color: #3D0A12 !important;
    color: #fff !important;
}

.bg--base {
    background-color: #E60023 !important;
    color: #fff !important;
}

/* ===== SECONDARY COLOR (#F4A261 - Warm Accent) ===== */
.text--secondary,
.text-secondary {
    color: #F4A261 !important;
}

.btn--secondary {
    background-color: #F4A261 !important;
    border-color: #F4A261 !important;
    color: #fff !important;
}

.btn--secondary:hover {
    background-color: #E60023 !important;
    border-color: #E60023 !important;
    color: #fff !important;
}

.bg--secondary {
    background-color: #F4A261 !important;
    color: #fff !important;
}

/* ===== DARK COLOR (#3D0A12 - Brand Red) ===== */
.bg--dark,
.bg-dark {
    background-color: #3D0A12 !important;
    color: #fff !important;
}

.text--dark {
    color: #3D0A12 !important;
}

/* ===== LIGHT COLOR (#FFF5F5 - Soft Brand Background) ===== */
.bg--light,
.bg-light {
    background-color: #FFF5F5 !important;
}

/* ===== LINKS ===== */
a {
    color: #E60023;
}

a:hover,
a:focus {
    color: #3D0A12 !important;
}

.text-primary a,
.text--primary a {
    color: #E60023 !important;
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
    color: #E60023 !important;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: #E60023 !important;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color: #3D0A12 !important;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: #E60023 !important;
    background-color: #FFF5F5 !important;
}

.sidebar-menu a.active img {
    filter: brightness(0) saturate(100%) invert(30%) sepia(95%) saturate(2000%) hue-rotate(200deg) brightness(0.9) contrast(1.1);
}

/* ===== CARDS ===== */
.card-header {
    background-color: #FFF5F5 !important;
    border-color: #E60023 !important;
}

.card-title {
    color: #E60023 !important;
}

/* ===== BADGES ===== */
.badge--primary,
.badge-primary {
    background-color: #E60023 !important;
    color: #fff !important;
}

.badge--secondary {
    background-color: #F4A261 !important;
    color: #fff !important;
}

/* ===== BUTTONS OUTLINE ===== */
.btn--outline-primary {
    border-color: #E60023 !important;
    color: #E60023 !important;
}

.btn--outline-primary:hover {
    background-color: #E60023 !important;
    border-color: #E60023 !important;
    color: #fff !important;
}

.btn--outline-base {
    border-color: #E60023 !important;
    color: #E60023 !important;
}

.btn--outline-base:hover {
    background-color: #E60023 !important;
    border-color: #E60023 !important;
    color: #fff !important;
}

/* ===== FORM ELEMENTS ===== */
.form--control:focus,
.form-control:focus {
    border-color: #E60023 !important;
    box-shadow: 0 0 0 0.2rem rgba(230, 0, 35, 0.25) !important;
}

.form--control:focus-visible {
    outline-color: #E60023 !important;
}

/* ===== TABLES ===== */
.table thead th {
    background-color: #FFF5F5 !important;
    color: #E60023 !important;
    border-color: #E60023 !important;
}

.table tbody tr:hover {
    background-color: #FFF5F5 !important;
}

/* ===== DROPDOWN MENUS ===== */
.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background-color: #FFF5F5 !important;
    color: #E60023 !important;
}

.dropdown-menu .active {
    background-color: #E60023 !important;
    color: #fff !important;
}

/* ===== NAVIGATION TABS ===== */
.nav-tabs .nav-link.active {
    background-color: #E60023 !important;
    border-color: #E60023 !important;
    color: #fff !important;
}

.nav-tabs .nav-link:hover {
    border-color: #E60023 !important;
    color: #E60023 !important;
}

/* ===== PAGINATION ===== */
.page-link {
    color: #E60023 !important;
    border-color: #E60023 !important;
}

.page-link:hover {
    background-color: #FFF5F5 !important;
    border-color: #E60023 !important;
    color: #3D0A12 !important;
}

.page-item.active .page-link {
    background-color: #E60023 !important;
    border-color: #E60023 !important;
    color: #fff !important;
}

/* ===== ALERTS ===== */
.alert-primary {
    background-color: #FFF5F5 !important;
    border-color: #E60023 !important;
    color: #E60023 !important;
}

/* ===== PROGRESS BARS ===== */
.progress-bar {
    background-color: #E60023 !important;
}

/* ===== MODAL ===== */
.modal-header {
    background-color: #FFF5F5 !important;
    border-bottom-color: #E60023 !important;
}

.modal-title {
    color: #E60023 !important;
}

/* ===== PRODUCT/PLAN CARDS ===== */
.plan-card,
.invest-card,
.invest-item,
.plan-item {
    border-color: #E60023 !important;
    transition: all 0.3s ease !important;
}

.plan-card:hover,
.invest-card:hover,
.invest-item:hover,
.plan-item:hover {
    border-color: #F4A261 !important;
    box-shadow: 0 5px 20px rgba(230, 0, 35, 0.15) !important;
    transform: translateY(-2px) !important;
}

.plan-card .price,
.invest-card .price,
.invest-item .price,
.plan-item .price,
.price-amount {
    color: #E60023 !important;
    font-weight: 600 !important;
}

.plan-card .title,
.invest-card .title,
.invest-item .title,
.plan-item .title {
    color: #E60023 !important;
}

.plan-card .subtitle,
.invest-card .subtitle,
.invest-item .subtitle,
.plan-item .subtitle,
.product-type {
    color: #F4A261 !important;
}

/* ===== MODERN PLAN CARD DESIGN ===== */
.plan-card-modern {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(230, 0, 35, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #FFF5F5;
    display: flex;
    flex-direction: column;
}

.plan-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(230, 0, 35, 0.2);
    border-color: #E60023;
}

.plan-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF5F5 0%, #ffffff 100%);
}

.plan-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.plan-card-modern:hover .plan-image {
    transform: scale(1.1);
}

.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.stock-badge.in-stock {
    background: #28a745;
    color: #ffffff;
}

.stock-badge.out-stock {
    background: #dc3545;
    color: #ffffff;
}

.plan-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-type-badge {
    margin-bottom: 12px;
}

.product-type-badge span {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #F4A261 0%, #E60023 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-title-modern {
    color: #E60023;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    min-height: 60px;
}

.price-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #FFF5F5 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #E60023;
}

.price-main {
    margin-bottom: 8px;
}

.price-amount {
    color: #E60023;
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.price-label {
    color: #F4A261;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.plan-details {
    flex-grow: 1;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #FFF5F5;
}

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

.detail-item.detail-sub {
    padding-left: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.9rem;
}

.detail-label {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label i {
    color: #E60023;
    font-size: 1rem;
}

.detail-value {
    color: #E60023;
    font-weight: 600;
    font-size: 0.95rem;
}

.detail-value.stock-status-in_stock {
    color: #28a745;
}

.detail-value.stock-status-out_of_stock {
    color: #dc3545;
}

.plan-action {
    margin-top: auto;
    padding-top: 15px;
}

/* ===== PURCHASE BUTTON - HIGH VISIBILITY ===== */
.btn-purchase {
    width: 100% !important;
    padding: 16px 24px !important;
    background: #E60023 !important;
    color: #ffffff !important;
    border: 2px solid #E60023 !important;
    border-radius: 10px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.4) !important;
    text-shadow: none !important;
    cursor: pointer !important;
    min-height: 50px !important;
    line-height: 1.5 !important;
}

.btn-purchase:hover:not(:disabled) {
    background: #3D0A12 !important;
    border-color: #3D0A12 !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(230, 0, 35, 0.5) !important;
}

.btn-purchase:active:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.4) !important;
}

.btn-purchase:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(230, 0, 35, 0.3), 0 4px 15px rgba(230, 0, 35, 0.4) !important;
}

.btn-purchase:disabled {
    background: #cccccc !important;
    border-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.7 !important;
}

.btn-purchase i {
    font-size: 1.3rem !important;
    color: #ffffff !important;
}

/* Ensure text is always white and visible */
.btn-purchase,
.btn-purchase *,
.btn-purchase span {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.btn-purchase:disabled,
.btn-purchase:disabled *,
.btn-purchase:disabled span {
    color: #666666 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .plan-title-modern {
        font-size: 1.3rem;
        min-height: auto;
    }
    
    .price-amount {
        font-size: 1.6rem;
    }
    
    .plan-image-wrapper {
        height: 200px;
    }
}

/* ===== TOPBAR ===== */
.topbar {
    background-color: #FFF5F5 !important;
}

/* ===== DASHBOARD STATS ===== */
.dashboard-stat-card {
    border-left-color: #E60023 !important;
}

.dashboard-stat-card .stat-value {
    color: #E60023 !important;
}

/* ===== ACCOUNT BALANCE SECTION ===== */
.balance-section {
    background-color: #FFF5F5 !important;
}

.balance-amount {
    color: #E60023 !important;
}

/* ===== SUCCESS/INFO COLORS (Keep but enhance) ===== */
.btn--success,
.btn-success {
    background-color: #28A745 !important;
    border-color: #28A745 !important;
}

.btn--info,
.btn-info {
    background-color: #F4A261 !important;
    border-color: #F4A261 !important;
}

/* ===== OVERRIDE THEME COLORS ===== */
.theme-one,
.theme-one-bg {
    color: #E60023 !important;
    background: #E60023 !important;
}

/* ===== DASHBOARD SPECIFIC ===== */
.dashboard-wrapper {
    background-color: #fff !important;
}

.dashboard-container {
    background-color: #fff !important;
}

/* ===== TOPBAR ===== */
.topbar {
    background-color: #FFF5F5 !important;
    border-bottom: 1px solid #E60023 !important;
}

.topbar a {
    color: #E60023 !important;
}

.topbar a:hover {
    color: #3D0A12 !important;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background-color: #fff !important;
    border-right: 1px solid #FFF5F5 !important;
}

.sidebar-logo {
    border-bottom: 1px solid #FFF5F5 !important;
}

/* ===== ACCOUNT BALANCE SECTION ===== */
.balance-card,
.account-balance-card {
    background-color: #FFF5F5 !important;
    border: 1px solid #E60023 !important;
    border-radius: 8px !important;
}

.balance-label {
    color: #E60023 !important;
    font-weight: 600 !important;
}

.balance-amount {
    color: #E60023 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.balance-wallet-label {
    color: #F4A261 !important;
}

/* ===== BUTTON ENHANCEMENTS ===== */
.btn {
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3) !important;
}

/* ===== ALL PURCHASE/BUY BUTTONS - HIGH VISIBILITY ===== */
.btn-purchase,
.cmn--btn.plan-btn,
.plan-btn,
button.investModal,
.btn--base.plan-btn {
    width: 100% !important;
    padding: 16px 24px !important;
    background: #E60023 !important;
    color: #ffffff !important;
    border: 2px solid #E60023 !important;
    border-radius: 10px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.4) !important;
    text-shadow: none !important;
    cursor: pointer !important;
    min-height: 50px !important;
}

.btn-purchase:hover:not(:disabled),
.cmn--btn.plan-btn:hover:not(:disabled),
.plan-btn:hover:not(:disabled),
button.investModal:hover:not(:disabled),
.btn--base.plan-btn:hover:not(:disabled) {
    background: #3D0A12 !important;
    border-color: #3D0A12 !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(230, 0, 35, 0.5) !important;
}

.btn-purchase:active:not(:disabled),
.cmn--btn.plan-btn:active:not(:disabled),
.plan-btn:active:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.4) !important;
}

.btn-purchase:focus,
.cmn--btn.plan-btn:focus,
.plan-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(230, 0, 35, 0.3), 0 4px 15px rgba(230, 0, 35, 0.4) !important;
}

.btn-purchase:disabled,
.cmn--btn.plan-btn:disabled,
.plan-btn:disabled {
    background: #cccccc !important;
    border-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.7 !important;
}

/* Ensure all text and icons are white and visible */
.btn-purchase,
.btn-purchase *,
.cmn--btn.plan-btn,
.cmn--btn.plan-btn *,
.plan-btn,
.plan-btn * {
    color: #ffffff !important;
}

.btn-purchase:disabled,
.btn-purchase:disabled *,
.cmn--btn.plan-btn:disabled,
.cmn--btn.plan-btn:disabled * {
    color: #666666 !important;
}

.btn-purchase i,
.cmn--btn.plan-btn i,
.plan-btn i {
    font-size: 1.3rem !important;
    color: #ffffff !important;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-item a {
    color: #E60023 !important;
}

.breadcrumb-item.active {
    color: #3D0A12 !important;
}

/* ===== STATISTICS CARDS ===== */
.stat-card,
.dashboard-stat {
    border-left: 4px solid #E60023 !important;
}

.stat-card:hover,
.dashboard-stat:hover {
    border-left-color: #F4A261 !important;
    box-shadow: 0 2px 10px rgba(230, 0, 35, 0.1) !important;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    .sidebar-menu a.active {
        background-color: #FFF5F5 !important;
    }
    
    .plan-card,
    .invest-card {
        margin-bottom: 1.5rem !important;
    }
    
    .btn-purchase,
    .cmn--btn.plan-btn,
    .plan-btn {
        font-size: 1rem !important;
        padding: 14px 20px !important;
    }
}

/* ===== FINAL BUTTON VISIBILITY OVERRIDE ===== */
/* Ensure Purchase Now buttons are always clearly visible */
.plan-card-modern .btn-purchase,
.plan-item .btn-purchase,
.plan-item .cmn--btn,
.plan-item .plan-btn,
.plan-item button.investModal,
.plan-item .btn--base {
    background-color: #E60023 !important;
    color: #ffffff !important;
    border: 2px solid #E60023 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.plan-card-modern .btn-purchase:hover,
.plan-item .btn-purchase:hover,
.plan-item .cmn--btn:hover,
.plan-item .plan-btn:hover {
    background-color: #3D0A12 !important;
    border-color: #3D0A12 !important;
    color: #ffffff !important;
}

.plan-card-modern .btn-purchase:disabled,
.plan-item .btn-purchase:disabled,
.plan-item .cmn--btn:disabled,
.plan-item .plan-btn:disabled {
    background-color: #cccccc !important;
    border-color: #cccccc !important;
    color: #666666 !important;
}
