/* Decoy Screen: Scientific Calculator & Study Notes Styles */

.decoy-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    color: #f8fafc;
}

.decoy-header {
    padding: 12px 16px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.decoy-tabs {
    display: flex;
    gap: 8px;
}

.decoy-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.decoy-tab-btn.active {
    background: #334155;
    color: #38bdf8;
}

.decoy-exit-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
}

/* Calculator Section */
.calc-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    justify-content: flex-end;
}

.calc-history {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 12px;
    padding: 8px;
}

.hist-item {
    font-size: 14px;
    color: #64748b;
    text-align: right;
}

.calc-display {
    font-size: 38px;
    font-weight: 700;
    text-align: right;
    padding: 14px 8px;
    color: #fff;
    word-break: break-all;
    min-height: 70px;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.calc-btn {
    padding: 16px 0;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    background: #1e293b;
    color: #f1f5f9;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.calc-btn:active {
    transform: scale(0.96);
}

.calc-btn.op {
    background: #334155;
    color: #38bdf8;
}

.calc-btn.action {
    background: #dc2626;
    color: #fff;
}

.calc-btn.equals {
    background: #2563eb;
    color: #fff;
    font-weight: 800;
}

.calc-btn.fn {
    font-size: 14px;
    background: #1e293b;
    color: #94a3b8;
}

/* Study Notes Section */
.notes-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
}

.notes-editor {
    background: #1e293b;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-input {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.note-textarea {
    min-height: 80px;
    resize: none;
}

.note-save-btn {
    align-self: flex-end;
    background: #10b981;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-card {
    background: #1e293b;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    border-left: 4px solid #38bdf8;
}

.note-card-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.note-card-preview {
    font-size: 12px;
    color: #94a3b8;
}
