/* Main tooltip container */
.cpt-tooltip {
    width: 320px;
    background-color: #1a2236;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    margin: 0 auto;
}

/* Tooltip header */
.tooltip-header {
    padding: 10px 15px;
    background-color: #1e2b4a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-title {
    font-weight: bold;
    color: white;
    font-size: 16px;
}

.tooltip-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#global-reset-btn {
    font-size: 12px;
    padding: 3px 8px;
}

/* Tooltip body */
.tooltip-body {
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

/* Tooltip steps */
.tooltip-step {
    margin-bottom: 15px;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #3b5998;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

.step-title {
    font-weight: bold;
    color: white;
}

.step-content {
    padding-left: 32px;
}

/* Form elements in tooltip */
.cpt-tooltip .form-control {
    background-color: #0f172a;
    border-color: #2d3748;
    color: white;
}

.cpt-tooltip .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(93, 107, 248, 0.25);
}

/* Button styling */
.cpt-tooltip .btn-outline-primary {
    border-color: #8338ec;
    color: #8338ec;
}

.cpt-tooltip .btn-outline-primary:hover {
    background-color: #8338ec;
    color: white;
}

.cpt-tooltip .btn-primary {
    background-color: #8338ec;
    border-color: #8338ec;
}

.cpt-tooltip .btn-primary:hover {
    background-color: #7127d9;
    border-color: #7127d9;
}

.cpt-tooltip .btn-outline-light {
    border-color: #4a5568;
    color: #e2e8f0;
}

.cpt-tooltip .btn-outline-light:hover {
    background-color: #4a5568;
    border-color: #4a5568;
    color: white;
}

/* Results styling */
.results-container {
    max-height: 400px;
    overflow-y: auto;
}

.results-table-wrapper {
    max-height: 250px;
    overflow-y: auto;
}

/* Compact table styling */
.compact-table {
    background-color: #1e2b4a;
    color: #e2e8f0;
    font-size: 12px;
}

.compact-table td {
    padding: 0.25rem 0.5rem;
    border-color: #2d3748;
}

/* Tables */
.cpt-tooltip .table-dark {
    background-color: #1e2b4a;
    color: #e2e8f0;
    font-size: 13px;
}

.cpt-tooltip .table-dark th,
.cpt-tooltip .table-dark td {
    border-color: #2d3748;
}

/* Results content */
#final-charge-value {
    color: #60a5fa !important;
    font-size: 28px;
}

.calculation-details-wrapper {
    margin-top: 10px;
}

#calculation-details {
    background-color: #2d3748;
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #e2e8f0;
}

/* Collapsible results section */
#results-collapse-btn {
    padding: 1px 5px;
    font-size: 10px;
    border-radius: 3px;
}

.results-collapsed #detailed-results {
    display: none;
}

/* Animation for smoother transitions */
.tooltip-step {
    transition: all 0.3s ease;
}
