#studenttoolWrapper{
position: absolute;
    left: 100%;
    top: 1rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.studenttools{
    
    background: white;border-radius: 0 5px 5px 0;
    font-size: 2rem;
    height: 3rem;
    width: calc(3rem + 5px);
    background: var(--panel-color);
    padding: 0;
    
}

.notepad-canvas{
    position: absolute;
   
}

.notepad-draw-canvas{
   background-color: var(--contrast-color);
   border-radius:  0 var(--border-radius) var(--border-radius) 0;
   border: 1px solid black;
   
}

.notepad-draw-canvas[data-tool="pen"]{
    cursor:crosshair;
}

.notepad-draw-canvas[data-tool="marker"]{
    cursor:crosshair;
}

.notepad-draw-canvas[data-tool="eraser"]{
    cursor:cell;
}

.notepad-toolbox{
    position: absolute;
    top: 0;
    padding: 3px;
}

.notepad-toolbox>button{

    margin-right: 3px;
    background-color: transparent;
    border: 1px solid var(--color);
    
}

.notepad-toolbox>button[data-active="true"]{

    margin-right: 3px;
    background-color: var(--bgcolor);
    border: 1px solid var(--color);
    
}


.notepad-toolbox>button:hover{
    background-color: var(--panel-color);
    cursor: pointer;
}

/* ============================================
   CALCULATOR STYLES
   ============================================ */

.calculator-container {
    position: absolute;
    background: var(--panel-color);
    border-radius: var(--border-radius, 12px);
    padding: 15px;
    padding-top: 35px;
    width: 280px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    user-select: none;
    
}

/* Close button at top right */
.calc-close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 18px;
    line-height: 1;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.calc-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Display wrapper */
.calc-display-wrapper {
    background: var(--contrast-color);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 12px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Expression display (small, shows full expression) */
.calc-expression {
    font-size: 0.9rem;
    color: var(--color);
    min-height: 1.2em;
    word-break: break-all;
    text-align: right;
    width: 100%;
    margin-bottom: 4px;
}

/* Main display (large, shows current value/result) */
.calc-display {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color);
    text-align: right;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.1;
}

/* Button grid */
.calc-button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* Base button style */
.calc-btn {
    padding: 0;
    height: 52px;
    font-size: 1.3rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #3d3d3d;
    color: #fff;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-btn:hover {
    background: #4a4a4a;
    transform: translateY(-1px);
}

.calc-btn:active {
    transform: translateY(1px);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Number buttons - slightly lighter */
.calculator-container .calc-btn[data-action="number"] {
    background: #4a4a4a;
}

/* Function buttons (parentheses, pi, power) - cyan/teal accent */
.calculator-container .calc-btn.calc-btn-function {
    background: #00796b;
    color: #fff;
}

.calculator-container .calc-btn.calc-btn-function:hover {
    background: #00897b;
}

/* Pi button - use serif font for proper pi symbol */
.calculator-container .calc-btn.calc-btn-pi {
    font-family: "Times New Roman", "DejaVu Serif", Georgia, serif;
    font-size: 1.5rem;
    font-style: italic;
}

/* Operator buttons - blue accent */
.calculator-container .calc-btn.calc-btn-operator {
    background: #0277bd;
    color: #fff;
}

.calculator-container .calc-btn.calc-btn-operator:hover {
    background: #0288d1;
}

/* Clear and backspace buttons - red/orange accent */
.calculator-container .calc-btn.calc-btn-clear {
    background: #c62828;
    color: #fff;
}

.calculator-container .calc-btn.calc-btn-clear:hover {
    background: #d32f2f;
}

/* Equals button - green accent */
.calculator-container .calc-btn.calc-btn-equals {
    background: #2e7d32;
    color: #fff;
}

.calculator-container .calc-btn.calc-btn-equals:hover {
    background: #388e3c;
}

/* Wide equals button spans 2 columns */
.calculator-container .calc-btn.calc-btn-equals-wide {
    grid-column: span 2;
}

/* Zero button */
.calc-btn-zero {
    grid-column: span 1;
}





/* Responsive adjustments */
@media (max-width: 320px) {
    .calculator-container {
        width: 260px;
        padding: 10px;
    }
    
    .calc-btn {
        height: 45px;
        font-size: 1.1rem;
    }
    
    .calc-display {
        font-size: 2rem;
    }
}