/* Class Points Tool Container */
#class-points-tool {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Class Name Display */
#class-points-class-name {
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #444;
    font-weight: 600;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
}

/* Points Display */
#points-display {
    font-size: 3em;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 0;  /* Remove bottom margin */
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;  /* Ensure text stays above particles */
}

/* Points Text States */
#points-text {
    color: #333;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);  /* Add glow effect to help readability */
}

/* Points Control Buttons */
#add-point,
#reset-points {
    width: 60px;
    height: 35px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#add-point {
    background-color: #4caf50;
    color: white;
}

#add-point:hover:not([disabled]) {
    background-color: #45a049;
    transform: scale(1.05);
}

#reset-points {
    background-color: #f44336;
    color: white;
}

#reset-points:hover:not([disabled]):not(.disabled) {
    background-color: #d32f2f;
    transform: scale(1.05);
}

#add-point:disabled,
#reset-points:disabled,
#reset-points.disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

/* Points Container - Simplified */
#points-container {
    width: 160px;
    height: 120px;
    margin: 0 auto;  /* Remove top margin */
    position: relative;  /* Added for absolute positioning of particles */
    border: 1px solid #e0e0e0;  /* Make all borders 1px */
    overflow: hidden;  /* Contain the particles */
    background: rgba(0,0,0,0.02);  /* Optional: helps visualize container */
    box-sizing: border-box;  /* Add this to ensure borders don't affect calculations */
}

/* No class state */
#points-container.no-class {
    background: rgba(0,0,0,0.04);
    border-style: dashed;
}

.point-particle {
    position: absolute;  /* Required for physics positioning */
    width: 12px;
    height: 12px;
    /* remove background: #4caf50; as it's now set in JS */
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    will-change: transform;  /* Optimize animations */
    top: 0;
    left: 0;
    transform-origin: center;  /* Add this to ensure centered positioning */
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}