/* Portfolio Calculator - WordPress Plugin CSS */

.pc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}

.pc-calculator-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
}

.pc-header {
    margin-bottom: 32px;
}

.pc-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #ffffff;
}

.pc-total-monthly {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.pc-pulse-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: pc-pulse 2s infinite;
}

@keyframes pc-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(59, 130, 246, 0.8); }
    50% { opacity: 0.3; }
}

.pc-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.pc-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.pc-section-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.pc-disclaimer {
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.pc-disclaimer p {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 184, 0, 0.9);
    line-height: 1.5;
    margin: 0;
}

.pc-input-group {
    margin-bottom: 20px;
}

.pc-input-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.pc-input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.pc-input-field:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.3);
}

.pc-input-field:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pc-frequency-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.pc-frequency-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.pc-frequency-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.pc-frequency-btn.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.pc-slider-container {
    margin-bottom: 12px;
}

.pc-slider-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pc-slider {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
}

.pc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

.pc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.pc-slider:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pc-slider-value {
    min-width: 80px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-align: right;
}

.pc-checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pc-checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.pc-checkbox-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.pc-custom-period-input {
    width: 150px;
}

.pc-instruments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.pc-instrument-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.pc-instrument-card.active {
    border-color: rgba(59, 130, 246, 0.3);
}

.pc-instrument-card.inactive {
    opacity: 0.5;
}

.pc-instrument-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pc-instrument-name-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.pc-instrument-name-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.3);
}

.pc-instrument-name-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pc-toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pc-toggle-switch.active {
    background: #3b82f6;
}

.pc-toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.pc-toggle-switch.active::after {
    left: 23px;
}

.pc-delete-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.pc-delete-btn:hover {
    color: #ef4444;
}

.pc-instrument-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pc-instrument-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pc-instrument-input-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
}

.pc-instrument-input-field {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.pc-instrument-input-field:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.3);
}

.pc-instrument-initial-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 8px;
}

.pc-instrument-initial-input {
    flex: 1;
}

.pc-instrument-info {
    grid-column: 1 / -1;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
    font-style: italic;
}

.pc-add-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pc-add-instrument-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.pc-add-instrument-btn:hover {
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* Modals */
.pc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pc-modal.active {
    display: flex;
}

.pc-modal-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.pc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pc-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.pc-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.pc-modal-close:hover {
    color: #ffffff;
}

.pc-search-input-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.pc-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.pc-search-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
}

.pc-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pc-search-category {
    margin-bottom: 16px;
}

.pc-search-category-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.pc-search-result-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.pc-search-result-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.pc-search-result-symbol {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

.pc-custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pc-submit-btn {
    width: 100%;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.pc-submit-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

/* Chart Section */
.pc-chart-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px 24px;
    height: 400px;
    margin-bottom: 24px;
}

/* Allocation Chart */
.pc-allocation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.pc-allocation-chart {
    height: 280px;
    position: relative;
}

.pc-allocation-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pc-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pc-legend-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-legend-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.pc-legend-value {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.pc-legend-percent {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 8px;
}

/* Results Grid */
.pc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.pc-result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.pc-result-card.total-card {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.pc-result-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.pc-result-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.pc-result-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

.pc-result-value {
    font-size: 16px;
    font-weight: 700;
}

.pc-invested-value {
    color: rgba(255, 255, 255, 0.5);
}

.pc-profit-value {
    color: #10b981;
}

.pc-profit-value.negative {
    color: #ef4444;
}

.pc-empty-state {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .pc-calculator-card {
        padding: 28px;
    }

    .pc-frequency-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .pc-instrument-inputs {
        grid-template-columns: 1fr;
    }

    .pc-chart-section {
        height: 300px;
        padding: 24px 16px;
    }

    .pc-allocation-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pc-allocation-chart {
        height: 220px;
    }

    .pc-results-grid {
        grid-template-columns: 1fr;
    }

    .pc-add-buttons {
        grid-template-columns: 1fr;
    }

    .pc-modal-content {
        padding: 24px;
    }
}
@media (max-width: 768px) {
    .pc-section-desc,
    .pc-disclaimer p {
        font-size: 16px !important;
    }
}