/*
 Theme Name:   Royal Elementor Kit Child
 Description:  Child theme for Hello Elementor
 Author:       Jaimin Thaker
 Template:     royal-elementor-kit
 Version:      1.0
*/
@import url("../royal-elementor-kit/style.css");


/* Single Portfolio */


.single-portfolio .jt-excerpt p {
    color: #C2C2C2 !important;
}



/* Option Calculator Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.pro-options-calculator {
    font-family: 'Inter', sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    /* Reset box sizing for this container */
    box-sizing: border-box;
}

.pro-options-calculator * {
    box-sizing: border-box;
}

.calc-header {
    text-align: center;
    margin-bottom: 40px;
}

.calc-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #28e98c;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(40, 233, 140, 0.3);
}

.calc-header p {
    color: #a0a0a0;
    font-size: 16px;
}

.calculator-card {
    background: linear-gradient(135deg, #1a1a1c 0%, #2d2e30 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(40, 233, 140, 0.1);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #28e98c, transparent);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    color: #28e98c;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    background: #1f2022;
    border: 2px solid #3a3b3d;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input::placeholder {
    color: #6a6a6a;
}

.input-group input:focus {
    outline: none;
    background: #252628;
    border-color: #28e98c;
    box-shadow: 0 0 0 4px rgba(40, 233, 140, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.calculate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #28e98c 0%, #1fd077 100%);
    color: #1a1a1c;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(40, 233, 140, 0.3);
    position: relative;
    overflow: hidden;
}

.calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.calculate-btn:hover::before {
    left: 100%;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(40, 233, 140, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.results-section {
    background: linear-gradient(135deg, #1a1a1c 0%, #2d2e30 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(40, 233, 140, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.calculation-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(40, 233, 140, 0.15);
    color: #28e98c;
    border: 1px solid rgba(40, 233, 140, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.clear-history-btn {
    padding: 10px 20px;
    background: rgba(255, 70, 70, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 70, 70, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-history-btn:hover {
    background: rgba(255, 70, 70, 0.25);
    border-color: rgba(255, 70, 70, 0.5);
    transform: translateY(-1px);
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #3a3b3d;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    /* Force dark background to override WordPress theme defaults */
    background: #1f2022 !important;
    background-color: #1f2022 !important;
}

.results-table thead {
    background: linear-gradient(135deg, #28e98c 0%, #1fd077 100%);
}

.results-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1c !important;
    /* Force black text on green header */
    white-space: nowrap;
    border-bottom: none;
}

/* --- CRITICAL FIXES FOR VISIBILITY --- */

.results-table tbody tr {
    transition: all 0.2s ease;
    /* Force background color on rows to kill theme striping */
    background-color: #1f2022 !important;
    background: #1f2022 !important;
}

/* Override WordPress alternating row styles (zebra striping) */
.results-table tbody tr:nth-child(odd),
.results-table tbody tr:nth-child(even) {
    background-color: #1f2022 !important;
}

.results-table td {
    padding: 16px 15px;
    border-bottom: 1px solid #2d2e30;
    font-size: 15px;
    /* Force text color */
    color: #e0e0e0 !important;
}

.results-table tbody tr:hover {
    /* Slightly lighter dark on hover */
    background-color: #252628 !important;
}

/* --- ROW HIGHLIGHTING FIXES --- */

/* Green Highlight Row */
.results-table tr.highlight-row {
    background-color: rgba(40, 233, 140, 0.1) !important;
    border-left: 4px solid #28e98c;
}

/* Ensure the cells inside the highlight row also get the background 
               (Some themes apply white background directly to TDs) */
.results-table tr.highlight-row td {
    background-color: rgba(40, 233, 140, 0.1) !important;
    color: #fff !important;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

/* Stoploss Row */
.results-table tr.stoploss-row {
    background-color: rgba(255, 70, 70, 0.1) !important;
    border-left: 4px solid #ff6b6b;
}

.results-table tr.stoploss-row td {
    background-color: rgba(255, 70, 70, 0.1) !important;
    color: #fff !important;
}

.calc-separator {
    background: transparent !important;
    pointer-events: none;
}

.calc-separator:hover {
    background: transparent !important;
}

.target-cell {
    font-weight: 600;
    color: #ffffff !important;
}

.price-cell {
    font-weight: 600;
    color: #28e98c !important;
}

.profit-cell {
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.profit-positive {
    color: #28e98c !important;
    background: rgba(40, 233, 140, 0.15);
    border: 1px solid rgba(40, 233, 140, 0.3);
}

.profit-negative {
    color: #ff6b6b !important;
    background: rgba(255, 70, 70, 0.15);
    border: 1px solid rgba(255, 70, 70, 0.3);
}

/* Highlighting star logic */
.highlight-row {
    position: relative;
}

/* .highlight-row::before {
                content: '⭐';
                position: absolute;
                left: 8px;
                top: 50%;
                transform: translateY(-50%);
                font-size: 18px;
                z-index: 10;
            } */

/* .highlight-row td:first-child {
    padding-left: 35px;
} */

.highlight-row td {
    font-weight: 600;
}

.results-table .target-row {
    border-left: 4px solid rgba(40, 233, 140, 0.3);
    background-color: #1f2022 !important;
}

table.results-table tbody > tr:nth-child(odd) > td, table tbody > tr:nth-child(odd) > th {
    background-color: #1f2022 !important;
}

table.results-table tbody tr:hover > td, table tbody tr:hover > th {
    background-color: #1f2022 !important;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6a6a6a;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
    stroke: #28e98c;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
    color: #8a8a8a;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {

    .calculator-card,
    .results-section {
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .calc-header h2 {
        font-size: 28px;
    }

    .results-table th,
    .results-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .highlight-row::before {
        display: none;
    }

    .highlight-row td:first-child {
        padding-left: 10px;
    }
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(40, 233, 140, 0.3);
    }

    50% {
        text-shadow: 0 0 30px rgba(40, 233, 140, 0.5);
    }
}

.calc-header h2 {
    animation: glow 3s ease-in-out infinite;
}